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

Invisible EditText on ListView
Which httpmime version can I use with Android's HttpClient?
Android vibrator with switch
How to get frames from video from onDraw() of VideoView in Android?
How to detect an android phone contacts app supports Structured Postal Address?
angularJs / mobileAngular: how to increase font size at higher res?
capture packets send by an application android
Android Bluetooth connection ProgressDialog implementation using AsyncTask
Sort Android Application based on usage
Ormlite - Access Two Databases from the same acitivty
How to remove items from listview after removing item-owner from friends list?
How to make a set of views in Android?
Android Navigation and activities (determine which activity is parent)
Pass tab.getText() to fragment
ListView item doesn't inflate to wrap content as intended, height == 0 but shouldn't
UI framework suggestion for Ember.js HTM5 => Phone Gap app (or alternative stack) [closed]

Categories

HOME
service-worker
batch-file
sonarqube
scikit-learn
datastore
mjml
serialization
rendering
simulink
3d-reconstruction
maxscript
crystal-lang
vert.x
opengl-3
nfs
discrete-mathematics
naivebayes
stellar.js
pybossa
dynatrace
symbol
fileserver
jersey-1.0
google-picker
nodemcu
topology
apache2.4
googlebot
highstock
google-api-client
android-sharedpreferences
apktool
wcag
user-defined-functions
corenlp-server
eviews
testbed
mailkit
linkedhashmap
least-squares
xdocreport
projects-and-solutions
mcustomscrollbar
laravel-elixir
smoothstate.js
optimizely
lampp
wcftestclient
user-defined-fields
facebook-pixel
swingworker
gets
vorpal.js
lean
respondcms
android-wake-lock
aurora
exim4
httpruntime.cache
blitline
user-management
jaunt-api
concept-insights
pypiserver
vigenere
toolkit
doctype
wso2greg
nutiteq
cakephp-2.7
grouping-sets
cross-join
ejb-2.x
genymotion-call
wcm
with-statement
winginx
amslidemenu
cnf
route-provider
poker
cascadingdropdown
alice
mkv
patricia-trie
monotouch.dialog
paginator
garbage
koken
wiimote
urlrewriter
expression-blend-4
fsevents
winmain
xcelsius
mysql-error-1205
unattended-processing
appledoc
maven-1
strtod
xpsdocument
software-lifecycle
information-management
contentpresenter

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