Reputation: 225
I recently (2 days ago) updated my Android Studio to version 2.0.
After having troubles with my previously working application on a real device, I had to activate MultiDex to remove errors in the logcat...
All is working fine now, as it was before the update.
But when I try to launch my application in the emulator from Android Studio (which was working before the update) I face a strange error without any explanation (this is from the Android Studio "4: Run" tab):
04/13 13:20:40: Launching app
No apk changes detected since last installation, skipping installation of /.../app/build/outputs/apk/app-debug.apk
$ adb shell am force-stop com.android.test
$ adb shell am start -n "com.android.test/com.android.test.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Unexpected error while executing: am start -n "com.android.test/com.android.test.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while Launching activity
(I replaced the entire location by /.../
in the above lines as this is not relevant to the problem...)
The strange fact is the application works perfectly well on the AVD if launched manually (by clicking on the application icon on the virtual device)!
Now if you guys have an idea of what is happening and how to get rid of it, it would be nice.
PS: I tried removing the MultiDex, nothing changed, facing same issue...
Upvotes: 2
Views: 1598
Reputation: 73
Sorry for write on outdated post , but i had same problem. I was using AVD with arm processor image and received this same message.
The only way for me to make Android Studio 2.1.2 runs the app with instant run was change to a X86 processor image.
Upvotes: 0
Reputation: 1378
The new "instant run" feature is a bit buggy still, delete the app manually on your virtual device and run the code again.
Upvotes: 2