Reputation: 111
I have updated android studio to Android Studio v2.3.3 (June 2017) and adb stopped showing logs when I launch app on android studio emulator
The log shows:
07/11 13:08:17: Launching app
$ adb push C:\Users\1\AndroidStudioProjects\Don'tWakeMeApp4\app\build\outputs\apk\app-debug.apk /data/local/tmp/oleksandr.ivanets.dontwakemeapp $ adb shell pm install -r "/data/local/tmp/oleksandr.ivanets.dontwakemeapp" Success
$ adb shell am start -n "oleksandr.ivanets.dontwakemeapp/oleksandr.ivanets.dontwakemeapp.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Client not ready yet..Waiting for process to come online Connected to process 4429 on device Nexus_5X_API_26 [emulator-5554]
Upvotes: 3
Views: 6620
Reputation: 2107
Preface: Although my answer focuses on Android Studio's perspective of ADB errors, I'm sure it is helpful for Windows ADB debugging in general!
@sHaRkBoY 's answer helped me look in the right direction. I used to get "Unable to detect adb version, adb output:" on Android Studio while trying to "run" the app onto the phone... and no devices showed up when phone was connected to PC.
I had tried all these (from different SO answers) but none of them worked!!!:
File
toolbar.The problem finally was that the platform_tools\adb.exe
file downloaded by the official SDK tool manager was corrupted! So I used to get windows error code 0xc0000142 on launching adb.exe from command prompt! :(
For future readers (and victims xD) of the above ADB problem, please do the following:
Firstly, add the platform_tools\
directory into the system path environment variable.
Go ahead and replace the following 3 files in your platform_tools
(C:\Users\{YourAccount}\AppData\Local\Android\Sdk\platform-tools
) directory. (Please backup the same folder before, just in case.)
ADB kit (internal version number: 32)
Note: Please prefer this ADB kit (exe and dll files), compared to @sHaRkBoY 's ADB kit (2.0.0.0), since it has an updated version of AdbWinUsbApi.dll
(2.0.0.1), where a race condition issue has been fixed!
Upvotes: 1
Reputation: 581
Click on below link
and download the first link with name ADB Kits ( contains adb.exe and necessary .dll files).
After downloading replace these files with the ones in the path
Android/Sdk/platform-tools/
Now click on adb.exe and it will open cmd and will start the adb server.
Now it will detect the device and no problem. OOOOOllllaaaaa.....
If the Problem persists again then do the same... save the folder somewhere.... just replace files... it will detect the device automatically then
Upvotes: 6