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

Linker errors when trying to enable FFmpeg stagefright support
android dynamically resize linear layout based on height of scrollview content
How can i write this layout code in my Android Activity?
How to build android standalone toolchain in windows 7
How can I download files from my Android app?
ExpandableListView Child Events
Button android while pressed
Why was this change made to SocketInputBuffer for Ice Cream Sandwich?
Comprehensive list of Splash Screen and Icons for Phonegap
Image classification with opencv
How to get libgdx view from andengine project
Horizontal scrolling between activities in Android
Read QR Code without using other app
Gps,GeoCoding causes app hang in android
Android App Closes on creation?
GridLayout spitting out “inconsistent constraint” debug-level logs

Categories

HOME
android
shell
deep-learning
linkedin
case
echo
p2p
drop-down-menu
mel
x-cart
automatic-ref-counting
selectize.js
cumulocity
powershell-v5.0
fileserver
html5-appcache
nim
connector
ksh
spring-async
backpack-for-laravel
easeljs
pchart
android-sharedpreferences
shared
fragment-backstack
progress-bar
eviews
sql-server-2000
jbutton
jett
hreflang
android-gridview
baidu-map
navigator
railstutorial.org
numberpicker
attributeerror
branching-and-merging
microsoft-metro
congestion-control
proget
globalize
cup
janus
android-instrumentation
renaming
polyline
cubism.js
ziparchive
webjars
pacemaker
xcode-server
burrows-wheeler-transform
jodd
dup
lean
omniauth-facebook
kiosk
upx
nullable
custom-errors
gocql
iokit
rewrite
dock
pax-exam
evolus-pencil
dulwich
haskell-warp
baasbox
botan
canvg
typeconverter
node-serialport
cakephp-2.7
code-documentation
apache-spark-1.3
ejb-2.x
mruby
addressing-mode
structuremap3
iso-prolog
wcm
human-computer-interface
template-deduction
alternate
vbe
decoupling
amslidemenu
gd-graph
ie8-compatibility-mode
dolby-audio-api
joomla-template
mantle
windows-98
sentestingkit
saleslogix
iboutlet
predicatebuilder
infobright
rmdir
application-planning
linfu-dynamicproxy
appliance

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