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

getting a net::ERR_CONNECTION_REFUSED when using react native webview to go to localhost:9000/login
User keeps login even if I delete the account
Get the last version of a crashlytics app in-app
Mocking a context fails on my computer only
Android Facebook can't read reactions from my app's posts
Spinner- How to convert from getSelectedItem().toString() from a spinner, back to a spinner?
Cannot add to an imageView a gesture detector in Android
Does a Toast in postDelayed leak the activity?
How to add edittext into checkbox?
ckeditor not displaying on android/chrome
crop image in android lollipop device
Query list of entities with embedded entity using objectify
Two Actions on Click of RemoteView in Notifications
Android Gradle build failed - Java finished with non zero exit 2
android : videoview in dialogfragment
Android Change language of speech to text to Japanese not working

Categories

HOME
service-worker
xml
checkstyle
sh
rendering
qpython
openstreetmap
activecollab
eip
mongodb-csharp
symfony-2.8
job-scheduling
video-editing
google-container-registry
jmp
poedit
undertow
rubymotion
dataflow-diagram
tosca
dapper-extensions
mat
outliers
fractions
firebase-analytics
angular-translate
bringtofront
vex
testcomplete
event-flow
twos-complement
sendbird
pop3
installscript
salesforce-communities
tex
jvmti
apache-stanbol
azure-arm
xv6
subclipse
httr
gitlist
video-conferencing
colorbar
seq
java-websocket
objectscript
usart
redistributable
myspace
adafruit
mta
installshield-2010
avspeechsynthesizer
udpclient
gcloud-ruby
relativelayout
opserver
rdflib
jquery-forms-plugin
theos
punycode
webfinger
appserver
universal-image-loader
lambda-architecture
wxformbuilder
jquery-slider
vbe
amslidemenu
gtm-oauth2
sphinxql
isqlquery
unit-of-work
dolby-audio-api
wcf-configuration
apache-whirr
jsr286
jquery-tools
uipagecontrol
strsep
quotation-marks
django-paypal
maven-1
skype4java
lalr
sun
fault-tolerance
int64
lemmatization
movieplayer

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App