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

Sending notifications from my laptop to a set of mobile devices
Saving SurfaceView with canvas on top
ERROR: Could not parse card data Cordova Plugin for card reader
How to swipe up a fragment from a button with a circular animation in Android?
Changing locale not working after `onResume` method?
Animate a view from 0dp width to MATCH_PARENT
Display Dialog after uncaught exception
How to get alternative routes' distance in Google Maps on Android v2
How to allow everyone to see the list of books in FireBase Database
Execution failed for task 'app:copyDebugAndroidTestKotlinClasses' - Android Kotlin Build Error
Android: Snapshot for Google maps not working when polyline is drawn and works properly if only markers are placed
Realm database - react native
How do i make the .mov container with H.264?
Unity3D text doesn't show up when it build in Android
How to go back to previous activite(s)?
Android Alarm manager to run a task on a specific time

Categories

HOME
notepad++
embedded
cobalt
phpmyadmin
yahoo-finance
alarm
hugo
limit
missing-data
opengl-3
fabric.io
little-proxy
mel
github-enterprise
stellar.js
easyphp
asp.net-mvc-viewmodel
boost-icl
charles
drive
backpack-for-laravel
mongoid6
comparator
data.stackexchange.com
genexus-sd
winexe
paperjs
cppreference
mobx
volatile
quickfixj
git-squash
twos-complement
installscript
reverse
pdw-file-browser
arduino-ide
processwire
roblox
cd
gdata
configurationmanager
azure-cli
yii2-user
sundials
django-1.10
cudd
google-cloud-console
udpclient
embedding
tracker-enabled-dbcontext
spreadjs
upx
fink
asyncdisplaykit
toran-proxy
jdi
poppler
evolus-pencil
lasso
dulwich
ansi
matlab-deployment
android-broadcast
zxspectrum
mass-assignment
cosine-similarity
uncaught-typeerror
webfinger
with-statement
codeplex
dct
memset
square-bracket
conditionaltagsupport
mvc-editor-templates
process-explorer
composite-component
fb.ui
sqlclr
android-loadermanager
mapping-by-code
predicatebuilder
luabind
appledoc
photolibrary
qglwidget
cac
openfaces
pos-for-.net
django-piston
lxr
asynchronous-wcf-call
wysiwym

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