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

toolbar center textview when there is menu item
Permission Denial: broadcasting Intent act=android.provider.Telephony.SMS_RECEIVED
How to customized SpinnerItemStyle with styles.xml
Inconsistent behaviour with pages created with onenote-api - fixed with OneNote update
Get some asset file path in APK
How can i dim the background when Bottomsheet is displayed, without using Dialog?
Intent- swich XML
Android setting background color for textview has custom background already
Update ListView adapter in a fragment from outside the onCreateView method
How to open a PreferenceFragment from Inside Another Fragment
OnErrorNotImplementedException somehow still being called with included error handling
Android OpenCV VideoWriter output mp4 file
White spaces left in coloring using QueueLinearFloodFillAlgorithm
textview onclicklistener not working
Google map location updating
Error in generated values.xml

Categories

HOME
google-app-engine
google-cloud-platform
twitter-bootstrap-3
apache-jena
mjml
serialization
knitr
owl-carousel
switch-statement
rds
zip
joomla3.0
teechart
mql5
little-proxy
fhir
github-enterprise
ipmitool
endpoint
gource
http-post
package-managers
modbus-tcp
alpacajs
video-editing
undertow
rubymotion
springfox
r-mice
react-toolbox
pimcore
monit
draft-js-plugins
flooding
has-and-belongs-to-many
handler
user-defined-functions
realm-mobile-platform
send
mobx
powershell-ise
record
instantiation
getpixel
arduino-ide
sql-delete
baidu-map
getlasterror
reactivekit
cd
z-notation
bc
visa
laravel-elixir
smoothstate.js
android-exoplayer
flask-login
servermanager
lampp
builder
wcftestclient
lightning
backbone-collections
objectscript
grails-plugin
microstation
vulcanize
watch-os-2
google-query-language
android-wake-lock
atan2
sapi
wiredep
include-guards
rpart
rdflib
jsvc
grouping-sets
rapidsvn
mruby
rmysql
koala
high-resolution
embedded-fonts
kendo-dataviz
cardreader
booksleeve
floating-point-exceptions
jquery-address
pylucene
umra
diagrams
globals
lxr
build-environment
strtod
data-mapping
dojo-dnd

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile