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 save to file.txt appending
using a custom color for button background while using selectableItemBackground attribute
Android Activity not attaching to Fragment
GoogleApiClient keeps GPS radio on
display video from h264 stream of an ip camera in android
Android Multiple Textviews auto adjust one big text
Unable show poup login when I login facebook second times in android
how to develop an android application for opinion poll with pi chart
Check Directory for new files in android
Add build config values to manifest metadata
opencv 3.0 beta for android
Override default notification led color
Eclipse Library is not showing
“aapt.exe” exited with code -1073741819
How to retain image quality after uploading it to a server?
How to animate view with accelerometer?

Categories

HOME
url-redirection
asp.net-web-api
phpword
ng-idle
amp-html
gpu
numbers
visual-studio-emulator
hugo
jtextpane
crystal-lang
odoo-8
title
flume
accessibility
p2p
pattern-matching
github-enterprise
rtf
shared-libraries
qsqlquery
package-managers
scsi
microsoft-dynamics-nav
vuejs
smartclient
delphi-xe5
dataflow-diagram
pimcore
jackson-modules
flooding
entity-relationship-model
progress-bar
bringtofront
gp
sqsh
volatile
hard-drive
modalviewcontroller
browser-extension
getlasterror
video-capture
reason
docfx
google-knowledge-graph
modernizr
release
p4merge
c9.io
mcustomscrollbar
plaintext
watchface
wmp
softmax
movilizer
contract
knime
android-checkbox
httr
jide
manova
amq
edit
excel-dna
jtree
webjars
adafruit
simevents
freepbx
mediametadataretriever
turbo-prolog
nupic
libvlc
concurrentmodification
gocql
ons-api
visual-sourcesafe-2005
cwrsync
umlgraph
openbabel
mruby
jama
build-script
scrypt
kaleidoscope
jquery-1.9
wp7test
resource-management
panda3d
vfs
os.system
iboutlet
azman
wiimote
floating-point-exceptions
mysql-error-1205
lr
delimited-text
globals
drupal-fivestar
scrollbars
cldc
fail-fast-fail-early
xslcompiledtransform
wspbuilder

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