Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio App not running on Device and Emulator

App doesn't run on both Emulator and Device on MAC, I only get an error saying client not ready yet.

I tried Invalidating and Restarting Android studio , tried to close app, uninstall, rerun , disabling instant run ,Clean Project, Rebuild , Deleting Gradle but none of these worked.

below is the run log that I'm getting.

$ adb push /Users/username/app/App/build/generalDebug-1.6.1-530966e6.apk /data/local/tmp/com.site.app $ adb shell pm install -r "/data/local/tmp/com.site.app” Success

Client not ready yet..

Does anyone know a solution for it?

like image 364
user3496326 Avatar asked Oct 19 '25 12:10

user3496326


2 Answers

Are you exporting the activity exported. The activity needs to be exported for adb to use it.

Try adding the exported tag explicitly as shown below:

<activity
    android:name=".my.MyActivity"
    android:exported="true"/>

I hope this helps.

like image 118
Nikit Prabhu Avatar answered Oct 21 '25 01:10

Nikit Prabhu


Uninstall the Android studio and install the latest one.Then go to the

File -> Manage IDE Settings -> Restore Default settings

update the Android SDK location in settings.

Then boom.... IDE will working as it was working normally.

like image 27
Mohsin Avatar answered Oct 21 '25 01:10

Mohsin