Development issue/problem:
After upgrading android studio to version 2.3. you will encounter a problem when installing an android studio to an android device.
makes it possible to confirm the increased output in the console before and after the android studio upgrade.
Before moving on to the android studio 2.3
adb push E: mynewappTestDemoTestDemoappbuildoutputsapkapp-debug.apk /data/local/tmp/com.example.gangsofcoder.testdemo
$ adb shell pm install -r /data/local/tmp/com.example.gangsofcoder.testdemo
pkg: /data/local/tmp/com.example.gangsofcoder.testdemo
successful
After upgrading to Android Studio 2.3
$ adb install-multiple -r E: SurajBahadurtestdemoappbuildintermediatessplit-apkdebugdependencies.
E:SurajBahadurtestdemoApptestdemoappbuildintermediatessplit-apkdebugslicesslice_1.apk
E:SurajBahadurtestdemoApptestdemoappbuildintermediatessplit-apkdebugslicesslice_3.apk
E:SurajBahadurtestdemoApptestdemoappbuildintermediatessplit-apkdebugsslice_0.
E:SurajBahadurtestdemoApptestdemoappbuildintermediatessplit-apkdebugslicesslice_2.apk
E:SurajBahadurtestdemoApptestdemoappbuildintermediatessplit-apkdebugslicesslice_4.apk
E:SurajBahadurtestdemoApptestdemoappbuildintermediatessplit-apkdebugsslice_6.
E:SurajBahadurtestdemoApptestdemoappbuildintermediatessplit-apkdebugslicesslice_5.apk
E:SurajBahadurtestdemoApptestdemoappbuildintermediatessplit-apkdebugslicesslice_7.apk
E:SurajBahadurtestdemoApptestdemoappbuildintermediatessplit-apkdebugsslice_8.
E: SurajBahadurtdemoApptestdemoappbuildintermediatessplit-apkdebugslicesslice_9.apk
E: SurajBahadurtdemoApptestdemoappbuildoutputsapkapp-debug.apk
MOT installation error
How can I solve this problem?
Solution 1:
This is due to the Instant Run function in Studio 2.3, which you can disable:
Open the Settings or Preferences dialog box.
Navigate to Build, Run, Deploy > Instant Run.
Uncheck the checkbox next to Enable immediate execution.
For more information, please visit:
https://developer.android.com/studio/run/index.html.
Solution 2:
Here is my solution (immediate execution does not need to be disabled)
Perform all these steps in the order shown:
- Construction of the cradle (root level)
- Cradle design + clean (application level)
- Select the application in the top pane (left of the application launch).
- Own project
Navigate to Building > Clean project
And it has to work now!
- Solution 2: Disable immediate start (as specified by Teresa)
Solution 3:
I had the same mistake on my Redmi Note 3.
For Xiaomi devices, go to the Developers section and disable MIUI optimization.
After a restart, the device will work.
See: http://en.miui.com/thread-255506-1-1.html
Solution 4:
Just press the Build> Clean Project tab in android studio. You’re free to go.
Solution No 5:
Check if there is more than one activity on the
Solution No 6:
Disabling immediate execution worked for me. Just go to the parameters and search for Instant Run, uncheck Apply Changes and restart the application.
should work
Solution No 7:
After studying Gingas’ answer, I have found a solution that suits me:
- Click on Build and then click on Clean Project.
- Click the Build button, then click the Rebuild Project
.
Then it ran like a train again.
Solution No 8:
Only the construction -> clean project worked for me. I had to uninstall the application on a test device.
Here is the option to delete the project.
Solution No 9:
I’m using a Mac and I couldn’t find the Instant Run option. I tried to create an invalid cache and restart it, and it worked.
Solution No 10:
If you’re using a Mac, create the apk(s) from the Build menu.
And install apk via adb
install -r /app/build/outputs/apk/debug/app-debug.apk
Good luck!
Related Tags: