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

How to check Net and WI-FI Availability
Disabling Android “autocorrect” for specific field
Wind direction and speed in a GPS App [closed]
Android Google Maps SnapshotReadyCallback error
Turning bluetooth on, gives back wrong request code in onActivityResult
Android library project custom redirect
Open android native google maps app obtaining directions starting from current position
Reliable way of retrieving StatusbarNotification details (title, notification text)
Android ymodem over bluetooth in Java
Simple Runnable experiment Works on AVD but not on hardware device
Android: avoid webview refresh in tab fragment
How to close activities which are appeared only once?
Emulator runs but app ends when button clicks
Rendering Problems Exception raised during rendering: color and position arrays must be of equal length
Surfaceview screenshot with line/ellipse drawn over it
Android intent call gives error in asynctask onPostExecute() method

Categories

HOME
go
api
design-patterns
developer-tools
merge
ggplot2
gpu
grafana
spring-data-mongodb
cakephp-3.4
regular-language
gluon-mobile
text-mining
project-intu
emoji
ycsb
opengl-es-3.0
selenium-ide
powershell-v5.0
vuejs
imageresizer
pchart
ms-access-2003
underscore.js
sqlpackage
panoramas
deltaspike
autolisp
clickjacking
least-squares
lubridate
engine.io
apiary.io
raft
latitude-longitude
salesforce-communities
zoomify
git-rewrite-history
railstutorial.org
news
sharp-snmp
nanoc
clarifai
yii2-api
remedy
singleinstance
tinkerpop
context-sensitive-grammar
java-6
rackspace-cloud
restore
smartfoxserver
grails-plugin
microstation
envi
segment-io
flex4.6
jboss-tools
freepbx
cassia
mediametadataretriever
dbamp
ellucian-scribe
kendo-upload
blitline
gocql
forwarding
amiga
ms-access-2000
entity-framework-4.3
packet-sniffers
crowd
sonarqube-5.0
machine-instruction
tweenlite
rcaller
synapse
notorm
windows-phone-8-sdk
jeromq
route-provider
octal
onload-event
asplinkbutton
argouml
midlet
adobe-media-server
convention
winmain
cuteeditor
photolibrary
ruby-1.8
globals
non-clustered-index
maven-1
web-garden
dsl-tools
entitykey

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile