I am running my Android studio on Ubuntu 14.04,its was working fine but suddenly its shows the following error while do build my project.
Error message:
ADB not responding. If you'd like to retry, then please manually kill "adb" and click 'Restart'
I have tried the following in terminal but it also not worked
node#node-Lenovo-G550:~/Android/Sdk/platform-tools$ adb kill-server
The program 'adb' is currently not installed. You can install it by typing:
sudo apt-get install android-tools-adb
but I have adb under platform-tools folder, I do not know why its says "not installed", How I can resolve this?. Please help me.
terminal image
Updated question:
I have added path as following:
export PATH=$PATH:/home/node/Android/Sdk/platform-tools
then executed this: ./adb kill-server
it gives me the following error
bash: ./adb: No such file or directory
if I run as adb kill-server it gives bash: /home/node/Android/Sdk/platform-tools/adb: cannot execute binary file: Exec format error
The directory where add is located, is not in your PATH variable. You could add it to your PATH variable (export PATH=$PATH:~/Android/Sdk/platform-tools I believe). You can also use ./adb kill-server. Note the ./ in front of adb. Because you are executing an executable in your current directory, you need ./
I have done the following steps and its works.
first run following comments to install:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
Second step is move the ADB and Fast boot to our SDK location.
cp /usr/bin/adb <path-to-your-adt-sdk-package>/sdk/platform-tools/adb
cp /usr/bin/fastboot <path-to-your-adt-sdk-package>/sdk/platformtools/fastboot
Last run the command:
SDK location/platform-tools/ adb kill-server.
Related
I'm having a problem where my emulator cannot start and I get this message "waiting for device to come online". Try to quit the emulator but cannot quit until some time. This keeps happening to me with the same emulator. Any idea how to solve this? Thank you.
Already answered in "waiting for target device to come online" in Android Studio 2.3
locate lib64 folder.Since i am running ubuntu 64 bit. In my case, its located under ~/Android/Sdk/emulator/lib64.
In terminal, Navigate to the ~/Android/Sdk/emulator/lib64 folder ,then run the following commands:
// Double Check to see if these are available
$ sudo apt-get install lib64stdc++6:i386
$ sudo apt-get install mesa-utils
// then move the libstdc++ file inside the folder libstdc++.bak
$ mv libstdc++/ libstdc++.bak
// And execute below command
$ ln -s /usr/lib64/libstdc++.so.6 libstdc++
i have an error in my intellij 14 when run my project , this error is :
ADB not responding. If you'd like to retry, then please manually kill "adb" and click 'Restart
i searched and found it to solve that :
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
sudo apt-get install lib32z1
but i have error when run commands :
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6-i386_2.19-0ubuntu6.3_amd64.deb 404 Not Found [IP: 91.189.91.23 80]
Try this instead,
sudo apt-get install lib32stdc++6
If that doesn't work then,
Try disabling your firewall if you have one
Run Intellij as the administrator.
Run adb kill-server and then adb start-server from your command
line
Also run this command in your terminal:
sudo apt-get install lib32stdc++6
When you do that, you might be warned by the installer that the package is obsolete and suggests alternatives and you can then install them (they are three libraries).
Another thing to try is this:
sudo apt-get install lib32ncurses5
Also, if you still have issues, go to the folder that contains adb and change its file permission to Allow executing file as a program).
If nothing mentioned above worked, run this command to install other libraries that might be missing:
sudo apt-get install libncurses5:i386
If none of the above mentioned method works then you should consult this,
How-To: Install Google's Android Eclipse Plugin (And/or Adb) on 64-bit Debian/Ubuntu
You do not need to reinstall.
1) Close IntelliJ
2) In your terminal, navigate to your sdk platform-tools
3) Use 'adb kill-server'
4) Use 'adb start-server'
5) Restart IntelliJ
I tried to install Android studio through terminal. I added the repository:
sudo apt-add-repository ppa:paolorotolo/adroid-studio
Then I typed sudo apt-get install android-studio
and it started downloading. Then while it was downloading I reboot my computer accidentally and when I did the same procedure the system notified me about the interruption and guided to give the command:
sudo dpkg --configure -a
So I did and the installation continued. Now I get the error:
Setting up android-studio (4.2-0ubuntu0) ...
unzip: cannot find or open /opt/android-studio-ide-*, /opt/android-studio-ide-*.zip or /opt/android-studio-ide-*.ZIP.
No zipfiles found.
rm: cannot remove ‘/opt/android-studio-ide-*’: No such file or directory
find: `/opt/android-studio/': No such file or directory
find: `/opt/android-studio/': No such file or directory
dpkg: error processing package android-studio (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
android-studio
E: Sub-process /usr/bin/dpkg returned an error code (1)
HOow can I fix this?
Just because the package manager continues following an interrupt doesn't mean that the package itself will not contain errors.
Try removing the package and starting the process over again.
First purge the package:
sudo apt-get purge android-studio
Then fix any remaining issues (sudo dpkg --configure -a or sudo apt-get update) and run the installation again (sudo apt-get install android-studio).
I am trying to make my Android AVD run with Eclipse on Ubuntu 12.10. I created the AVD in eclipse, and now it's not running. This is the output error I receive when I run the AVD:
Starting emulator for AVD 'My_android-16'
- Failed to start emulator: Cannot run program "/usrdata/Dev/android-sdk-linux//tools/emulator": error=2, No such
file or directory
I'm using Ubuntu 12.10, latest Eclipse installed.
What I've done:
I gave /tools/emulator chomod 777 permissions.
cp /usrdata/Dev/android-sdk-linux/tools/emulator /usrdata/Dev/android-sdk-linux
You don't have to install all the ia32 package. You can just use:
sudo apt-get install lib32ncurses5 lib32stdc++6
Also, I needed to make a soft link for LibGL.so.1 as mentioned here.
ln -s /usr/lib/libGL.so.1 ~/android-sdk-linux_x86/tools/lib/libGL.so
Run the following command on terminal:
apt-get install ia32-libs
Ref:http://developer.android.com/sdk/installing/index.html#troubleshooting
I am using Ubuntu for developing my 1st android. I have a problem and the solution is to adb install DataAttach.apk .
my problem is, where can i do adb install DataAttach.apk?
i tried this:
$ cd android-sdk-linux/
$ adb install DataAttach.apk
adb: command not found
do anyone can give me an idea about my case?
1)Open the terminal and move to android-SDK-Folder.
2)Go to platform-tools.
3)check for the existence of adb by using ls command
4)then try using adb as shown below
./adb install project.apk
That's it.
You should add the adb command to your $PATH variable.
On ubuntu, you should add these lines to your ~/.bashrc file:
export ANDROID_HOME=(path to your android-sdk/folder)
export PATH=$PATH:$ANDROID_HOME/platform-tools
and finally, restart your system, and that should work.