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

Is it possible to decode vide:avc1 video using Android MediaCodec?
Resource is not a ColorStateList exception
Alignment layout at the bottom with listview
How to take screenshot for scroll view ?
Don't use default Player Control page when initializing Cast Companion Library
Elements SlidingMenu not clickable
Please identify this output format [closed]
Properly displaying chart in Android fragment
Android - Iterate all items
Sending data from a database to list view in android
Fragment in viewpager for tabs - Image not redrawn after setting image bitmap and all tabs becomes blank
How to align buttons below textview in linear layout
Parse one-to-many relationship
Can i reference external assets from res folder?
android-gpuimage - provide image filter in a horizontal scroll view like instagram
Android: YouTube Video in an AlertDialog

Categories

HOME
embedded
facebook-oauth
linkedin
ecmascript-6
gpu
static
serialization
package
requirements
owl-carousel
newrelic
carousel
frontend
joomla3.0
sendgrid-api-v3
jquery-ui-sortable
distribution
gkturnbasedmatch
selectize.js
symbol
package-managers
modbus-tcp
rubymotion
babel
roslyn
epsilon
draft-js-plugins
itunes
beautifier
angularjs-components
progress-bar
google-earth
left-join
jmockit
servicestack-text
hivemq
alphabetical
watchman
loading
diacritics
metawidget
print-css
claims
flask-login
puredata
pom.xml
servermanager
double-click
singleinstance
payara-micro
tinkerpop
bbpress
oozie-coordinator
android-instrumentation
rmongo
cudd
iotivity
jboss-tools
nservicebus5
tracker-enabled-dbcontext
libav
slash
sha512
snoop
typeconverter
kubuntu
osc
public-html
pseudo-class
metatrader5
teaspoon
jama
ignite-ui
ora-00904
cancellation
ios8-extension
buffering
getopt
http-patch
scrypt
breakout
gpars
mvc-editor-templates
workitem
font-awesome-4.0.0
twisted.web
preload
sqlclr
monotouch.dialog
sentestingkit
veracity
subproject
floating-point-exceptions
node-redis
winmain
ruby-1.8
load-time
message-passing
purepdf
lobo-cobra
fail-fast-fail-early
fault-tolerance
leader

Resources

Encrypt Message