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

getResources() from static method, without context
adding another string in autocomplete edit text in android
Android WhatsApp image sharing
Trying to update a Samsung store app - getting error “The signing key is invalid. Please check the signing key of the binary”
Use Android Speech Recognition so that it stops only at the press of a button
Developing apps for Android using Html5, will restrict to access local disk, and other systems call?
Android Sync Email on an Emulator
startActivity overridePendingTransition only shows enter animation
setText of a Textview for a SQLite returned String
Open Facebook managed page always gives “Network error”
Rebuilding opencv and ffmpeg with x264 results in java.lang.UnsatisfiedLinkError
How to simulate low battery in Android devices
Image over Image in Android
SOLVED_Android: Crash start application using api google maps
Unable to get actual co-ordinate of moving sprite using registerEntityModifier in AndEngine
Button and images are unfit to the layout in android

Categories

HOME
go
phantom-dsl
localization
numbers
requirements
knitr
sublimetext
pyqt4
pkcs#11
discrete-mathematics
dkim
github-enterprise
line
datastage
php-5.6
dynatrace
symbol
screen-readers
scsi
google-content-api
google-data-studio
git-extensions
apache2.4
replication
poedit
pimcore
surveymonkey
exchangewebservices
powershell-ise
vue-chartjs
getpixel
sharding
apiary.io
swagger-php
node-mssql
apns-php
magento-1.9.3
softmax
print-css
clang++
puredata
flask-restful
httrack
gitlist
singleinstance
page-replacement
excel-dna
lsyncd
pybrain
pocketsphinx-android
change-tracking
rocks
webjars
tinkerpop3
neon
android-dateutils
observablecollection
cassia
realsense
cycle2
httpruntime.cache
toast
vhosts
wiredep
vigenere
django-urls
alloy-ui
entity-framework-4.3
fits
nodelist
addressing-mode
rmysql
cancellation
grails-plugin-rabbitmq
buffering
radiant
vsx
fpdi
openargs
kogrid
kaleidoscope
resource-management
mkv
xcode3.2
iboutlet
correlated-subquery
cuda-gdb
fitbounds
procedures
catransform3d
webdev.webserver
xui
twitterizer
uideviceorientation
office-2007
pagemethods
wcf-instancing
mathematical-notation
sifr3
sqlobject
product-management
wspbuilder

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App