SDK Platform Tools release - android

Although all my libraries are up-to-date, the version of SDK platform tools is a problem because it remains lower than the current version (Android SDK Platform-Tools is 26.0.2, Build is 27.0.1). So from my build.gradle, I have :
implementation 'com.android.support:support-v4:27.0.1'
that shows an error
Found versions 27.0.1, 26.0.1, 25.2.0 . Example include com.android.support..."
even with many invalidate cache and restarts.
So my question is: should I downgrade my targetSDKversion to 26 or maybe 25, or can I run my project with this error message? I use AS 3.1 Canary 4.

Related

The specified Android SDK Build Tools version (19.0.0) is ignored

Warning:The specified Android SDK Build Tools version (19.0.0) is
ignored, as it is below the minimum supported version (26.0.2) for
Android Gradle Plugin 3.0.1. Android SDK Build Tools 26.0.2 will be
used. To suppress this warning, remove "buildToolsVersion '19.0.0'"
from your build.gradle file, as each version of the Android Gradle
Plugin now has a default version of the build tools.
What if I want to develop an apk that can work for API 19?
Is there a way without getting errors to compile and test the application easily?
buildToolsVersion is not your App's minimum API support version. You'll want to use minSdkVersion 19 to support API 19. Generally you'll always want to use the latest build tool version. If you want to test API 19 functionality, download and use the Android 4.4 emulator.

Android: Build Tool Version vs Compile SDK Version

We have an android app where we had both compile SDK version and Build tool version at 24. We had to update the android com.android.support:design version from 24.0.0 to 25.0.0. In this case, it was asked to update the compile SDK version into 25 from 24, but did not say anything about Build Tool Version.
Normally, how does the Build Tool Version and Compile SDK version work? Build Tool Version is in a lower version than Compile SDK version, any possible errors (run time or whatever, either in android playstore or development environment)
Update
This question is not a duplicate, the suggested answer is about the differences between the SDK and Build tool version and also about having a higher build tool version with lower sdk version; this is the exact opposite of what I am asking, higher SDK with lower build tool version.

Android Studio appcompat library missing again

I have installed Android SDK tools 22.0.1 and 23.0.3
I want to target SDK version 22.
After chasing previous posts here, I found that people got this to work
compile 'com.android.support:appcompat-v7:22.2.1'
However, I am still getting:
Failed to resolve com.android.support:support-v4:22.2.1
So, I add version 4, then I get same error, twice (below each other)
Which is the latest appcompat support library? Where do you find out the latest version?
This is really frustrating...
Thanks
I have installed Android SDK tools 22.0.1 and 23.0.3
That is irrelevant with respect to using appcompat-v7.
I want to target SDK version 22
Assuming that you mean that you want your targetSdkVersion to be 22, that too is irrelevant with respect to using appcompat-v7.
Which is the latest appcompat support library?
Right now, it is 24.1.0.
Where do you find out the latest version?
In your specific case, go to the Android SDK installation on your developer machine. In there, go to extras/android/m2repository/com/android/support/. In there, you will see directories with the names of all the pieces of the Android Support library (e.g., appcompat-v7/). If you go into any of those, you will see the versions that are available to you.
Now, what is disconcerting about your error messages is that you are getting a failure on support-v4, for a version requested by an appcompat-v7 that apparently is found (otherwise, your error would be for appcompat-v7). This suggests that you do not have all of the Android Support library pieces, perhaps due to a failed installation of the Android Repository from the SDK Manager.
What if I want to compile with SdkVersion 22?
That is not a particularly good idea for new development (vs. maintaining some legacy app). But, if that is what you want, you need to choose Android Support library artifact versions in the 22 series. On my machine, it looks like 22.2.1 is the latest of those.
The latest version is 24.1.0.
You can check it here: https://developer.android.com/topic/libraries/support-library/revisions.html
Change to
compileSdkVersion 23
buildToolsVersion "23.0.3"
and change
compile 'com.android.support:appcompat-v7:22.2.1'
to
compile 'com.android.support:appcompat-v7:23.4.0'
if you want to target sdk 22 add/change
defaultConfig {
//
minSdkVersion 16
targetSdkVersion 22
//
}
Although latest version is 24.1.0 but for that you have to update again from sdk-23 to sdk-24

The sdk platform-tools (23.1) is too old to check APIs compiled with API 24; please update

I am getting this error on the latest version of Android Studio and while I have installed both Android SDK Platform API 24 Revision 1 and Android SDK Build-Tools 24.
I have also tried File>Invalidate Caches/ Restart... and Build>Rebuild Project.
EDIT: I have also followed all instructions under Android Developers, but I still get this error.
Thanks in advance for any answers.
It's not an error. It's just a warning given by Android Studio since the
compileSdkVersion 24
is greater than the
sdk platform-tools version 23.1
sdk platform-tools 24 have not yet been released by Google. Once, they are released, you can update it and the warning will be gone. For now, you can make the following changes in the gradle file and continue with your project.
compileSdkVersion 23
buildToolsVersion 23.0.3
targetSdkVersion 23
compile 'com.android.support:appcompat-v7:23.4.0'
Updated Answer:
Google has now released
sdk platform-tools 24
You can download the update from SDK Manager and make the following changes to the gradle file
compileSdkVersion 24
buildToolsVersion 24.0.0
targetSdkVersion 24
compile 'com.android.support:appcompat-v7:24.0.0'
Open SDK Manager
Go to system settings > Android SDK
Go to SDK Tools Tab
you will find Android SDK platform-Tools 23.1 and you will find an update available
just update it
cheers
There's no platform-tools version 24 released yet.
To get rid of the warning, you can install currently available platform-tools 24rc1 from the Tools preview channel in the SDK manager.
From the command line it can be installed with
android update sdk -u -a --filter platform-tools-preview

Which values to update to in android studio

This is what my sdk manager currently looks like.In the build.gradle file what changes would i have to make so that i am up to date.
My current compilesdkversion is 23 and buildsdkversion is 23.0.1.
All the com.android.support.* libraries are on 23.1.0.
Your build.gradle file is updated.
My current compilesdkversion is 23 and buildsdkversion is 23.0.1. All the com.android.support.* libraries are on 23.1.0.
compilesdkversion 23 -->ANDROID API 23
buildsdkversion 23.0.1 --> Android SDK Build-Tools
com.android.support.xxx 23.1.0 -->Android Support Repositories/Android Support Library
The Android SDK Tools is not in your build.gradle
SDK Tools is a downloadable component for the Android SDK. It includes the complete set of development and debugging tools for the Android SDK.
More info here:
SDK Tools, Revision 24.4.1 (October 2015)
Dependencies:
Android SDK Platform-tools revision 23 or later.
General Notes:
Fixed a problem where the emulator title bar was hidden off screen. (Issue 178344)
Enabled the emulator to resize the user data partition by including e2fsprogs binaries. (Issue 189030)
Fixed a regression on the 32-bit Windows OS where the emulator fails to boot Android 6.0 (API level 23) through Android 5.0 (API level 21) system images. (Issue 188326)
SDK Tools, Revision 24.4.0 (October 2015)
Dependencies:
Android SDK Platform-tools revision 23 or later.
General Notes:
Updated the emulator so it can display an upgrade notification when a new version is available.
Added the ability for the emulator to send basic crash reports. You must opt-in through Android Studio preferences to enable crash report transmission.
None. Neither the SDK or the build tools are updated, only the SDK Tools.

Categories

Resources