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

build_native.sh running error
Android ListView content gets repeated when scroll
Opening a specified folder using Intents for samsung explorer
Android Widgets w/ AdapterViewFlipper - Pending Intent Template does not get filled in with extras
HTML5 Video on Android using Phonegap 3.4
Listview default item selected
image JSON parsing
Android UIAutomator Testing: Count of all elements present in the list view
Fragment getView().findViewById(R.id.box1) Returning null
How to add new Cordova lifecycle events?
Adding random number of buttons dynamically and setting onClickListener in Android
How do I use a third party Handwriting application as input to a web database?
Screenshots are not uploading on Play Store
Getting contact's birthday error
Android QuickBlox - User must have a list of contacts
Add multiple views in ScrollView?

Categories

HOME
phpword
localization
deep-learning
fuelux
cheerio
dns
fpga
ecmascript-6
character-encoding
case
sitecore
p2p
okhttp
32bit-64bit
github-enterprise
activecollab
plink
atlassian
android-intent
cumulocity
capistrano3
symfony-2.8
dynamic-sql
firefox-addon
google-picker
git-extensions
cfml
bourbon
charles
ag
imagemap
pchart
jquery-multiselect
flooding
ms-access-web-app
nstimer
angular-translate
android-things
sinch
scrollview
jmockit
hibernate-validator
autolisp
rselenium
reactjs.net
installscript
imx6
projects-and-solutions
tasm
xv6
softmax
preloader
chronicle-map
payara-micro
stdmap
static-cast
spring-data-couchbase
dt
ampps
rmongo
choice
smartfoxserver
slackware
webjars
dotnetnuke-7
jquery-jscrollpane
observablecollection
udpclient
grass
grgit
qt5.2
forwarding
rate-limiting
binomial-theorem
ember-cli-rails
zscript
dulwich
liquid-layout
cwrsync
ansi
broadband
infosphere-spl
variadic-templates
primitive-types
browserify-shim
formview
psr-4
jqmodal
kissfft
authlogic
xmltodict
openargs
spring-3
c++builder-xe5
unit-of-work
asdf
node-blade
epiceditor
server-administration
idn
mkv
vfs
lambdaj
usertype
entitydatasource
inline-formset
squishit
resharper-6.0
ie-compatibility-mode
easyb
folding
pos-for-.net
scrollbars
flvplayback
java1.4
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