Questions tagged [android-sdk-tools]
SDK Tools is a downloadable component for the Android SDK. It includes the complete set of development and debugging tools for the Android SDK.
android-sdk-tools
1,256
questions
1131
votes
108
answers
905k
views
R cannot be resolved - Android error
I just downloaded and installed the new Android SDK. I wanted to create a simple application to test drive it.
The wizard created this code:
package eu.mauriziopz.gps;
import android.app.Activity;
...
623
votes
15
answers
846k
views
You have not accepted the license agreements of the following SDK components [duplicate]
I downloaded the latest Android SDK tools version 24.4.1. I used the command line to install SDKs. I typed y when asked
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: y
after ...
608
votes
65
answers
627k
views
Automatically accept all SDK licences
Since gradle android plugins 2.2-alpha4:
Gradle will attempt to download missing SDK packages that a project
depends on
Which is amazingly cool and was know to be a JakeWharton project.
But, to ...
434
votes
32
answers
532k
views
"Failed to install the following Android SDK packages as some licences have not been accepted" error
I am getting this error in jitpack, I've tried everything on the internet. Below is my error
Failed to install the following Android SDK packages as some licences have not been accepted.
...
397
votes
54
answers
452k
views
Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;
Since updating to ADT 14 I can no longer build my project. It was building fine prior to updating.
The error:
[2011-10-23 16:23:29 - Dex Loader] Unable to execute dex: Multiple dex files define ...
394
votes
28
answers
378k
views
Flutter : How to change Android minSdkVersion in Flutter Project?
I was trying to start a flutter project for an App using Bluetooth to communicate. For that, I was using flutter blue.
Unfortunately, when trying to run (on an Android device) the first example I ...
350
votes
6
answers
174k
views
What are the Android SDK build-tools, platform-tools and tools? And which version should be used?
I know this is a very rudimentary question, but to my surprise, I could not find any document about Android SDK Build-tools.
Besides Android SDK Tools and Android SDK Platform-tools, there are a bunch ...
346
votes
14
answers
515k
views
Setting ANDROID_HOME enviromental variable on Mac OS X
Could anybody post a working solution for setting ANDROID_HOME via the terminal?
My path to the Android-SDK is /Applications/ADT/sdk.
309
votes
10
answers
532k
views
Finding Android SDK on Mac and adding to PATH
I have installed Android Studio on my MacBook Air (OS Version 10.11 El Capitan) and have successfully written a small "hello, world" app and installed on device (Nexus 7) and ran on AVD. All I want ...
287
votes
9
answers
153k
views
Android SDK folder taking a lot of disk space. Do we need to keep all of the System Images?
There are a lot of system images piling up on my disk in the android sdk folder. i hardly use the emulator. May be once in 6 months. Most of my development is directly on device. What i wanted to ...
248
votes
26
answers
181k
views
No version of NDK matched the requested version
After updating to Android Gradle plugin 3.6.0 (released Feb 24, 2020), several project independently started failing with:
No version of NDK matched the requested version 20.0.5594570. Versions ...
213
votes
11
answers
77k
views
Is there a way to automate the Android SDK installation?
Now I have to download and install the Android SDK and AVD Manager, and then install the APIs, tools through the UI. Is there a way to automate this process?
131
votes
31
answers
168k
views
Failed to run sdkmanager --list with Java 9
I downloaded and installed:
JDK (jdk-9.0.1_osx-x64_bin.dmg) from Oracle here
Android SDK (sdk-tools-darwin-3859397.zip) from Google here.
After configuring the PATH variable, I tried running ...
121
votes
29
answers
258k
views
Flutter does not find android sdk
I just tried intalling flutter and since I already had android studio and the android sdk installed I just followed the installation of flutter. Here is my problem: When I run
flutter doctor
It ...
106
votes
11
answers
89k
views
Is GUI for Android SDK manager gone?
I rarely do something for Android so I'm a bit confused. While back there were two type of installations - Android Studio and just Android SDK. I have IDEA so I don't need Studio. Typically I download ...
101
votes
7
answers
51k
views
The project is missing Android SDKs required for building
I'm attempting to build my first F# Android project in Visual Studio 2017 (Community Edition).
Immediately after creating a new project by using the F# - Android - Blank App template, the error ...
90
votes
13
answers
50k
views
Android Hello-World compile error: Intellij cannot find aapt
I'm trying to get set up with an Android development environment using IntelliJ in Ubuntu 12.04. I create an Android Application Module, but when I try to build, I get the following error:
android-...
84
votes
34
answers
296k
views
Facing issue " Failed to install the app. Make sure you have the Android development environment " in react native
Would you please help me, I am stuck to create a new project in react-native Like below screenshot. I have able to run old projects. but I am not able to run a new project
I have followed these steps:...
81
votes
21
answers
80k
views
Missing SDK platform Android, API 18
While I am trying to Install API 18 it shows only "Google API 18"(nothing more). Now if I try to install these google APIs from Android SDK Manager it shows a message "this package depends on "...
74
votes
4
answers
90k
views
"sdkmanager: command not found" after installing Android SDK
I installed via apt-get install android-sdk.
However, doing a find / -name sdkmanager reveals there is no such binary anywhere on the system.
On my Mac, the binary exists in $ANDROID_HOME/tools/bin.
...
72
votes
11
answers
177k
views
libz.so.1: cannot open shared object file
I am facing an issue on ubuntu 12.04 as :
/usr/lib/ndk/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-...
71
votes
7
answers
29k
views
Android Unknown Command 'crunch'
I just installed Eclipse and Android SDK in Mac OS X.
I imported the project to Eclipse and i get the Unknown command 'crunch' error while running the project.
How should I solve this issue.
Please ...
70
votes
14
answers
34k
views
Android Studio Wifi pairing Issue on Windows
I have used Android Studio Bumblebee's latest function (Wifi pairing) for 2 - 3 days before it stopped working.
I am now receiving the error "This system does not meet the requirements to support ...
67
votes
23
answers
183k
views
Flutter run error : You have not accepted the license agreements
I'm developing android and ios app with Google flutter.
when I add a new dependency like shared_preferences to pubspec.yaml and then execute flutter run in terminal, I got this error:
What went wrong:...
61
votes
14
answers
106k
views
Emulator stuck on loading screen in Android Studio
I decided to try Android Studio 2.0 having used Eclipse in the past, but I'm having considerable difficulty getting the Android virtual device (AVD) to load correctly.
I've done quite a bit of ...
60
votes
11
answers
238k
views
How to determine the version of android SDK installed in computer?
How to determine the version of Android SDK installed in my computer?
55
votes
1
answer
31k
views
When I load ADT why do I receive the error "The Android SDK requires Android Developer Toolkit version XX.X.X or above?"
I just updated my Android SDK Tools to version 21.1. Unfortunately this is causing an error when I load the Android Developer Toolkit:
The Android SDK requires Android Developer Toolkit version 21....
53
votes
11
answers
51k
views
Starting the Android emulator in SDK tools, revision 12
I updated the Android SDK tools from revision 11 to revision 12, and the emulator now fails to start. When I try to run emulator.exe, I get:
invalid command-line parameter: Files\Android\android-...
53
votes
4
answers
52k
views
Android SDK Manager - Do you need to install all Android platforms?
I just recently downloaded the Android SDK.
Downloading all the packages in the "SDK Manager" will take way too much time. So I'm wondering whether I should deselect all the platforms except ...
52
votes
9
answers
72k
views
Cordova : [Error: Please install Android target: "android-21"
I just updated cordova + ionic in my app, after that i installed successfully Android-SDK v22 via Android SDK manager.
But after the running command:
cordova build android
I always get the ...
46
votes
9
answers
55k
views
Android Studio SDK Managed Disabled
I just downloaded the Android Studio .dmg for OSX. Per the installation instructions, I've dragged it to the application folder and launched the application.
But the SDK Manager and AVD Manager ...
46
votes
12
answers
37k
views
Qt Creator Android error "Platform SDK installed"
I am developing Qt Cross platform application for Android, recently i have updated Qt creator and Installed new Qt version. I am using 'Qt Creator version 4.5.0'. I have updated to 'QT version 5.10'. ...
44
votes
13
answers
188k
views
Android SDK location should not contain whitespace, as this cause problems with NDK tools
Recently I have installed the last version of Android Studio (Android Studio 2.1), keeping the old 1.2 version previously installed. Now i have Android Studio 2.1 and Android Studio 1.2. In Android ...
41
votes
6
answers
82k
views
PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT
I'm trying to run my first Ionic app but i'm getting this error where it does not find my phone and does not find the emulator to run either.
C:\Users\MART\Dropbox\Ionic\myapp>ionic run android
...
41
votes
8
answers
56k
views
List installed sdk package via command line
I want to list the installed sdk packages by command lines.(For some reasons I cannot use the GUI)
I have done some research and found out several commands to list the available packages on the ...
40
votes
5
answers
28k
views
Getting "package android.support.multidex does not exist" after upgrading to Android Studio 2.3
I updated from Android Studio 2.2.3 to Android Studio 2.3 yesterday, and I ran into the following two problems:
Upon updating, Gradle 3.2 was installed by default, but syncing my
project would not ...
40
votes
8
answers
24k
views
Android emulator crashing on Mac
When I try to launch Android emulator, it crashes on Mac OS X. It was working some time ago, but now it isn't and I don't have an idea why.
Crash log: http://pastebin.com/04MjCqaS
Terminal log in ...
37
votes
5
answers
64k
views
Could not find gradle wrapper within Android SDK. Might need to update your Android SDK [duplicate]
I am trying to take build in an ionic2 application. I got this error while running ionic build android. The error log is
ANDROID_HOME=/home/varun/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
...
37
votes
1
answer
7k
views
Eclipse Run button doesn't work when Android xml file is selected
I have Eclipse Juno SR1 and Android SDK Tools 21.1, SDK Platform-tools 16.0.2 (latest) on Mac.
When I have some XML file selected and hit Run button, nothing happens. I have to select some Java File ...
37
votes
1
answer
88k
views
Getting warning "NDK is missing a 'platforms" directory.' with no NDK [duplicate]
I've got a project that only uses the Android SDK, not the NDK, but I'm getting warnings whenever I build with gradle about the NDK:
NDK is missing a "platforms" directory.
If you are using NDK, ...
36
votes
5
answers
10k
views
Android Sdk tools Revision 22 issue?
I just updated the SDK tools in Eclipse to revision 22, and since then I cannot build my project. Specifically the R class is not recognized in my Activity (I was getting compiler errors) and even ...
36
votes
3
answers
51k
views
How to update Android emulator without Android Studio?
I don't have Android Studio, just the Android SDK. When I launch one of my Android emulators using the Android Virtual Devices (AVD) Manager, I get the following message:
Your emulator is out of date,...
36
votes
8
answers
32k
views
ADB: missing port in specification
I've recently upgraded to Android SDK Platform-Tools version 28.0.2. Version information:
$ adb version
Android Debug Bridge version 1.0.40
Version 28.0.2-5303910
When using the adb connect command ...
36
votes
8
answers
16k
views
React Native : target with hash string 'android-X' not found
I am trying to develop my first react-native Android app. When I run
sudo react-native run-android
I get the following error
JS server already running.
Building and installing the app on the ...
36
votes
2
answers
5k
views
How to perform minification and obfuscation with the JACK compiler?
Google has released a test version of their new JACK compiler for Android developers with Android Studio 2.1.
My question is, how do we enable obfuscation for the APK with JACK? The article below ...
35
votes
7
answers
37k
views
Android studio error: An error occurred while trying to compute required packages
I'm trying to install the latest Android Studio on a MacBook pro 2015
Unfortunately I get this error:
An error occurred while trying to compute required packages.
Here a screenshot of the error:
...
34
votes
4
answers
53k
views
How to install old version of Android build tools from command line?
I am installing android SDK to create an automated build server. I got into a problem where many Gradle-based Android projects I manage rely on different build tools version. Some of the projects ...
34
votes
7
answers
13k
views
Debugger disconnecting in Android Studio when debugging a home screen widget
I am trying to debug an Android home screen widget application that I made.
When pressing a button on the widget, the debugger starts and then it just disconnects from the VM. No reason is given. I am ...
34
votes
9
answers
6k
views
INSTALL_FAILED_DEXOPT Error in Android 5.0 in Release mode
I have a strange issue with INSTALL_FAILED_DEXOPT .
This occurs in android 5.0 devices in emulator as well as in devices.
And strange thing is that it works well when build variant in Debug mode .
If ...
32
votes
3
answers
17k
views
How to install android Lollipop in eclipse?
This android Documentation says that installation procedure of android Lollipop.
in third step they says that
Select everything under the Android L Developer Preview section and click Install ...