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 NATIVE browser remote debug not working when using weinre or chrome
hide navigationview headerlayout imageview dynamically in android
How to do the thing described below
Is it possible to change resolution of an android app programmatically?
Sliding Menu Android Not Working
How do I make spaces between labels?
How does Android find out the url of the “Sign In” page of any Wi-Fi Network?
Videoview with fullscreen mode not working good..!
How to change the imageview size dynamically in android for a particular image?
How to send JSON data as Body using Retrofit android
Change edittext backgroundTint Color
Fused Location Provider - location updates by displacement not working
Can we call onstart() and onresume() in android indepent of any activities?
Android: Resize an JPEG from SD Card without losing quality
Android canvas - some rectangles not drawn when touching top border after translation
Android: draw rectangle in AsyncTask of Service

Categories

HOME
ng-idle
rdbms
battery
shiro
tivoli
jetty
gluon-mobile
jtextpane
title
pkcs#11
sendgrid-api-v3
little-proxy
mod-security
automatic-ref-counting
pybossa
enterprise-architect
intershop
google-container-registry
sse
database-connection
replication
symbols
googlebot
user-experience
squashfs
pimcore
jquery-callback
gmock
google-api-client
draft-js-plugins
jquery-multiselect
pylons
fragment-backstack
android-maps
fractions
testcomplete
alm
weather
autolisp
lint
ideascript
metaprogramming
p4merge
ogc
postgresql-8.4
movilizer
magento-2.0.7
geotiff
twilio-click-to-call
jqchart
er-diagram
baidu
bootstrap-tags-input
branch-prediction
reporting-services-2012
latin
preprocessor
drawstring
omniauth-facebook
mediametadataretriever
deep
nio2
kendo-upload
relativelayout
directdraw
dynatree
xenomai
google-books
poppler
sony-lifelog-api
mod-proxy
dulwich
botan
android-broadcast
ejb-2.x
reflector
grails-plugin-rabbitmq
ios8-extension
buffering
dtmf
ebay-lms
workitem
process-explorer
apache-abdera
cakephp-1.2
dajaxice
adobe-media-server
entity-attribute-value
ikimagebrowserview
fsevents
objective-j
undefined-index
isapi-extension
soappy

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