0

I am using android-studio in ubuntu.I am new to android programming.During installation itself I have received a message as "stopping ADB server failed".But remaining packages have been installed successfully.But when I try to run my first program it showed me as

"ADB not responding. if you'd like to retry then please manually kill adb and click 'restart'"

I have tried adb kill-server" but it showed me as command not found.

What shoul I do fix this bug?

And also I want include that I am not running ./studio.sh in root mode.Will this may be the reason for the above problem?

  • http://stackoverflow.com/questions/8790421/adb-kill-server-not-responding?rq=1 – IntelliJ Amiya Jan 02 '15 at 05:37
  • http://simpledeveloper.com/adb-not-responding-android-solution/ – IntelliJ Amiya Jan 02 '15 at 05:39
  • @IntelliJAmiya I have followed the links but it is showing me these two errors "Error:Error: Cannot run program "/home/sowmya/Android/Sdk/build-tools/21.1.2/aapt": error=2, No such file or directory", "Error:Execution failed for task ':app:mergeDebugResources'. > /home/sowmya/AndroidStudioProjects/HelloWorld/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.3/res/drawable-hdpi/abc_ic_ab_back_mtrl_am_alpha.png: Error: Cannot run program "/home/sowmya/Android/Sdk/build-tools/21.1.2/aapt": error=2, No such file or directory" What should I do now? – Sowmya Ravichandran Jan 03 '15 at 04:28
  • Install this sudo apt-get install lib32z1 lib32z1-dev lib32stdc++6 package – IntelliJ Amiya Jan 03 '15 at 04:45
  • https://teamtreehouse.com/forum/adb-is-not-responding-you-can-wait-more-or-kill-adbexe-process-manually-and-click-restart – IntelliJ Amiya Jan 03 '15 at 04:59
  • http://stackoverflow.com/questions/17851480/adb-not-responding-you-can-wait-more-or-kill-adb-exe-windows-8 – IntelliJ Amiya Jan 03 '15 at 05:01
  • http://simpledeveloper.com/adb-not-responding-android-solution/ – IntelliJ Amiya Jan 03 '15 at 05:04
  • 1
    @IntelliJAmiya Thank you so much.Finally I ran my first app. – Sowmya Ravichandran Jan 03 '15 at 16:36
  • can you tell me how to solved this ? – IntelliJ Amiya Jan 05 '15 at 05:17
  • 1
    I have installed those above mentioned packages.Then I executed my first app.But it showed me to enable kvm.Then I have installed kvm.Now it's perfectly good and it is easy to use. – Sowmya Ravichandran Jan 06 '15 at 13:18

1 Answers1

0

For Windows: Add a system variable as following and then restart your Computer then try again - it will be OK

ANDROID_ADB_SERVER_PORT
10501

system Variable

Abdo
  • 600
  • 6
  • 9