How can I open GUI Android SDK Manager? (For Linux) - android

Previously we could open Android SDK Manager like this:
$ cd sdk_path/tools/
$ ./android sdk
and result:
But when I ran same commands, I get this message:
The android command is no longer available.
For manual SDK and AVD management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
How can I open GUI Android SDK Manager?

OS: Xubuntu x64
I have the same problem on linux. Download the lates Android SDK 26.0.1, but can't load GUI sdk manager.
Solution:
I found previous version here: https://www.techspot.com/downloads/5425-android-sdk.html
Unpack and run from the console /tools/android
And then GUI sdk manager run's

Go to sdkfolder/tools. There is a file named just android
In a terminal run the command:
./android

Related

How to run the Android Emulator with Cordova?

Prerequisite
Android SDK is well installed (directory : /Users/gamecube/Library/Android/sdk)
How to reproduce :
Run this command : cordova build android
Run this command to launch android emulator : cordova emulate android --verbose
Expected result
The emulator is launched.
Obtained result
Command finished with error code 0: /Users/gamecube/Desktop/geocars/platforms/android/gradlew cdvBuildDebug,-b,/Users/gamecube/Desktop/geocars/platforms/android/build.gradle
Built the following apk(s):
/Users/gamecube/Desktop/geocars/platforms/android/app/build/outputs/apk/debug/app-debug.apk
No scripts found for hook "before_deploy".
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=/Users/gamecube/Library/Android/sdk (DEPRECATED)
Running command: adb devices
Command finished with error code 0: adb devices
Could not find either `android` or `avdmanager` on your $PATH! Are you sure the Android SDK is installed and available?
CordovaError: Could not find either `android` or `avdmanager` on your $PATH! Are you sure the Android SDK is installed and available?
at /Users/gamecube/Desktop/geocars/platforms/android/cordova/lib/emulator.js:176:35
at processTicksAndRejections (internal/process/task_queues.js:97:5)
My questions
Why Android Emulator does not work?
and
Why is there this error? :
CordovaError: Could not find either `android` or `avdmanager` on your $PATH! Are you sure the Android SDK is installed and available?
I solved my problem.
How did I do it?
I opened Android Studio, and went to the SDK Manager.
I clicked on the SDK Tools tab, and in the list displayed, I checked: Android SDK Command-line Tools (latest)
I then clicked on Apply (then OK on the pop-up) to download the package in question.
I added the path of avdmanager to PATH in my .bash_profile
I have run source ~ / .bash_profile to refresh
And I launched my command: cordova emulate android --verbose successfully since the emulator has opened well.
Without Android Studio, merely with Android Command Line Tools from Android SDK. Be sure these Android Command Line Tools (such as sdkmanager or avdmanager) are in the PATH, otherwise run them using the full path (for Debian/Ubuntu see this to install Android SDK).
Install the emulador
sdkmanager --install "emulator"
Install the platforms, example for Android API 32 and 33 (Android 12 and 13 respectively):
sdkmanager --install "system-images;android-32;google_apis;x86_64"
sdkmanager --install "system-images;android-33;google_apis;x86_64"
Create the Android Virtual Device (AVD), example:
avdmanager create avd -n emulator32 -k "system-images;android-32;google_apis;x86_64"
Confirm that was installed
avdmanager list avd
Run
cordova emulate android --target=emulator32

how to install android sdk tools (release 25.2.5) on ubuntu 16.04?

I was trying to install SDK tools (tools_r25.2.5-linux) downloaded from follwing link https://dl.google.com/android/repository/tools_r25.2.5-linux.zip on my Linux Ubuntu 16.04.
I run both the following command for installation
./android update sdk
sudo ./android update sdk
but the installation is stopping and giving this error
also ~./android/androidtool.cfg (both /root/.android and /home/user/.android directory) file contains following data
http.proxyPort=proper_port
http.proxyHost=proper_proxy
sdkman.show.update.only=true
sdkman.ask.adb.restart=false
sdkman.force.http=true
what issue is causing the problem? how can i solve this?

How to install SDK manager on linux ubuntu 16.04?

I was trying to install Android SDK with the help of the SDK command line tools downloaded from the link https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
on my Linux Ubuntu 16.04 PC.
i run the command following command for installation
./android update sdk
but the installation has stopped and gave the following message on terminal
------------------------------------------------------------------------------------------------------------------------------------
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
"android" SDK commands can be translated to sdkmanager commands on a best-effort basis.
Continue? (This prompt can be suppressed with the--use-sdk-wrapper command-line argument or by setting the USE_SDK_WRAPPER environment variable) [y/N]: y
Running /home/user/Android/Sdk/bin/sdkmanager --update
Warning: java.net.SocketException: Connection reset
Warning: Failed to download any source lists!
Done
-----------------------------------------------------------------------------------------------------------------------------------
how to solve this error.or suggest me a way to install android sdk on my linux pc without installing android studio.
A bit late, but in the same situation. It looks like this isn't an error, but the way the tools evolved: they are pushing users to use Android Studio if they want the GUI for the sdk manager, it's usable only from the IDE.
You still have the command line available at bin/sdkmanager in this folder from the download, and instructions can be found here, but they are not great, either, so I'll share what I did:
downloaded the latest compressed file from this page (link way down there)
unzipped somewhere (I chose /opt/Android/android-sdk)
created a symlink to add sdkmanager to my path (ln -s /opt/Android/android-tools/bin/sdkmanager ~/.local/bin/sdkmanager)
installed platform tools and build tools for kitkat and up using sdkmanager "platform-tools" "platforms;android-19" "build-tools;19.1.0" (sudo may be needed)
You can check the versions available using sdkmanager --list, and figure what you need to support and download tools for other versions. The download will not show any kind of progress, it'll only tell you it's done after a while.
I suppose it's not a big deal to keep Android Studio installed solely to have access to the sdk manager GUI, but I'll make do with the command line tools. That's very shady of Google, specially to people not really into their hacked up Intellij version.

Android SDK Manager fails to update SDK build tools revision 18.1.1

Below is the command line result (the GUI one is very similar):
C:\Program Files (x86)\Android\android-sdk\tools>android update sdk -u -a -t 3
.... licensing stuff
Installing Archives:
Preparing to install archives
Downloading Android SDK Build-tools, revision 18.1.1
URL not found: C:\Program Files (x86)\Android\android-sdk\temp\build-tools_r18.1.1-windows.zip (Access is denied)
Done. Nothing was installed.
I didn't find anything on the web that could help. What could be the problem?
open the android Sdk folder right click on sdk manager run as administrator. select update/new install.
Open command prompt as an administrator. Elevated permissions should resolve this issue.
Source
Thanx to doydoy.
It works in two ways:
1) Running SDK manager as admin
2) Command line works when CMD window with admin priveleges is used (aka elevated permissions)

avd manager does not show - I am not using eclipse

In OS X I navigate to /tools the execute ./android I do not get the Android SDK and AVD Manager. I only get Android SDK Manager. I am not using eclipse. As I am new I can not post an image but I have added a link to a screen shot. Any ideas?
http://img580.imageshack.us/img580/948/androidsdkmanager.jpg
Thanks
The latest version of the Android SDK has reworked the command line options to access the different tools. The SDK manager and AVD manager are now launched using different parameters to the android command:
./android sdk will launch the SDK manager (as will running the command without any parameters)
./android avd will launch the AVD manager
Feel free to type ./android --help from the command line to get information on all the usage options for the manager tool.
HTH

Categories

Resources