android


Android SDK version is lover than library version


I can't add android support design library to my project because "This support library should not use different version (26) than the compileSdkVersion (25)". But my android SDK version is 26.0.2. and when i try to change sdk version to 26 in gradle it gives me error. So why Android Studio can't use the latest sdk version? Here is the
screenshot.
But my android SDK version is 26.0.2
There is nothing in that screenshot with a value of 26.0.2.
There is a 25.0.2, and that is your buildToolsVersion, which is not your problem.
So why Android Studio can't use the latest sdk version?
Android Studio can.
Your Gradle build file is attempting to use a preview edition of com.android.support:design. That specific version, 26.0.0-alpha1, begins with 26. The rule with the Support Library is that your compileSdkVersion needs to match that major version number of the library. In your case, your compileSdkVersion is 25.
The simplest solution for you is to change your compile statement to:
compile 'com.android.support:design:25.3.1'
This solves two problems:
It synchronizes the major version of the library with your compileSdkVersion
It gets you on a production-ready version of the library, rather than an alpha1 preview release, tied to the Android O developer preview

Related Links

Android Rating Bar with “No Rating” Option
Why are there so many bluetooth profiles?
GeoLocation App not working on Android Emulator
Android App stopped when button is clicked
why geocoder.isPresent() is returning false?
Android Imagebutton with text
How can I view AIDE warnings?
How to post login data using jsoup
Content View inside List Fragment
Custom DatePicker On EditText
How to show youtube videos in web View Android
Action bar doesn't accept personal styles
request a new google map on zoom event
Change location of Android ADB
how can I know packagename, building an Android ANE
How to approach custom Layout

Categories

HOME
shell
django
grok
adal
api
jax-rs
serialization
jelastic
seo
yandex
database-normalization
alsa
bookmarks
jquery-ui
jtextpane
nstableheaderview
sendgrid-api-v3
spin
google-schemas
openstreetmap
distribution
selenium-ide
comsol
gource
event-sourcing
enterprise-miner
boost-icl
windows-xp
systemtime
comparator
dynamically-generated
cart
catch-unit-test
simplecv
keras-layer
openwhisk
yowsup
python-pptx
parse-tree
timing
jvmti
opensmpp
p4merge
subclipse
claims
tcc
contract
fwrite
robomongo
lightning
aquamacs
gpg-signature
template-toolkit
bootstrap-tags-input
custom-lists
resourcemanager
scaffolding
pre-build-event
jtwig
libav
asyncdisplaykit
linklabel
gocql
themoviedb-api
r-package
roadkill-wiki
rate-limiting
sony-lifelog-api
batik
atoi
viola-jones
kubuntu
mmwormhole
infosphere-spl
boost-program-options
jbake
rickshaw
create.js
personalization
epiceditor
octal
cardreader
veracity
correlated-subquery
josql
window-decoration
virtualpathprovider
jqote
unattended-processing
nhprof
diagrams
presentation-layer
undefined-index
jqueryform
eclipse-marketplace
nstokenfield
lxr
online-storage

Resources

Encrypt Message