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

HTTP code 400 returned while communication with GCM
Android - Error when i'm trying to apply a custom layout on Navigation Drawers
Sed command doesn't work
How to set environmental variables permanently in mac osx
Android DecorView setFitsSystemWindows
Access ListView adapter Button on Main Activity
Record data usage when android is shutting down
How to run flash from android application
Creating a single Firefox extension compatible with both desktop and Android
GoogleApiClient Vs LocationClient to get accurate location in Android
Save just an integer into .txt Android
how to change url of webview in MainActivity by clicking option menu
How to send signals from arduino to android using bluetooth?
Trying create a chat with Fragment?
NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
Attribute is missing the namespace prefix

Categories

HOME
turing-machines
delphi-7
webdriver
fpga
ecmascript-6
pda
3d
serialization
components
saml-2.0
pyqt4
jtextpane
title
accessibility
pattern-matching
spring-social
endpoint
selenium-ide
plink
cumulocity
qsqlquery
bourbon
ksh
backpack-for-laravel
mongoid6
event-store
slidetoggle
jquery-multiselect
delimiter
constexpr
powershell-ise
memory-address
rselenium
papaparse
yowsup
navigator
wurfl
cd
z-notation
c9.io
postgresql-8.4
naming
apollostack
vaadin-elements
libgphoto2
insight
wpas
oracleclient
janus
template-toolkit
trigger.io
mongodb-php
mta
delta
fink
rasterize
crouton-os
directdraw
opl
qt5.2
google-books
evolus-pencil
jdk1.7
dulwich
wso2greg
sql-server-data-tools
graphics2d
apache-spark-1.3
nodelist
boost-program-options
deform
with-statement
cuba
lnk
live555
malformedurlexception
renderer
visual-studio-express
eclipse-kepler
hibernate-entitymanager
solace-mq
cmmi
curb
extreme-programming
vfs
inkcanvas
ilasm
hibernateexception
google-maps-mobile
cuteeditor
codebase
twitterizer
timertask
sifr
strtod
visualj#
cuda.net
alsb
software-lifecycle
ifilter

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