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

How to pass value from onItemSelected to another spinner
OnItemClickListener for horizontal gridview
Saving canvas draw in bitmap showing white screen
How to cut off an unused space in a custom view?
How to create alerts using alarm manager and background service call and a web service call inside background service?
ActionBar menu with text ,icon,text
Firebase endAt() not working with date string?
Different splash screen on screen orientation
Visual Studio 2015. AXML. Doesn't work intellisence inside view with warning
Generate content to display on an ePaper display from Android App
Fingerprint detection stop work after the app goes to pause
Gradle: “Empty” Android project takes half a minute to compile (Android Studio)
Unable to detect adb version, adb output: Syntax error: Unterminated quoted string
How to print PDF, image and HTML documents from android device to a printer on wifi?
How to create customizable fragment in android library?
How to get all reviews of “ANY” app from Google's playstore programatically?

Categories

HOME
hyperlink
merge
github-for-windows
alexa-skills-kit
pascal
mstest
apiblueprint
shiro
rendering
nested-if
trac
nstableheaderview
categorical-data
google-form
enterprise-architect
standards
easyphp
google-data-studio
google-container-registry
identity-management
oledb
jquery-ias
pagespeed
parcelable
roslyn
beautifier
oculus
subclass
mql
winpe
custom-controls
recurring-events
dst
sql-server-2000
playstation-portable
classcastexception
hunspell
batching
numpy-broadcasting
typesafe-config
opensmpp
c9.io
odoo-website
xmldocument
openresty
proget
aquamacs
dt
gameplay-kit
mathcad
rxtx
structuremap4
cronexpression
pytables
segment-io
spring-cloud-feign
refinerycms
nservicebus5
mobiledoc-kit
roadkill-wiki
rate-limiting
video-player
text-search
rdflib
git-ftp
j-security-check
apache-spark-1.3
kissfft
cancellation
gnumeric
maven-scm
notorm
script#
cffile
workitem
epiceditor
jquery-1.9
sqlclr
curb
veracity
faye
role
massive
msr
non-clustered-index
drupal-fivestar
qtabbar
wcf-instancing
product-management
movieplayer

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