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

Universal image loader from json
Google flight RPC JSON response
How to interpret output of FFT and extract frequency information
Activity zoom transition from button - Android
how to link text of text view to web site [duplicate]
R.java not getting generated in new project eclipse
How to remove Margin from edit Text
Android Google Maps Current Location
DownloadManager notification displays no percentage
Android app showing “Designed for Phones” on Playstore
Zoom in animation from particular position - android
Using Android Project Files in Separate Java Module?
How to implement the PhoneGap Calendar Plugin
Parsing SHOUTcast 7.html metadata on Android
What is “CPU time” (using Android's ps -x)?
Hex color values in Android layouts are not being displayed accurately

Categories

HOME
cygwin
hyperlink
awk
linkedin
apache-jena
depth
socket.io
pdfbox
cq5
parameters
webix
flume
rcloud
extjs4.2
32bit-64bit
drop-down-menu
mel
x-cart
rtf
intercom
do-while
android-7.0-nougat
soci
jmp
connector
windows-xp
squashfs
r-mice
imageresizer
android-sharedpreferences
ms-access-2003
genexus-sd
inversion-of-control
autodesk-designautomation
mustache
sammy.js
joomla2.5
sharding
hivemq
git-rewrite-history
bc
linq-to-objects
comparison-operators
dcmtk
microsoft-metro
avcapturedevice
proget
chai-as-promised
reportservice2010
trojan
aquamacs
pair-programming
appdomain
oracleclient
cup
libjpeg
structuremap4
pocketsphinx-android
restore
redistributable
myspace
wso2developerstudio
installshield-2010
delta
php-socket
ellucian-scribe
crouton-os
highland.js
character-replacement
dynatree
text-search
cgi-bin
jdk1.7
uncompress
aspectj-maven-plugin
raygun
unix-socket
renderer
openargs
gtm-oauth2
facebook-timeline
alice
booksleeve
fusefabric
jquery-tools
winmain
mtu
luajava
cfwindow
lemmatization

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