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.
Related
I want to develop for Android 23 (Marshmallow). I created a new project, modify/remove everything and only use these as my project's components.
Android SDK Build Tools 23.0.3
Android SDK Platform 23
Android Gradle Plugin 2.1.3
Gradle 2.14.1
Target SDK version: 23
Minimum SDK version: 23
Compile SDK version: 23
JDK 1.8.0_211
I manage to get it running on my Android 28 (Oreo) device, but I read it somewhere that the later version of SDK, Build Tools and Gradle provides better security. Should I use all of the latest tools? if so, can I use the latest tools to develop only for Android 23?
Because when I installed Android Studio, it prompt me to target my SDK to 26 since Google Play requires developers to do so. Please teach me the best practice to develop for older Android version. Thank you in advance.
I think you are not aware of what targetSDKversion means.
Let me clarify you. When Google releases a new version of android it brings new features, security and performances improvements. When you configure targetSDKversion then the user can benefit from these improvements while your app still runs on the older version.
For more information:
https://developer.android.com/distribute/best-practices/develop/target-sdk
You do not develop for a single SDK version.
You develop for a RANGE of versions, going from MinimumSDK (yours would be 23) to TargetSDK (minimum of 26 to get into the Play Store, but always best to go the latest possible)
https://learn.microsoft.com/en-us/xamarin/android/app-fundamentals/android-api-levels?tabs=windows
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.
I have got android sdk installed and set android_home. In fact I'm developing with ionic and everything is ok.
Now I want to test nativescript but I'm not able to configure it. I installed everything and I get the error:
You need to have Android SDK 22 or later and the latest Android Support Repository installed on your system.
I have android 23 version installed and also 19. I installed also 22 as I read in other pages that nativescript have a problem even if you have an upper version, but even with andorid 22 it doesn't work. Any ideas?
Which OS are you using? Have you installed also Android support repositories from SDK manager?
I have installed Android SDK tools from version 19 to 23, SDK platform-tools and SDK build-tools.
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
All,
Android Studio, in the layout rendering pane on the right, I get the error message:
"No Android SDK found. Please configure an Android SDK."
Also, next to the Android icon at the top it says "".
I have tried running with "Administrator" permissions.
I have checked the SDK setting to be correct:
File -> Project Structure -> SDK Location.
I have checked that I have the SDK installed and the path configured in the project structure.
The project builds with no errors or warnings.
This project runs correctly on my Windows 7 machine. I moved the project over to a new Windows 10 machine and am now having these problems.
Does anyone know how to fix this problem?
I have a serious headache from banging my head against the wall.
My configuration:
Android Studio 1.5.1
Windows 10.
I downloaded the AS package, IDE and SDK together.
The project uses the Motorola Symbol EMDK library which requires the Android 4.4.2 (API 19) SDK.
Under "Project Structure" there is:
"Compile SDK Version": "EMDK 4.0 (API 19) (Symbol Technologies LLC) (API 19).
"Build Tools Version": "23.0.2"
From the SDK manager, I have verified that the following are installed:
Android SDK Tools 24.4.1
Android SDK Platform-tools 23.1
Android SDK Build-tools 23.0.2
Android SDK Build-tools 23.0.1
Android 6.0 (API 23) SDK Platform
Android 6.0 (API 23) Google APIs
Android 6.0 (API 23) Google APIs Intel x86 Atom System Image
Android 4.4.2 (API 19) SDK Platform
Android 4.4.2 (API 19) EMDK 4.0 (API 19)
Android 4.4.2 (API 16) SDK Platform
Android 4.4.2 (API 16) EMDK 4.0 (API 16)
Android Support Repository 25
Android Support Library 23.1.1
Google Repository 24
Google USB Driver 11
Intel HAXM 6.0.1
The problem seems to be with the Android bundle. Installing the SDK and IDE separately solved the issue.
Uninstall Android Studio Bundle.
Download the SDK and install.
Download the IDE and install.
Copy the EMDK add-ons manually to the SDK add-ons folder.
All seems to work now.
I had a similar issue (platform emdk api 19 not found), I have it resolved by following a "manual" refresh of the emdk plugin, here's what I did:
Go to "project structure" then Modules then app then "Properties", change the "compile sdk version" from "emdk 19" to "api 19 android", compile, then change it back to "emdk 19". Then compile again. This time finally the IDE is able to find "emdk 19".