Android studio - unable to locate adb on ubuntu - android

I am trying to install Android Studio on my ubuntu 14.
Following the official guide While the setup wizard is downloading the components, I get this message:
....
Updated ADB to support the USB devices declared in the SDK add-ons.
Stopping ADB server failed (code -1).
Unable to run 'adb': Cannot locate program "/home/muser/Android/Sdk/platform-tools/adb": error=2, No such file or directory.
Starting ADB server failed (code -1).
....
There are no Android folder under /home/muser
Why is it searching it in that directory?
How to fix it?

After installing Android Studio, just run the following command.
sudo apt-get install android-tools-adb
[EDIT] - I installed Android Studio from here

It's not adb. It is android-tools-adb. Hence you need to use -
sudo apt-get install android-tools-adb

Related

Unable to create Debug Bridge: Unable to start adb server: Unable to detect adb version, adb output: /sdk/platform-tools/adb:

How to fix out -Unable to create Debug Bridge: Unable to start adb server: Unable to detect adb version, adb output: /home/dilip/Downloads/sdk/platform-tools/adb: 1: /home/dilip/Downloads/sdk/platform-tools/adb: Syntax error: ")" unexpected
I also go to platform tool path and hit adb kill-server and adb start-server command on the terminal still not able to connect device.
I also go through this link Unable to create Debug Bridge Unable to detect adb version. Syntax error: ")" Upgrading Platform-tools 23.0.1 to 23.1.0 Linux-32 bit causes Issue
Ubuntu 14.04.3 LTS
Got same error after update Android Studio and then Android SDK.
[SOLUTION : Downgrade /platform-tools folder]
Download this arch. : https://dl-ssl.google.com/android/repository/platform-tools_r23.0.1-linux.zip
Go to your Android SDK folder
Remove old /platform-tools
Insert downloaded from link above
Hope this help you also

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?

can not install android-studio on ubuntu - error 'cannot access sdk'

I have been trying to install android studio on Ubuntu 14.04 (64)
I have followed these steps.
From the terminal I typed:
sudo add-apt-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio
It installed so I found it using
dpkg -L android-studio
The application was installed in /usr/share/applications/android-studio which I physically clicked on from nautilus - which started the setup wizzard. I clicked standard install.
It took a long time downloading the entire sdk but once it was fully downloaded it gave me this message:
Android SDK is up to date.
Creating Android virtual device
Unable to access SDK
And gave me just the option to finish which closed the setup wizzard.
I tried the whole process again as root (sudo nautilus and again physically clicking on the application icon). It downloaded the whole sdk a second time - and gave the same error.
I'm not sure if this is a Ubuntu problem, an Android Studio problem or just a me problem. Please help.
I'm using the Android Studio under Ubuntu since February and I'm always installing it the same way:
Download zip archive here
Unzip it
Move unpacked Studio to /opt dir
Run /opt/android-studio/bin/studio.sh
After that I usually go to Tools -> Create desktop entry... and creating the AS entry in Unity launcher. Works without any issues.
OK it has been a lot of searching but it appears the problem is that the adb and some other sdk tools still use some 32 bit libraries which have been deprecated and are no longer supplied with the latest version of Ubuntu 64
Hopefully this issue will be resolved soon in the meantime I got it working with:
$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
$ sudo apt-get install apt-get install lib32stdc++6
And so far it is working as expected.

Problems getting Android Studio to build and install project on Ubuntu

When I go to install the packages from with Android Studio I get a "ADB not responding" error with wait/restart/close options.
I can run adb from a term. I can see my device and install the apk from the cmd line, but it doesn't work from within Android Studio.
In the terminal (that is running Android Studio) I get the following
03:56:36 E/adb: Unexpected exception 'Cannot run program "/media/5b317046-147a-42ee-aec1-f73caf1922c5/home/kloud9/WorkSpace/downloads/workspace/android-studio/sdk/platform-tools/adb": error=13, Permission denied' while attempting to get adb version from '/media/5b317046-147a-42ee-aec1-f73caf1922c5/home/kloud9/WorkSpace/downloads/workspace/android-studio/sdk/platform-tools/adb'
I have tried running Android Studio as sudo, but that doesn't help. I have all the environment variables set correctly, I am running oracle sun java jdk1.7.0. Any thoughts on what to try next?
Thanks,
Joe
I had the same issue. This fixed it for me.
sudo apt-get install ia32-libs

sdk manager failed to create sdcard in the avd folder AND unable to find userdata.img

I'm at my wits end now. I've been getting either one of these errors trying to set up an android emulator on Eclipse. I'm running Ubuntu.
I've read ALL of the answers that I've found for this error but nothing it working for me. Please help!!!
I have uninstalled and installed the android SDK tools several times, including the system image. I've tried to update ia32-libs although I get the following error:
The following packages have unmet dependencies:
ia32-libs : Depends: ia32-libs-multiarch but it is not installable
E: Unable to correct problems, you have held broken packages
After trying
sudo dpkg -r --force-all librtmp0
sudo apt-get install librtmp0
sudo apt-get install ia32-libs
I still get the same error as above.

Categories

Resources