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

Sugar ORM heritage of class and save elements android
How to set the width of a view to a percentage of *some* other ancestor view?
Android: update system app
android app development with live content fetching
Android show view and hide keyboard at same time. Weird behaviour
Shape padding not working pre 6 Android
How to Call .NET web API Post service in Android
How to force gradle to use a specific appcompat-v7 version?
how use ListView in Fragment Android
how can i show the title only in toolbar not in open collapsing toolbar
How to upload video to Vimeo through android app using vimeo official library?
Marking SMS as read on Android not working
Passing an ArrayList to another Activity but not displaying result?
Get thumbnail image from json Android
How to pass data from one activity to another activity in Android
Android GoogleMap v2 getting cropped or not fully displayed

Categories

HOME
url-redirection
google-cloud-platform
forms
phpmyadmin
dojo
polling
spring-session
android-json
crystal-reports-2013
vert.x
lanczos
openpyxl
distribution
xcodebuild
enterprise-architect
azure-powershell
modbus-tcp
symfony-2.8
mvc-mini-profiler
red5
swagger-2.0
asciidoctor-pdf
breadth-first-search
undertow
backpack-for-laravel
angular-routing
aggregation
short-url
siri
licensing
underscore.js
apktool
linked-data
ceylon
erb
hard-drive
dynamic-jasper
batching
lint
flatmap
numberpicker
postgresql-8.4
softmax
microsoft-metro
facebook-social-plugins
flask-restful
magento-2.0.7
twilio-click-to-call
activeperl
tf
java-6
colorbar
flyout
django-1.10
smartfoxserver
stax
redistributable
reporting-services-2012
envi
beamer
delta
query-by-example
spreadjs
libav
cycle2
contentcontrol
concept-insights
ascii-art
asyncdisplaykit
sapi
toran-proxy
pypiserver
vigenere
roadkill-wiki
ess
video-player
toolkit
haskell-warp
botan
uvc
jquery-forms-plugin
diff3
code-documentation
showdialog
genymotion-call
grails-plugin-rabbitmq
draw2d-js
ora-06550
bin
eclipse-kepler
sphinxql
workitem
mantle
android-loadermanager
box2d-iphone
procedures
listactivity
cac
ruby-1.8
updatesourcetrigger
interprocess
opml
build-environment
data-mapping

Resources

Encrypt Message