Application Installation Failed in Android Studio












104















Yesterday my app was running perfect from Android Studio but today when I started working on my app and running it i am getting error message continuously




Installation failed with message Failed to establish session.




Screen :



enter image description here



On click OK getting error message




Session 'app':Error Installing APKs




And App is not exist(already Uninstalled) in device. Please suggest me what to do ?










share|improve this question

























  • can you checking in other devices?still that same issue

    – Pratik Mohanrao Gondil
    Mar 9 '17 at 5:46













  • yes i was testing on 2 devices today app is running on one device only and getting error by running on another device

    – Kapil Rajput
    Mar 9 '17 at 5:49











  • The problem could be the 1) Installed application is higher version compare to the installing one 2)The signature mismatch

    – Madhukar Hebbar
    Mar 9 '17 at 5:50






  • 1





    Kapil Rajput i am also suffering this problem after update Android studio 2.2 to 2.3

    – Dileep Patel
    Mar 9 '17 at 5:52






  • 1





    This worked for me after a lot of research. stackoverflow.com/a/42226014/6749161

    – Bharat Kumar Emani
    Jun 29 '17 at 12:20
















104















Yesterday my app was running perfect from Android Studio but today when I started working on my app and running it i am getting error message continuously




Installation failed with message Failed to establish session.




Screen :



enter image description here



On click OK getting error message




Session 'app':Error Installing APKs




And App is not exist(already Uninstalled) in device. Please suggest me what to do ?










share|improve this question

























  • can you checking in other devices?still that same issue

    – Pratik Mohanrao Gondil
    Mar 9 '17 at 5:46













  • yes i was testing on 2 devices today app is running on one device only and getting error by running on another device

    – Kapil Rajput
    Mar 9 '17 at 5:49











  • The problem could be the 1) Installed application is higher version compare to the installing one 2)The signature mismatch

    – Madhukar Hebbar
    Mar 9 '17 at 5:50






  • 1





    Kapil Rajput i am also suffering this problem after update Android studio 2.2 to 2.3

    – Dileep Patel
    Mar 9 '17 at 5:52






  • 1





    This worked for me after a lot of research. stackoverflow.com/a/42226014/6749161

    – Bharat Kumar Emani
    Jun 29 '17 at 12:20














104












104








104


33






Yesterday my app was running perfect from Android Studio but today when I started working on my app and running it i am getting error message continuously




Installation failed with message Failed to establish session.




Screen :



enter image description here



On click OK getting error message




Session 'app':Error Installing APKs




And App is not exist(already Uninstalled) in device. Please suggest me what to do ?










share|improve this question
















Yesterday my app was running perfect from Android Studio but today when I started working on my app and running it i am getting error message continuously




Installation failed with message Failed to establish session.




Screen :



enter image description here



On click OK getting error message




Session 'app':Error Installing APKs




And App is not exist(already Uninstalled) in device. Please suggest me what to do ?







android android-studio installation apk






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 2 '18 at 7:16









Shirish Herwade

4,770135799




4,770135799










asked Mar 9 '17 at 5:41









Kapil RajputKapil Rajput

5,91733046




5,91733046













  • can you checking in other devices?still that same issue

    – Pratik Mohanrao Gondil
    Mar 9 '17 at 5:46













  • yes i was testing on 2 devices today app is running on one device only and getting error by running on another device

    – Kapil Rajput
    Mar 9 '17 at 5:49











  • The problem could be the 1) Installed application is higher version compare to the installing one 2)The signature mismatch

    – Madhukar Hebbar
    Mar 9 '17 at 5:50






  • 1





    Kapil Rajput i am also suffering this problem after update Android studio 2.2 to 2.3

    – Dileep Patel
    Mar 9 '17 at 5:52






  • 1





    This worked for me after a lot of research. stackoverflow.com/a/42226014/6749161

    – Bharat Kumar Emani
    Jun 29 '17 at 12:20



















  • can you checking in other devices?still that same issue

    – Pratik Mohanrao Gondil
    Mar 9 '17 at 5:46













  • yes i was testing on 2 devices today app is running on one device only and getting error by running on another device

    – Kapil Rajput
    Mar 9 '17 at 5:49











  • The problem could be the 1) Installed application is higher version compare to the installing one 2)The signature mismatch

    – Madhukar Hebbar
    Mar 9 '17 at 5:50






  • 1





    Kapil Rajput i am also suffering this problem after update Android studio 2.2 to 2.3

    – Dileep Patel
    Mar 9 '17 at 5:52






  • 1





    This worked for me after a lot of research. stackoverflow.com/a/42226014/6749161

    – Bharat Kumar Emani
    Jun 29 '17 at 12:20

















can you checking in other devices?still that same issue

– Pratik Mohanrao Gondil
Mar 9 '17 at 5:46







can you checking in other devices?still that same issue

– Pratik Mohanrao Gondil
Mar 9 '17 at 5:46















yes i was testing on 2 devices today app is running on one device only and getting error by running on another device

– Kapil Rajput
Mar 9 '17 at 5:49





yes i was testing on 2 devices today app is running on one device only and getting error by running on another device

– Kapil Rajput
Mar 9 '17 at 5:49













The problem could be the 1) Installed application is higher version compare to the installing one 2)The signature mismatch

– Madhukar Hebbar
Mar 9 '17 at 5:50





The problem could be the 1) Installed application is higher version compare to the installing one 2)The signature mismatch

– Madhukar Hebbar
Mar 9 '17 at 5:50




1




1





Kapil Rajput i am also suffering this problem after update Android studio 2.2 to 2.3

– Dileep Patel
Mar 9 '17 at 5:52





Kapil Rajput i am also suffering this problem after update Android studio 2.2 to 2.3

– Dileep Patel
Mar 9 '17 at 5:52




1




1





This worked for me after a lot of research. stackoverflow.com/a/42226014/6749161

– Bharat Kumar Emani
Jun 29 '17 at 12:20





This worked for me after a lot of research. stackoverflow.com/a/42226014/6749161

– Bharat Kumar Emani
Jun 29 '17 at 12:20












26 Answers
26






active

oldest

votes


















200














Again in this issue also I found Instant Run buggy. When I disable the Instant run and run the app again App starts successfully installing in the Device without showing any error Window.
I hope google will sort out these Issues with Instant run soon.



Steps to Disable Instant Run form Android Studio




File > Settings > Build,Execution,Deployment > Instant Run > Un-check
(Enable Instant Run to hot swap code)







share|improve this answer





















  • 8





    It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission

    – prakash ubhadiya
    Jun 20 '17 at 5:35






  • 1





    This fixed the same issue I'm having, but with a Samsung phone!

    – Yuki Kutsuya
    Apr 14 '18 at 12:43











  • more than a year later this still happens.

    – SilentStorm
    May 25 '18 at 8:14











  • Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.

    – theAnonymous
    Jun 3 '18 at 17:06








  • 4





    For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)

    – Vinoth Anandan
    Jul 6 '18 at 11:56



















95














If you use MIUI ROM



Go to the developer option and in that disable MIUI optimization.You will be asked to reboot your phone.
Reboot it and then run the app.






share|improve this answer





















  • 1





    hope miui guys will fix this soon

    – ospider
    Mar 19 '17 at 15:04











  • this helped me. MIUI

    – alexey polusov
    Jul 3 '17 at 19:00











  • worked for me..!

    – Ahmad Shahwaiz
    Jul 31 '17 at 6:16











  • worked for me. Thanks a lot

    – Umesh Sharma
    Oct 9 '17 at 10:18











  • I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?

    – Utsav Gupta
    Jan 4 '18 at 14:19



















38














Your APK file is missing . So , Clean Project >> Build APK >> Run the project .






share|improve this answer
























  • Work for me Clean Project >> Rebuild Project >> Build APK >> Run

    – Afzaal Ahmad
    Nov 27 '17 at 10:26













  • Omg... this worked... So strange.

    – Benjamin Piette
    Sep 16 '18 at 19:16











  • You can Skip "Build APK"

    – Sarvesh Thiruppathi
    Dec 30 '18 at 10:42



















23














For those who uses Xiaomi phones, follow these steps:




  1. Settings-> Additional Settings-> Developer opetions


  2. Turn off MIUI Optimization and reboot your phone


  3. Last Disable verify app over USB



Your device will respond properly.






share|improve this answer


























  • It actually worked for Xiaomi devices. Thanks mate!

    – Pavel Selitskas
    Oct 29 '17 at 13:34











  • please mark this as solution!

    – John
    Nov 3 '17 at 21:20











  • Thanks :). Mark this as solution

    – user7939485
    Dec 1 '17 at 8:19











  • Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.

    – Violet Giraffe
    Jan 9 '18 at 12:03



















17














I had the same issue in Android studio 2.3 when I tried to test the app using Xiaomi's Mi5 and Mi4 phones. Disabling instant run didn't help me. So here is what I did.



Turn Off MIUI optimization in the Developer Options in the phone.


enter image description here
enter image description here



Then the device will be rebooted and then you'll be able to test the app over the phone.





Using this method you can still use instant run option in android studio. So this will fix your problem at least temporary. Hope that we'll be able to use MIUI optimization in the near future updates :)






share|improve this answer































    7














    Finally I've SOLVED it!



    Below a temporary solution. Issue was reported to Google.



    First of all I found in Run log that Android Studion 2.3 tries to install app-debug.apk from many slices, like this:




    $ adb install-multiple -r
    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_1.apk
    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugdepdependencies.apk
    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_0.apk
    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_2.apk
    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_9.apk
    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_4.apk
    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_3.apk
    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_5.apk
    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_8.apk
    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_7.apk
    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_6.apk
    E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




    Then I tried to install only app-debug.apk from command line by:




    adb install -d E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




    App was installed successfully but was failed to run on my phone.



    And finally:




    1. I recompiled app-debug.apk from command line as:



    gradlew.bat assembleDebug





    1. Repeat installation of app-debug.apk from command line and became happy:



    adb install -rd E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




    This is definitely some gradle problem in AndroidStudio 2.3.






    share|improve this answer


























    • +1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!

      – Yuntao
      Jul 26 '17 at 1:14



















    6














    I had the same issue in MIUI. Enabling OEM unlocking worked for me without disabling MIUI optimization.



    Below is a screenshot of my Redmi 3s prime developer options setting:



    screenshot of my Redmi 3s prime developer options setting






    share|improve this answer

































      6














      Have the same issue on Xiaomi Redmi 4X. Resolved it by turning off MIUI optimization at phone dev settings.






      share|improve this answer
























      • it worked for me, thanks

        – Damara Jati P
        Feb 12 '18 at 3:09



















      4















      Just do the following step...




      Build>Clean Project



      after that Run project again, this worked for me






      share|improve this answer































        3














        Try disabling the Instant run in Settings.






        share|improve this answer
























        • I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;

          – Noah Tanenholtz
          Mar 28 '17 at 19:58





















        3














        This is caused by "instant run" feature, you can disable it by:



        Open the Settings or Preferences dialog. Navigate to Build, Execution, Deployment > Instant Run.



        Uncheck the box next to Enable Instant Run and u are ready to go.






        share|improve this answer































          2














          Change your applicationid in the build.gradle file.
          for example-



          com.example.myAndroidApp to com.example.somethingelse



          then Sync your gradle then you can able to install your app,
          if the previous applicationId is your production id the again change it the previous one now the device will allow to install the app.



          Hope this may help you....






          share|improve this answer



















          • 1





            I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!

            – im_chc
            Nov 10 '17 at 9:00













          • I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now

            – im_chc
            Nov 10 '17 at 9:04











          • Helped. Thank you!

            – DmitryKanunnikoff
            Dec 13 '18 at 11:58











          • After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.

            – DmitryKanunnikoff
            Dec 13 '18 at 12:03











          • I'm using Android Studio 3.4 Canary 8. This didn't help my case

            – Jemsheer K D
            Dec 14 '18 at 9:15



















          2














          just close your emulator and run again the problem will be solved happy coding






          share|improve this answer































            2














            In my case, it was very a silly and funny mistake. I, accidentally without actually knowing, checked "Android Debug Bridge, Use libUsb backend". Actually it should stay unchecked..



            In Mac Pro, Go Preferences - > Build, Execution,Deployment -> Debugger.enter image description here






            share|improve this answer































              2














              In my case, is was because my emulator ran out of disk space.






              share|improve this answer































                2














                Go to Build --> Clean Project --> Run



                Thats all it takes.






                share|improve this answer































                  1














                  Faced same issues on MIUI phone resolved by making MIUI account and enable install by USB.






                  share|improve this answer



















                  • 1





                    Install by USB is enabled

                    – Kapil Rajput
                    Mar 9 '17 at 6:07





















                  0














                  Sometime app doesn't show on home screen,So
                  Check your apps by going to setting - > apps -> and then uninstall from app setting might this work.






                  share|improve this answer



















                  • 2





                    app not exist in apps too :(

                    – Kapil Rajput
                    Mar 9 '17 at 6:01



















                  0














                  Make sure your app is fully uninstalled from the device, check from the settings>applications. Some times ap not shows you in the app drawer but still in the system, if app is there you must uninstall from there, then check.






                  share|improve this answer
























                  • app not exist in device i did check it in all possible ways

                    – Kapil Rajput
                    Mar 9 '17 at 6:35



















                  0














                  Go to USB Debugging and disable MIUI Inspection and allow the phone to reboot. Things should be fine from here






                  share|improve this answer































                    0














                    Here's my solution (there's no need to deactivate instant run) Do all these steps in the stated order:



                    1- Gradle Build (root level)



                    gradle



                    2 - Gradle build + clean (app level)



                    gradle app



                    3 - Choose app on the top bar (left of Run 'app')



                    4 - Clean Project:



                    Navigate to Build > Clean Project



                    And it should work now! You shouldn't disable instant run if you follow these steps






                    share|improve this answer
























                    • Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure

                      – Ginggas
                      Oct 3 '17 at 8:13











                    • I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.

                      – Jemsheer K D
                      Dec 14 '18 at 9:06



















                    0














                    At me such error arose after renaming of a folder with the project.



                    Disabling Instance Run helped, but what if you do not need to disable it?



                    I deleted all the tags mentioning the old folder name from the file myprojectappbuildintermediatesrestart-dexdebugbuild-info.xml



                    The error has disappeared.






                    share|improve this answer
























                    • Disabling Instance Run fixed the issue for me. :)

                      – pstorli
                      Jun 27 '18 at 16:51



















                    0














                    In my case Instant Run hided the real cause of the problem which was INSUFFICIENT_SPACE due to small data partition and I also got "failed to establish session" error. After disabling Instant Run, the real problem was revealed and after fixing it and enabling Instant Run it worked.






                    share|improve this answer































                      0














                      In my own case, it was because my phone was out of space. For people that are facing this problem right now, if Clean Project + Build APKs does not work, check the available space on your phone or emulator.



                      I hope this helps.. Merry coding!






                      share|improve this answer































                        0














                        Easily can be solved this problem.



                        Ex:- in Huawei GR3 mobile,



                        Goto Setting in your mobile -> Storage -> Storage Cleaner






                        share|improve this answer































                          -1














                          Allow or enable "Installation from USB" in the developer options.






                          share|improve this answer

































                            26 Answers
                            26






                            active

                            oldest

                            votes








                            26 Answers
                            26






                            active

                            oldest

                            votes









                            active

                            oldest

                            votes






                            active

                            oldest

                            votes









                            200














                            Again in this issue also I found Instant Run buggy. When I disable the Instant run and run the app again App starts successfully installing in the Device without showing any error Window.
                            I hope google will sort out these Issues with Instant run soon.



                            Steps to Disable Instant Run form Android Studio




                            File > Settings > Build,Execution,Deployment > Instant Run > Un-check
                            (Enable Instant Run to hot swap code)







                            share|improve this answer





















                            • 8





                              It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission

                              – prakash ubhadiya
                              Jun 20 '17 at 5:35






                            • 1





                              This fixed the same issue I'm having, but with a Samsung phone!

                              – Yuki Kutsuya
                              Apr 14 '18 at 12:43











                            • more than a year later this still happens.

                              – SilentStorm
                              May 25 '18 at 8:14











                            • Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.

                              – theAnonymous
                              Jun 3 '18 at 17:06








                            • 4





                              For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)

                              – Vinoth Anandan
                              Jul 6 '18 at 11:56
















                            200














                            Again in this issue also I found Instant Run buggy. When I disable the Instant run and run the app again App starts successfully installing in the Device without showing any error Window.
                            I hope google will sort out these Issues with Instant run soon.



                            Steps to Disable Instant Run form Android Studio




                            File > Settings > Build,Execution,Deployment > Instant Run > Un-check
                            (Enable Instant Run to hot swap code)







                            share|improve this answer





















                            • 8





                              It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission

                              – prakash ubhadiya
                              Jun 20 '17 at 5:35






                            • 1





                              This fixed the same issue I'm having, but with a Samsung phone!

                              – Yuki Kutsuya
                              Apr 14 '18 at 12:43











                            • more than a year later this still happens.

                              – SilentStorm
                              May 25 '18 at 8:14











                            • Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.

                              – theAnonymous
                              Jun 3 '18 at 17:06








                            • 4





                              For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)

                              – Vinoth Anandan
                              Jul 6 '18 at 11:56














                            200












                            200








                            200







                            Again in this issue also I found Instant Run buggy. When I disable the Instant run and run the app again App starts successfully installing in the Device without showing any error Window.
                            I hope google will sort out these Issues with Instant run soon.



                            Steps to Disable Instant Run form Android Studio




                            File > Settings > Build,Execution,Deployment > Instant Run > Un-check
                            (Enable Instant Run to hot swap code)







                            share|improve this answer















                            Again in this issue also I found Instant Run buggy. When I disable the Instant run and run the app again App starts successfully installing in the Device without showing any error Window.
                            I hope google will sort out these Issues with Instant run soon.



                            Steps to Disable Instant Run form Android Studio




                            File > Settings > Build,Execution,Deployment > Instant Run > Un-check
                            (Enable Instant Run to hot swap code)








                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Jun 16 '17 at 5:36

























                            answered Mar 9 '17 at 12:17









                            Kapil RajputKapil Rajput

                            5,91733046




                            5,91733046








                            • 8





                              It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission

                              – prakash ubhadiya
                              Jun 20 '17 at 5:35






                            • 1





                              This fixed the same issue I'm having, but with a Samsung phone!

                              – Yuki Kutsuya
                              Apr 14 '18 at 12:43











                            • more than a year later this still happens.

                              – SilentStorm
                              May 25 '18 at 8:14











                            • Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.

                              – theAnonymous
                              Jun 3 '18 at 17:06








                            • 4





                              For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)

                              – Vinoth Anandan
                              Jul 6 '18 at 11:56














                            • 8





                              It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission

                              – prakash ubhadiya
                              Jun 20 '17 at 5:35






                            • 1





                              This fixed the same issue I'm having, but with a Samsung phone!

                              – Yuki Kutsuya
                              Apr 14 '18 at 12:43











                            • more than a year later this still happens.

                              – SilentStorm
                              May 25 '18 at 8:14











                            • Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.

                              – theAnonymous
                              Jun 3 '18 at 17:06








                            • 4





                              For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)

                              – Vinoth Anandan
                              Jul 6 '18 at 11:56








                            8




                            8





                            It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission

                            – prakash ubhadiya
                            Jun 20 '17 at 5:35





                            It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission

                            – prakash ubhadiya
                            Jun 20 '17 at 5:35




                            1




                            1





                            This fixed the same issue I'm having, but with a Samsung phone!

                            – Yuki Kutsuya
                            Apr 14 '18 at 12:43





                            This fixed the same issue I'm having, but with a Samsung phone!

                            – Yuki Kutsuya
                            Apr 14 '18 at 12:43













                            more than a year later this still happens.

                            – SilentStorm
                            May 25 '18 at 8:14





                            more than a year later this still happens.

                            – SilentStorm
                            May 25 '18 at 8:14













                            Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.

                            – theAnonymous
                            Jun 3 '18 at 17:06







                            Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.

                            – theAnonymous
                            Jun 3 '18 at 17:06






                            4




                            4





                            For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)

                            – Vinoth Anandan
                            Jul 6 '18 at 11:56





                            For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)

                            – Vinoth Anandan
                            Jul 6 '18 at 11:56













                            95














                            If you use MIUI ROM



                            Go to the developer option and in that disable MIUI optimization.You will be asked to reboot your phone.
                            Reboot it and then run the app.






                            share|improve this answer





















                            • 1





                              hope miui guys will fix this soon

                              – ospider
                              Mar 19 '17 at 15:04











                            • this helped me. MIUI

                              – alexey polusov
                              Jul 3 '17 at 19:00











                            • worked for me..!

                              – Ahmad Shahwaiz
                              Jul 31 '17 at 6:16











                            • worked for me. Thanks a lot

                              – Umesh Sharma
                              Oct 9 '17 at 10:18











                            • I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?

                              – Utsav Gupta
                              Jan 4 '18 at 14:19
















                            95














                            If you use MIUI ROM



                            Go to the developer option and in that disable MIUI optimization.You will be asked to reboot your phone.
                            Reboot it and then run the app.






                            share|improve this answer





















                            • 1





                              hope miui guys will fix this soon

                              – ospider
                              Mar 19 '17 at 15:04











                            • this helped me. MIUI

                              – alexey polusov
                              Jul 3 '17 at 19:00











                            • worked for me..!

                              – Ahmad Shahwaiz
                              Jul 31 '17 at 6:16











                            • worked for me. Thanks a lot

                              – Umesh Sharma
                              Oct 9 '17 at 10:18











                            • I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?

                              – Utsav Gupta
                              Jan 4 '18 at 14:19














                            95












                            95








                            95







                            If you use MIUI ROM



                            Go to the developer option and in that disable MIUI optimization.You will be asked to reboot your phone.
                            Reboot it and then run the app.






                            share|improve this answer















                            If you use MIUI ROM



                            Go to the developer option and in that disable MIUI optimization.You will be asked to reboot your phone.
                            Reboot it and then run the app.







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Apr 26 '17 at 7:47









                            Lemberg

                            2,91613243




                            2,91613243










                            answered Mar 9 '17 at 11:01









                            Vivian DbrittoVivian Dbritto

                            95337




                            95337








                            • 1





                              hope miui guys will fix this soon

                              – ospider
                              Mar 19 '17 at 15:04











                            • this helped me. MIUI

                              – alexey polusov
                              Jul 3 '17 at 19:00











                            • worked for me..!

                              – Ahmad Shahwaiz
                              Jul 31 '17 at 6:16











                            • worked for me. Thanks a lot

                              – Umesh Sharma
                              Oct 9 '17 at 10:18











                            • I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?

                              – Utsav Gupta
                              Jan 4 '18 at 14:19














                            • 1





                              hope miui guys will fix this soon

                              – ospider
                              Mar 19 '17 at 15:04











                            • this helped me. MIUI

                              – alexey polusov
                              Jul 3 '17 at 19:00











                            • worked for me..!

                              – Ahmad Shahwaiz
                              Jul 31 '17 at 6:16











                            • worked for me. Thanks a lot

                              – Umesh Sharma
                              Oct 9 '17 at 10:18











                            • I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?

                              – Utsav Gupta
                              Jan 4 '18 at 14:19








                            1




                            1





                            hope miui guys will fix this soon

                            – ospider
                            Mar 19 '17 at 15:04





                            hope miui guys will fix this soon

                            – ospider
                            Mar 19 '17 at 15:04













                            this helped me. MIUI

                            – alexey polusov
                            Jul 3 '17 at 19:00





                            this helped me. MIUI

                            – alexey polusov
                            Jul 3 '17 at 19:00













                            worked for me..!

                            – Ahmad Shahwaiz
                            Jul 31 '17 at 6:16





                            worked for me..!

                            – Ahmad Shahwaiz
                            Jul 31 '17 at 6:16













                            worked for me. Thanks a lot

                            – Umesh Sharma
                            Oct 9 '17 at 10:18





                            worked for me. Thanks a lot

                            – Umesh Sharma
                            Oct 9 '17 at 10:18













                            I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?

                            – Utsav Gupta
                            Jan 4 '18 at 14:19





                            I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?

                            – Utsav Gupta
                            Jan 4 '18 at 14:19











                            38














                            Your APK file is missing . So , Clean Project >> Build APK >> Run the project .






                            share|improve this answer
























                            • Work for me Clean Project >> Rebuild Project >> Build APK >> Run

                              – Afzaal Ahmad
                              Nov 27 '17 at 10:26













                            • Omg... this worked... So strange.

                              – Benjamin Piette
                              Sep 16 '18 at 19:16











                            • You can Skip "Build APK"

                              – Sarvesh Thiruppathi
                              Dec 30 '18 at 10:42
















                            38














                            Your APK file is missing . So , Clean Project >> Build APK >> Run the project .






                            share|improve this answer
























                            • Work for me Clean Project >> Rebuild Project >> Build APK >> Run

                              – Afzaal Ahmad
                              Nov 27 '17 at 10:26













                            • Omg... this worked... So strange.

                              – Benjamin Piette
                              Sep 16 '18 at 19:16











                            • You can Skip "Build APK"

                              – Sarvesh Thiruppathi
                              Dec 30 '18 at 10:42














                            38












                            38








                            38







                            Your APK file is missing . So , Clean Project >> Build APK >> Run the project .






                            share|improve this answer













                            Your APK file is missing . So , Clean Project >> Build APK >> Run the project .







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Oct 12 '17 at 16:43









                            royroy

                            3,74311833




                            3,74311833













                            • Work for me Clean Project >> Rebuild Project >> Build APK >> Run

                              – Afzaal Ahmad
                              Nov 27 '17 at 10:26













                            • Omg... this worked... So strange.

                              – Benjamin Piette
                              Sep 16 '18 at 19:16











                            • You can Skip "Build APK"

                              – Sarvesh Thiruppathi
                              Dec 30 '18 at 10:42



















                            • Work for me Clean Project >> Rebuild Project >> Build APK >> Run

                              – Afzaal Ahmad
                              Nov 27 '17 at 10:26













                            • Omg... this worked... So strange.

                              – Benjamin Piette
                              Sep 16 '18 at 19:16











                            • You can Skip "Build APK"

                              – Sarvesh Thiruppathi
                              Dec 30 '18 at 10:42

















                            Work for me Clean Project >> Rebuild Project >> Build APK >> Run

                            – Afzaal Ahmad
                            Nov 27 '17 at 10:26







                            Work for me Clean Project >> Rebuild Project >> Build APK >> Run

                            – Afzaal Ahmad
                            Nov 27 '17 at 10:26















                            Omg... this worked... So strange.

                            – Benjamin Piette
                            Sep 16 '18 at 19:16





                            Omg... this worked... So strange.

                            – Benjamin Piette
                            Sep 16 '18 at 19:16













                            You can Skip "Build APK"

                            – Sarvesh Thiruppathi
                            Dec 30 '18 at 10:42





                            You can Skip "Build APK"

                            – Sarvesh Thiruppathi
                            Dec 30 '18 at 10:42











                            23














                            For those who uses Xiaomi phones, follow these steps:




                            1. Settings-> Additional Settings-> Developer opetions


                            2. Turn off MIUI Optimization and reboot your phone


                            3. Last Disable verify app over USB



                            Your device will respond properly.






                            share|improve this answer


























                            • It actually worked for Xiaomi devices. Thanks mate!

                              – Pavel Selitskas
                              Oct 29 '17 at 13:34











                            • please mark this as solution!

                              – John
                              Nov 3 '17 at 21:20











                            • Thanks :). Mark this as solution

                              – user7939485
                              Dec 1 '17 at 8:19











                            • Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.

                              – Violet Giraffe
                              Jan 9 '18 at 12:03
















                            23














                            For those who uses Xiaomi phones, follow these steps:




                            1. Settings-> Additional Settings-> Developer opetions


                            2. Turn off MIUI Optimization and reboot your phone


                            3. Last Disable verify app over USB



                            Your device will respond properly.






                            share|improve this answer


























                            • It actually worked for Xiaomi devices. Thanks mate!

                              – Pavel Selitskas
                              Oct 29 '17 at 13:34











                            • please mark this as solution!

                              – John
                              Nov 3 '17 at 21:20











                            • Thanks :). Mark this as solution

                              – user7939485
                              Dec 1 '17 at 8:19











                            • Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.

                              – Violet Giraffe
                              Jan 9 '18 at 12:03














                            23












                            23








                            23







                            For those who uses Xiaomi phones, follow these steps:




                            1. Settings-> Additional Settings-> Developer opetions


                            2. Turn off MIUI Optimization and reboot your phone


                            3. Last Disable verify app over USB



                            Your device will respond properly.






                            share|improve this answer















                            For those who uses Xiaomi phones, follow these steps:




                            1. Settings-> Additional Settings-> Developer opetions


                            2. Turn off MIUI Optimization and reboot your phone


                            3. Last Disable verify app over USB



                            Your device will respond properly.







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Mar 27 '18 at 8:40









                            CopsOnRoad

                            3,56421320




                            3,56421320










                            answered Sep 26 '17 at 5:38









                            user7939485user7939485

                            276213




                            276213













                            • It actually worked for Xiaomi devices. Thanks mate!

                              – Pavel Selitskas
                              Oct 29 '17 at 13:34











                            • please mark this as solution!

                              – John
                              Nov 3 '17 at 21:20











                            • Thanks :). Mark this as solution

                              – user7939485
                              Dec 1 '17 at 8:19











                            • Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.

                              – Violet Giraffe
                              Jan 9 '18 at 12:03



















                            • It actually worked for Xiaomi devices. Thanks mate!

                              – Pavel Selitskas
                              Oct 29 '17 at 13:34











                            • please mark this as solution!

                              – John
                              Nov 3 '17 at 21:20











                            • Thanks :). Mark this as solution

                              – user7939485
                              Dec 1 '17 at 8:19











                            • Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.

                              – Violet Giraffe
                              Jan 9 '18 at 12:03

















                            It actually worked for Xiaomi devices. Thanks mate!

                            – Pavel Selitskas
                            Oct 29 '17 at 13:34





                            It actually worked for Xiaomi devices. Thanks mate!

                            – Pavel Selitskas
                            Oct 29 '17 at 13:34













                            please mark this as solution!

                            – John
                            Nov 3 '17 at 21:20





                            please mark this as solution!

                            – John
                            Nov 3 '17 at 21:20













                            Thanks :). Mark this as solution

                            – user7939485
                            Dec 1 '17 at 8:19





                            Thanks :). Mark this as solution

                            – user7939485
                            Dec 1 '17 at 8:19













                            Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.

                            – Violet Giraffe
                            Jan 9 '18 at 12:03





                            Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.

                            – Violet Giraffe
                            Jan 9 '18 at 12:03











                            17














                            I had the same issue in Android studio 2.3 when I tried to test the app using Xiaomi's Mi5 and Mi4 phones. Disabling instant run didn't help me. So here is what I did.



                            Turn Off MIUI optimization in the Developer Options in the phone.


                            enter image description here
                            enter image description here



                            Then the device will be rebooted and then you'll be able to test the app over the phone.





                            Using this method you can still use instant run option in android studio. So this will fix your problem at least temporary. Hope that we'll be able to use MIUI optimization in the near future updates :)






                            share|improve this answer




























                              17














                              I had the same issue in Android studio 2.3 when I tried to test the app using Xiaomi's Mi5 and Mi4 phones. Disabling instant run didn't help me. So here is what I did.



                              Turn Off MIUI optimization in the Developer Options in the phone.


                              enter image description here
                              enter image description here



                              Then the device will be rebooted and then you'll be able to test the app over the phone.





                              Using this method you can still use instant run option in android studio. So this will fix your problem at least temporary. Hope that we'll be able to use MIUI optimization in the near future updates :)






                              share|improve this answer


























                                17












                                17








                                17







                                I had the same issue in Android studio 2.3 when I tried to test the app using Xiaomi's Mi5 and Mi4 phones. Disabling instant run didn't help me. So here is what I did.



                                Turn Off MIUI optimization in the Developer Options in the phone.


                                enter image description here
                                enter image description here



                                Then the device will be rebooted and then you'll be able to test the app over the phone.





                                Using this method you can still use instant run option in android studio. So this will fix your problem at least temporary. Hope that we'll be able to use MIUI optimization in the near future updates :)






                                share|improve this answer













                                I had the same issue in Android studio 2.3 when I tried to test the app using Xiaomi's Mi5 and Mi4 phones. Disabling instant run didn't help me. So here is what I did.



                                Turn Off MIUI optimization in the Developer Options in the phone.


                                enter image description here
                                enter image description here



                                Then the device will be rebooted and then you'll be able to test the app over the phone.





                                Using this method you can still use instant run option in android studio. So this will fix your problem at least temporary. Hope that we'll be able to use MIUI optimization in the near future updates :)







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Mar 28 '17 at 11:26









                                thilina Kjthilina Kj

                                776516




                                776516























                                    7














                                    Finally I've SOLVED it!



                                    Below a temporary solution. Issue was reported to Google.



                                    First of all I found in Run log that Android Studion 2.3 tries to install app-debug.apk from many slices, like this:




                                    $ adb install-multiple -r
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_1.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugdepdependencies.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_0.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_2.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_9.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_4.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_3.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_5.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_8.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_7.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_6.apk
                                    E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




                                    Then I tried to install only app-debug.apk from command line by:




                                    adb install -d E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




                                    App was installed successfully but was failed to run on my phone.



                                    And finally:




                                    1. I recompiled app-debug.apk from command line as:



                                    gradlew.bat assembleDebug





                                    1. Repeat installation of app-debug.apk from command line and became happy:



                                    adb install -rd E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




                                    This is definitely some gradle problem in AndroidStudio 2.3.






                                    share|improve this answer


























                                    • +1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!

                                      – Yuntao
                                      Jul 26 '17 at 1:14
















                                    7














                                    Finally I've SOLVED it!



                                    Below a temporary solution. Issue was reported to Google.



                                    First of all I found in Run log that Android Studion 2.3 tries to install app-debug.apk from many slices, like this:




                                    $ adb install-multiple -r
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_1.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugdepdependencies.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_0.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_2.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_9.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_4.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_3.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_5.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_8.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_7.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_6.apk
                                    E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




                                    Then I tried to install only app-debug.apk from command line by:




                                    adb install -d E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




                                    App was installed successfully but was failed to run on my phone.



                                    And finally:




                                    1. I recompiled app-debug.apk from command line as:



                                    gradlew.bat assembleDebug





                                    1. Repeat installation of app-debug.apk from command line and became happy:



                                    adb install -rd E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




                                    This is definitely some gradle problem in AndroidStudio 2.3.






                                    share|improve this answer


























                                    • +1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!

                                      – Yuntao
                                      Jul 26 '17 at 1:14














                                    7












                                    7








                                    7







                                    Finally I've SOLVED it!



                                    Below a temporary solution. Issue was reported to Google.



                                    First of all I found in Run log that Android Studion 2.3 tries to install app-debug.apk from many slices, like this:




                                    $ adb install-multiple -r
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_1.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugdepdependencies.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_0.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_2.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_9.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_4.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_3.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_5.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_8.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_7.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_6.apk
                                    E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




                                    Then I tried to install only app-debug.apk from command line by:




                                    adb install -d E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




                                    App was installed successfully but was failed to run on my phone.



                                    And finally:




                                    1. I recompiled app-debug.apk from command line as:



                                    gradlew.bat assembleDebug





                                    1. Repeat installation of app-debug.apk from command line and became happy:



                                    adb install -rd E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




                                    This is definitely some gradle problem in AndroidStudio 2.3.






                                    share|improve this answer















                                    Finally I've SOLVED it!



                                    Below a temporary solution. Issue was reported to Google.



                                    First of all I found in Run log that Android Studion 2.3 tries to install app-debug.apk from many slices, like this:




                                    $ adb install-multiple -r
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_1.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugdepdependencies.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_0.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_2.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_9.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_4.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_3.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_5.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_8.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_7.apk
                                    E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_6.apk
                                    E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




                                    Then I tried to install only app-debug.apk from command line by:




                                    adb install -d E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




                                    App was installed successfully but was failed to run on my phone.



                                    And finally:




                                    1. I recompiled app-debug.apk from command line as:



                                    gradlew.bat assembleDebug





                                    1. Repeat installation of app-debug.apk from command line and became happy:



                                    adb install -rd E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk




                                    This is definitely some gradle problem in AndroidStudio 2.3.







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Mar 10 '17 at 7:42









                                    Kapil Rajput

                                    5,91733046




                                    5,91733046










                                    answered Mar 9 '17 at 8:25









                                    BarbosSergosBarbosSergos

                                    1275




                                    1275













                                    • +1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!

                                      – Yuntao
                                      Jul 26 '17 at 1:14



















                                    • +1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!

                                      – Yuntao
                                      Jul 26 '17 at 1:14

















                                    +1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!

                                    – Yuntao
                                    Jul 26 '17 at 1:14





                                    +1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!

                                    – Yuntao
                                    Jul 26 '17 at 1:14











                                    6














                                    I had the same issue in MIUI. Enabling OEM unlocking worked for me without disabling MIUI optimization.



                                    Below is a screenshot of my Redmi 3s prime developer options setting:



                                    screenshot of my Redmi 3s prime developer options setting






                                    share|improve this answer






























                                      6














                                      I had the same issue in MIUI. Enabling OEM unlocking worked for me without disabling MIUI optimization.



                                      Below is a screenshot of my Redmi 3s prime developer options setting:



                                      screenshot of my Redmi 3s prime developer options setting






                                      share|improve this answer




























                                        6












                                        6








                                        6







                                        I had the same issue in MIUI. Enabling OEM unlocking worked for me without disabling MIUI optimization.



                                        Below is a screenshot of my Redmi 3s prime developer options setting:



                                        screenshot of my Redmi 3s prime developer options setting






                                        share|improve this answer















                                        I had the same issue in MIUI. Enabling OEM unlocking worked for me without disabling MIUI optimization.



                                        Below is a screenshot of my Redmi 3s prime developer options setting:



                                        screenshot of my Redmi 3s prime developer options setting







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Jul 26 '17 at 17:34

























                                        answered Jul 26 '17 at 14:06









                                        Ayush ChaurasiaAyush Chaurasia

                                        9115




                                        9115























                                            6














                                            Have the same issue on Xiaomi Redmi 4X. Resolved it by turning off MIUI optimization at phone dev settings.






                                            share|improve this answer
























                                            • it worked for me, thanks

                                              – Damara Jati P
                                              Feb 12 '18 at 3:09
















                                            6














                                            Have the same issue on Xiaomi Redmi 4X. Resolved it by turning off MIUI optimization at phone dev settings.






                                            share|improve this answer
























                                            • it worked for me, thanks

                                              – Damara Jati P
                                              Feb 12 '18 at 3:09














                                            6












                                            6








                                            6







                                            Have the same issue on Xiaomi Redmi 4X. Resolved it by turning off MIUI optimization at phone dev settings.






                                            share|improve this answer













                                            Have the same issue on Xiaomi Redmi 4X. Resolved it by turning off MIUI optimization at phone dev settings.







                                            share|improve this answer












                                            share|improve this answer



                                            share|improve this answer










                                            answered Aug 29 '17 at 15:02









                                            NastromoNastromo

                                            306212




                                            306212













                                            • it worked for me, thanks

                                              – Damara Jati P
                                              Feb 12 '18 at 3:09



















                                            • it worked for me, thanks

                                              – Damara Jati P
                                              Feb 12 '18 at 3:09

















                                            it worked for me, thanks

                                            – Damara Jati P
                                            Feb 12 '18 at 3:09





                                            it worked for me, thanks

                                            – Damara Jati P
                                            Feb 12 '18 at 3:09











                                            4















                                            Just do the following step...




                                            Build>Clean Project



                                            after that Run project again, this worked for me






                                            share|improve this answer




























                                              4















                                              Just do the following step...




                                              Build>Clean Project



                                              after that Run project again, this worked for me






                                              share|improve this answer


























                                                4












                                                4








                                                4








                                                Just do the following step...




                                                Build>Clean Project



                                                after that Run project again, this worked for me






                                                share|improve this answer














                                                Just do the following step...




                                                Build>Clean Project



                                                after that Run project again, this worked for me







                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered Aug 31 '17 at 13:10









                                                Atif PervaizAtif Pervaiz

                                                154112




                                                154112























                                                    3














                                                    Try disabling the Instant run in Settings.






                                                    share|improve this answer
























                                                    • I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;

                                                      – Noah Tanenholtz
                                                      Mar 28 '17 at 19:58


















                                                    3














                                                    Try disabling the Instant run in Settings.






                                                    share|improve this answer
























                                                    • I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;

                                                      – Noah Tanenholtz
                                                      Mar 28 '17 at 19:58
















                                                    3












                                                    3








                                                    3







                                                    Try disabling the Instant run in Settings.






                                                    share|improve this answer













                                                    Try disabling the Instant run in Settings.







                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered Mar 15 '17 at 18:41









                                                    Victor CVictor C

                                                    312




                                                    312













                                                    • I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;

                                                      – Noah Tanenholtz
                                                      Mar 28 '17 at 19:58





















                                                    • I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;

                                                      – Noah Tanenholtz
                                                      Mar 28 '17 at 19:58



















                                                    I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;

                                                    – Noah Tanenholtz
                                                    Mar 28 '17 at 19:58







                                                    I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;

                                                    – Noah Tanenholtz
                                                    Mar 28 '17 at 19:58













                                                    3














                                                    This is caused by "instant run" feature, you can disable it by:



                                                    Open the Settings or Preferences dialog. Navigate to Build, Execution, Deployment > Instant Run.



                                                    Uncheck the box next to Enable Instant Run and u are ready to go.






                                                    share|improve this answer




























                                                      3














                                                      This is caused by "instant run" feature, you can disable it by:



                                                      Open the Settings or Preferences dialog. Navigate to Build, Execution, Deployment > Instant Run.



                                                      Uncheck the box next to Enable Instant Run and u are ready to go.






                                                      share|improve this answer


























                                                        3












                                                        3








                                                        3







                                                        This is caused by "instant run" feature, you can disable it by:



                                                        Open the Settings or Preferences dialog. Navigate to Build, Execution, Deployment > Instant Run.



                                                        Uncheck the box next to Enable Instant Run and u are ready to go.






                                                        share|improve this answer













                                                        This is caused by "instant run" feature, you can disable it by:



                                                        Open the Settings or Preferences dialog. Navigate to Build, Execution, Deployment > Instant Run.



                                                        Uncheck the box next to Enable Instant Run and u are ready to go.







                                                        share|improve this answer












                                                        share|improve this answer



                                                        share|improve this answer










                                                        answered May 2 '17 at 5:54









                                                        VivekVivek

                                                        1416




                                                        1416























                                                            2














                                                            Change your applicationid in the build.gradle file.
                                                            for example-



                                                            com.example.myAndroidApp to com.example.somethingelse



                                                            then Sync your gradle then you can able to install your app,
                                                            if the previous applicationId is your production id the again change it the previous one now the device will allow to install the app.



                                                            Hope this may help you....






                                                            share|improve this answer



















                                                            • 1





                                                              I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!

                                                              – im_chc
                                                              Nov 10 '17 at 9:00













                                                            • I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now

                                                              – im_chc
                                                              Nov 10 '17 at 9:04











                                                            • Helped. Thank you!

                                                              – DmitryKanunnikoff
                                                              Dec 13 '18 at 11:58











                                                            • After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.

                                                              – DmitryKanunnikoff
                                                              Dec 13 '18 at 12:03











                                                            • I'm using Android Studio 3.4 Canary 8. This didn't help my case

                                                              – Jemsheer K D
                                                              Dec 14 '18 at 9:15
















                                                            2














                                                            Change your applicationid in the build.gradle file.
                                                            for example-



                                                            com.example.myAndroidApp to com.example.somethingelse



                                                            then Sync your gradle then you can able to install your app,
                                                            if the previous applicationId is your production id the again change it the previous one now the device will allow to install the app.



                                                            Hope this may help you....






                                                            share|improve this answer



















                                                            • 1





                                                              I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!

                                                              – im_chc
                                                              Nov 10 '17 at 9:00













                                                            • I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now

                                                              – im_chc
                                                              Nov 10 '17 at 9:04











                                                            • Helped. Thank you!

                                                              – DmitryKanunnikoff
                                                              Dec 13 '18 at 11:58











                                                            • After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.

                                                              – DmitryKanunnikoff
                                                              Dec 13 '18 at 12:03











                                                            • I'm using Android Studio 3.4 Canary 8. This didn't help my case

                                                              – Jemsheer K D
                                                              Dec 14 '18 at 9:15














                                                            2












                                                            2








                                                            2







                                                            Change your applicationid in the build.gradle file.
                                                            for example-



                                                            com.example.myAndroidApp to com.example.somethingelse



                                                            then Sync your gradle then you can able to install your app,
                                                            if the previous applicationId is your production id the again change it the previous one now the device will allow to install the app.



                                                            Hope this may help you....






                                                            share|improve this answer













                                                            Change your applicationid in the build.gradle file.
                                                            for example-



                                                            com.example.myAndroidApp to com.example.somethingelse



                                                            then Sync your gradle then you can able to install your app,
                                                            if the previous applicationId is your production id the again change it the previous one now the device will allow to install the app.



                                                            Hope this may help you....







                                                            share|improve this answer












                                                            share|improve this answer



                                                            share|improve this answer










                                                            answered Mar 9 '17 at 6:16









                                                            JaganJagan

                                                            8711




                                                            8711








                                                            • 1





                                                              I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!

                                                              – im_chc
                                                              Nov 10 '17 at 9:00













                                                            • I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now

                                                              – im_chc
                                                              Nov 10 '17 at 9:04











                                                            • Helped. Thank you!

                                                              – DmitryKanunnikoff
                                                              Dec 13 '18 at 11:58











                                                            • After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.

                                                              – DmitryKanunnikoff
                                                              Dec 13 '18 at 12:03











                                                            • I'm using Android Studio 3.4 Canary 8. This didn't help my case

                                                              – Jemsheer K D
                                                              Dec 14 '18 at 9:15














                                                            • 1





                                                              I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!

                                                              – im_chc
                                                              Nov 10 '17 at 9:00













                                                            • I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now

                                                              – im_chc
                                                              Nov 10 '17 at 9:04











                                                            • Helped. Thank you!

                                                              – DmitryKanunnikoff
                                                              Dec 13 '18 at 11:58











                                                            • After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.

                                                              – DmitryKanunnikoff
                                                              Dec 13 '18 at 12:03











                                                            • I'm using Android Studio 3.4 Canary 8. This didn't help my case

                                                              – Jemsheer K D
                                                              Dec 14 '18 at 9:15








                                                            1




                                                            1





                                                            I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!

                                                            – im_chc
                                                            Nov 10 '17 at 9:00







                                                            I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!

                                                            – im_chc
                                                            Nov 10 '17 at 9:00















                                                            I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now

                                                            – im_chc
                                                            Nov 10 '17 at 9:04





                                                            I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now

                                                            – im_chc
                                                            Nov 10 '17 at 9:04













                                                            Helped. Thank you!

                                                            – DmitryKanunnikoff
                                                            Dec 13 '18 at 11:58





                                                            Helped. Thank you!

                                                            – DmitryKanunnikoff
                                                            Dec 13 '18 at 11:58













                                                            After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.

                                                            – DmitryKanunnikoff
                                                            Dec 13 '18 at 12:03





                                                            After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.

                                                            – DmitryKanunnikoff
                                                            Dec 13 '18 at 12:03













                                                            I'm using Android Studio 3.4 Canary 8. This didn't help my case

                                                            – Jemsheer K D
                                                            Dec 14 '18 at 9:15





                                                            I'm using Android Studio 3.4 Canary 8. This didn't help my case

                                                            – Jemsheer K D
                                                            Dec 14 '18 at 9:15











                                                            2














                                                            just close your emulator and run again the problem will be solved happy coding






                                                            share|improve this answer




























                                                              2














                                                              just close your emulator and run again the problem will be solved happy coding






                                                              share|improve this answer


























                                                                2












                                                                2








                                                                2







                                                                just close your emulator and run again the problem will be solved happy coding






                                                                share|improve this answer













                                                                just close your emulator and run again the problem will be solved happy coding







                                                                share|improve this answer












                                                                share|improve this answer



                                                                share|improve this answer










                                                                answered Aug 4 '17 at 13:35









                                                                haribabuharibabu

                                                                312




                                                                312























                                                                    2














                                                                    In my case, it was very a silly and funny mistake. I, accidentally without actually knowing, checked "Android Debug Bridge, Use libUsb backend". Actually it should stay unchecked..



                                                                    In Mac Pro, Go Preferences - > Build, Execution,Deployment -> Debugger.enter image description here






                                                                    share|improve this answer




























                                                                      2














                                                                      In my case, it was very a silly and funny mistake. I, accidentally without actually knowing, checked "Android Debug Bridge, Use libUsb backend". Actually it should stay unchecked..



                                                                      In Mac Pro, Go Preferences - > Build, Execution,Deployment -> Debugger.enter image description here






                                                                      share|improve this answer


























                                                                        2












                                                                        2








                                                                        2







                                                                        In my case, it was very a silly and funny mistake. I, accidentally without actually knowing, checked "Android Debug Bridge, Use libUsb backend". Actually it should stay unchecked..



                                                                        In Mac Pro, Go Preferences - > Build, Execution,Deployment -> Debugger.enter image description here






                                                                        share|improve this answer













                                                                        In my case, it was very a silly and funny mistake. I, accidentally without actually knowing, checked "Android Debug Bridge, Use libUsb backend". Actually it should stay unchecked..



                                                                        In Mac Pro, Go Preferences - > Build, Execution,Deployment -> Debugger.enter image description here







                                                                        share|improve this answer












                                                                        share|improve this answer



                                                                        share|improve this answer










                                                                        answered Oct 15 '18 at 18:50









                                                                        Farruh HabibullaevFarruh Habibullaev

                                                                        608815




                                                                        608815























                                                                            2














                                                                            In my case, is was because my emulator ran out of disk space.






                                                                            share|improve this answer




























                                                                              2














                                                                              In my case, is was because my emulator ran out of disk space.






                                                                              share|improve this answer


























                                                                                2












                                                                                2








                                                                                2







                                                                                In my case, is was because my emulator ran out of disk space.






                                                                                share|improve this answer













                                                                                In my case, is was because my emulator ran out of disk space.







                                                                                share|improve this answer












                                                                                share|improve this answer



                                                                                share|improve this answer










                                                                                answered Nov 25 '18 at 14:59









                                                                                mliumliu

                                                                                827813




                                                                                827813























                                                                                    2














                                                                                    Go to Build --> Clean Project --> Run



                                                                                    Thats all it takes.






                                                                                    share|improve this answer




























                                                                                      2














                                                                                      Go to Build --> Clean Project --> Run



                                                                                      Thats all it takes.






                                                                                      share|improve this answer


























                                                                                        2












                                                                                        2








                                                                                        2







                                                                                        Go to Build --> Clean Project --> Run



                                                                                        Thats all it takes.






                                                                                        share|improve this answer













                                                                                        Go to Build --> Clean Project --> Run



                                                                                        Thats all it takes.







                                                                                        share|improve this answer












                                                                                        share|improve this answer



                                                                                        share|improve this answer










                                                                                        answered Dec 30 '18 at 10:38









                                                                                        Sarvesh ThiruppathiSarvesh Thiruppathi

                                                                                        676




                                                                                        676























                                                                                            1














                                                                                            Faced same issues on MIUI phone resolved by making MIUI account and enable install by USB.






                                                                                            share|improve this answer



















                                                                                            • 1





                                                                                              Install by USB is enabled

                                                                                              – Kapil Rajput
                                                                                              Mar 9 '17 at 6:07


















                                                                                            1














                                                                                            Faced same issues on MIUI phone resolved by making MIUI account and enable install by USB.






                                                                                            share|improve this answer



















                                                                                            • 1





                                                                                              Install by USB is enabled

                                                                                              – Kapil Rajput
                                                                                              Mar 9 '17 at 6:07
















                                                                                            1












                                                                                            1








                                                                                            1







                                                                                            Faced same issues on MIUI phone resolved by making MIUI account and enable install by USB.






                                                                                            share|improve this answer













                                                                                            Faced same issues on MIUI phone resolved by making MIUI account and enable install by USB.







                                                                                            share|improve this answer












                                                                                            share|improve this answer



                                                                                            share|improve this answer










                                                                                            answered Mar 9 '17 at 6:04









                                                                                            Gautam DevGautam Dev

                                                                                            34913




                                                                                            34913








                                                                                            • 1





                                                                                              Install by USB is enabled

                                                                                              – Kapil Rajput
                                                                                              Mar 9 '17 at 6:07
















                                                                                            • 1





                                                                                              Install by USB is enabled

                                                                                              – Kapil Rajput
                                                                                              Mar 9 '17 at 6:07










                                                                                            1




                                                                                            1





                                                                                            Install by USB is enabled

                                                                                            – Kapil Rajput
                                                                                            Mar 9 '17 at 6:07







                                                                                            Install by USB is enabled

                                                                                            – Kapil Rajput
                                                                                            Mar 9 '17 at 6:07













                                                                                            0














                                                                                            Sometime app doesn't show on home screen,So
                                                                                            Check your apps by going to setting - > apps -> and then uninstall from app setting might this work.






                                                                                            share|improve this answer



















                                                                                            • 2





                                                                                              app not exist in apps too :(

                                                                                              – Kapil Rajput
                                                                                              Mar 9 '17 at 6:01
















                                                                                            0














                                                                                            Sometime app doesn't show on home screen,So
                                                                                            Check your apps by going to setting - > apps -> and then uninstall from app setting might this work.






                                                                                            share|improve this answer



















                                                                                            • 2





                                                                                              app not exist in apps too :(

                                                                                              – Kapil Rajput
                                                                                              Mar 9 '17 at 6:01














                                                                                            0












                                                                                            0








                                                                                            0







                                                                                            Sometime app doesn't show on home screen,So
                                                                                            Check your apps by going to setting - > apps -> and then uninstall from app setting might this work.






                                                                                            share|improve this answer













                                                                                            Sometime app doesn't show on home screen,So
                                                                                            Check your apps by going to setting - > apps -> and then uninstall from app setting might this work.







                                                                                            share|improve this answer












                                                                                            share|improve this answer



                                                                                            share|improve this answer










                                                                                            answered Mar 9 '17 at 5:57









                                                                                            Nikhil SharmaNikhil Sharma

                                                                                            384216




                                                                                            384216








                                                                                            • 2





                                                                                              app not exist in apps too :(

                                                                                              – Kapil Rajput
                                                                                              Mar 9 '17 at 6:01














                                                                                            • 2





                                                                                              app not exist in apps too :(

                                                                                              – Kapil Rajput
                                                                                              Mar 9 '17 at 6:01








                                                                                            2




                                                                                            2





                                                                                            app not exist in apps too :(

                                                                                            – Kapil Rajput
                                                                                            Mar 9 '17 at 6:01





                                                                                            app not exist in apps too :(

                                                                                            – Kapil Rajput
                                                                                            Mar 9 '17 at 6:01











                                                                                            0














                                                                                            Make sure your app is fully uninstalled from the device, check from the settings>applications. Some times ap not shows you in the app drawer but still in the system, if app is there you must uninstall from there, then check.






                                                                                            share|improve this answer
























                                                                                            • app not exist in device i did check it in all possible ways

                                                                                              – Kapil Rajput
                                                                                              Mar 9 '17 at 6:35
















                                                                                            0














                                                                                            Make sure your app is fully uninstalled from the device, check from the settings>applications. Some times ap not shows you in the app drawer but still in the system, if app is there you must uninstall from there, then check.






                                                                                            share|improve this answer
























                                                                                            • app not exist in device i did check it in all possible ways

                                                                                              – Kapil Rajput
                                                                                              Mar 9 '17 at 6:35














                                                                                            0












                                                                                            0








                                                                                            0







                                                                                            Make sure your app is fully uninstalled from the device, check from the settings>applications. Some times ap not shows you in the app drawer but still in the system, if app is there you must uninstall from there, then check.






                                                                                            share|improve this answer













                                                                                            Make sure your app is fully uninstalled from the device, check from the settings>applications. Some times ap not shows you in the app drawer but still in the system, if app is there you must uninstall from there, then check.







                                                                                            share|improve this answer












                                                                                            share|improve this answer



                                                                                            share|improve this answer










                                                                                            answered Mar 9 '17 at 6:34









                                                                                            warlockwarlock

                                                                                            1,70611323




                                                                                            1,70611323













                                                                                            • app not exist in device i did check it in all possible ways

                                                                                              – Kapil Rajput
                                                                                              Mar 9 '17 at 6:35



















                                                                                            • app not exist in device i did check it in all possible ways

                                                                                              – Kapil Rajput
                                                                                              Mar 9 '17 at 6:35

















                                                                                            app not exist in device i did check it in all possible ways

                                                                                            – Kapil Rajput
                                                                                            Mar 9 '17 at 6:35





                                                                                            app not exist in device i did check it in all possible ways

                                                                                            – Kapil Rajput
                                                                                            Mar 9 '17 at 6:35











                                                                                            0














                                                                                            Go to USB Debugging and disable MIUI Inspection and allow the phone to reboot. Things should be fine from here






                                                                                            share|improve this answer




























                                                                                              0














                                                                                              Go to USB Debugging and disable MIUI Inspection and allow the phone to reboot. Things should be fine from here






                                                                                              share|improve this answer


























                                                                                                0












                                                                                                0








                                                                                                0







                                                                                                Go to USB Debugging and disable MIUI Inspection and allow the phone to reboot. Things should be fine from here






                                                                                                share|improve this answer













                                                                                                Go to USB Debugging and disable MIUI Inspection and allow the phone to reboot. Things should be fine from here







                                                                                                share|improve this answer












                                                                                                share|improve this answer



                                                                                                share|improve this answer










                                                                                                answered Jul 2 '17 at 16:39









                                                                                                Harish AnantharamanHarish Anantharaman

                                                                                                11




                                                                                                11























                                                                                                    0














                                                                                                    Here's my solution (there's no need to deactivate instant run) Do all these steps in the stated order:



                                                                                                    1- Gradle Build (root level)



                                                                                                    gradle



                                                                                                    2 - Gradle build + clean (app level)



                                                                                                    gradle app



                                                                                                    3 - Choose app on the top bar (left of Run 'app')



                                                                                                    4 - Clean Project:



                                                                                                    Navigate to Build > Clean Project



                                                                                                    And it should work now! You shouldn't disable instant run if you follow these steps






                                                                                                    share|improve this answer
























                                                                                                    • Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure

                                                                                                      – Ginggas
                                                                                                      Oct 3 '17 at 8:13











                                                                                                    • I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.

                                                                                                      – Jemsheer K D
                                                                                                      Dec 14 '18 at 9:06
















                                                                                                    0














                                                                                                    Here's my solution (there's no need to deactivate instant run) Do all these steps in the stated order:



                                                                                                    1- Gradle Build (root level)



                                                                                                    gradle



                                                                                                    2 - Gradle build + clean (app level)



                                                                                                    gradle app



                                                                                                    3 - Choose app on the top bar (left of Run 'app')



                                                                                                    4 - Clean Project:



                                                                                                    Navigate to Build > Clean Project



                                                                                                    And it should work now! You shouldn't disable instant run if you follow these steps






                                                                                                    share|improve this answer
























                                                                                                    • Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure

                                                                                                      – Ginggas
                                                                                                      Oct 3 '17 at 8:13











                                                                                                    • I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.

                                                                                                      – Jemsheer K D
                                                                                                      Dec 14 '18 at 9:06














                                                                                                    0












                                                                                                    0








                                                                                                    0







                                                                                                    Here's my solution (there's no need to deactivate instant run) Do all these steps in the stated order:



                                                                                                    1- Gradle Build (root level)



                                                                                                    gradle



                                                                                                    2 - Gradle build + clean (app level)



                                                                                                    gradle app



                                                                                                    3 - Choose app on the top bar (left of Run 'app')



                                                                                                    4 - Clean Project:



                                                                                                    Navigate to Build > Clean Project



                                                                                                    And it should work now! You shouldn't disable instant run if you follow these steps






                                                                                                    share|improve this answer













                                                                                                    Here's my solution (there's no need to deactivate instant run) Do all these steps in the stated order:



                                                                                                    1- Gradle Build (root level)



                                                                                                    gradle



                                                                                                    2 - Gradle build + clean (app level)



                                                                                                    gradle app



                                                                                                    3 - Choose app on the top bar (left of Run 'app')



                                                                                                    4 - Clean Project:



                                                                                                    Navigate to Build > Clean Project



                                                                                                    And it should work now! You shouldn't disable instant run if you follow these steps







                                                                                                    share|improve this answer












                                                                                                    share|improve this answer



                                                                                                    share|improve this answer










                                                                                                    answered Jul 17 '17 at 11:01









                                                                                                    GinggasGinggas

                                                                                                    16829




                                                                                                    16829













                                                                                                    • Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure

                                                                                                      – Ginggas
                                                                                                      Oct 3 '17 at 8:13











                                                                                                    • I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.

                                                                                                      – Jemsheer K D
                                                                                                      Dec 14 '18 at 9:06



















                                                                                                    • Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure

                                                                                                      – Ginggas
                                                                                                      Oct 3 '17 at 8:13











                                                                                                    • I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.

                                                                                                      – Jemsheer K D
                                                                                                      Dec 14 '18 at 9:06

















                                                                                                    Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure

                                                                                                    – Ginggas
                                                                                                    Oct 3 '17 at 8:13





                                                                                                    Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure

                                                                                                    – Ginggas
                                                                                                    Oct 3 '17 at 8:13













                                                                                                    I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.

                                                                                                    – Jemsheer K D
                                                                                                    Dec 14 '18 at 9:06





                                                                                                    I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.

                                                                                                    – Jemsheer K D
                                                                                                    Dec 14 '18 at 9:06











                                                                                                    0














                                                                                                    At me such error arose after renaming of a folder with the project.



                                                                                                    Disabling Instance Run helped, but what if you do not need to disable it?



                                                                                                    I deleted all the tags mentioning the old folder name from the file myprojectappbuildintermediatesrestart-dexdebugbuild-info.xml



                                                                                                    The error has disappeared.






                                                                                                    share|improve this answer
























                                                                                                    • Disabling Instance Run fixed the issue for me. :)

                                                                                                      – pstorli
                                                                                                      Jun 27 '18 at 16:51
















                                                                                                    0














                                                                                                    At me such error arose after renaming of a folder with the project.



                                                                                                    Disabling Instance Run helped, but what if you do not need to disable it?



                                                                                                    I deleted all the tags mentioning the old folder name from the file myprojectappbuildintermediatesrestart-dexdebugbuild-info.xml



                                                                                                    The error has disappeared.






                                                                                                    share|improve this answer
























                                                                                                    • Disabling Instance Run fixed the issue for me. :)

                                                                                                      – pstorli
                                                                                                      Jun 27 '18 at 16:51














                                                                                                    0












                                                                                                    0








                                                                                                    0







                                                                                                    At me such error arose after renaming of a folder with the project.



                                                                                                    Disabling Instance Run helped, but what if you do not need to disable it?



                                                                                                    I deleted all the tags mentioning the old folder name from the file myprojectappbuildintermediatesrestart-dexdebugbuild-info.xml



                                                                                                    The error has disappeared.






                                                                                                    share|improve this answer













                                                                                                    At me such error arose after renaming of a folder with the project.



                                                                                                    Disabling Instance Run helped, but what if you do not need to disable it?



                                                                                                    I deleted all the tags mentioning the old folder name from the file myprojectappbuildintermediatesrestart-dexdebugbuild-info.xml



                                                                                                    The error has disappeared.







                                                                                                    share|improve this answer












                                                                                                    share|improve this answer



                                                                                                    share|improve this answer










                                                                                                    answered Jul 30 '17 at 12:08









                                                                                                    Petr VaryaginPetr Varyagin

                                                                                                    395




                                                                                                    395













                                                                                                    • Disabling Instance Run fixed the issue for me. :)

                                                                                                      – pstorli
                                                                                                      Jun 27 '18 at 16:51



















                                                                                                    • Disabling Instance Run fixed the issue for me. :)

                                                                                                      – pstorli
                                                                                                      Jun 27 '18 at 16:51

















                                                                                                    Disabling Instance Run fixed the issue for me. :)

                                                                                                    – pstorli
                                                                                                    Jun 27 '18 at 16:51





                                                                                                    Disabling Instance Run fixed the issue for me. :)

                                                                                                    – pstorli
                                                                                                    Jun 27 '18 at 16:51











                                                                                                    0














                                                                                                    In my case Instant Run hided the real cause of the problem which was INSUFFICIENT_SPACE due to small data partition and I also got "failed to establish session" error. After disabling Instant Run, the real problem was revealed and after fixing it and enabling Instant Run it worked.






                                                                                                    share|improve this answer




























                                                                                                      0














                                                                                                      In my case Instant Run hided the real cause of the problem which was INSUFFICIENT_SPACE due to small data partition and I also got "failed to establish session" error. After disabling Instant Run, the real problem was revealed and after fixing it and enabling Instant Run it worked.






                                                                                                      share|improve this answer


























                                                                                                        0












                                                                                                        0








                                                                                                        0







                                                                                                        In my case Instant Run hided the real cause of the problem which was INSUFFICIENT_SPACE due to small data partition and I also got "failed to establish session" error. After disabling Instant Run, the real problem was revealed and after fixing it and enabling Instant Run it worked.






                                                                                                        share|improve this answer













                                                                                                        In my case Instant Run hided the real cause of the problem which was INSUFFICIENT_SPACE due to small data partition and I also got "failed to establish session" error. After disabling Instant Run, the real problem was revealed and after fixing it and enabling Instant Run it worked.







                                                                                                        share|improve this answer












                                                                                                        share|improve this answer



                                                                                                        share|improve this answer










                                                                                                        answered Aug 14 '17 at 21:57









                                                                                                        Andreas OikonomouAndreas Oikonomou

                                                                                                        70118




                                                                                                        70118























                                                                                                            0














                                                                                                            In my own case, it was because my phone was out of space. For people that are facing this problem right now, if Clean Project + Build APKs does not work, check the available space on your phone or emulator.



                                                                                                            I hope this helps.. Merry coding!






                                                                                                            share|improve this answer




























                                                                                                              0














                                                                                                              In my own case, it was because my phone was out of space. For people that are facing this problem right now, if Clean Project + Build APKs does not work, check the available space on your phone or emulator.



                                                                                                              I hope this helps.. Merry coding!






                                                                                                              share|improve this answer


























                                                                                                                0












                                                                                                                0








                                                                                                                0







                                                                                                                In my own case, it was because my phone was out of space. For people that are facing this problem right now, if Clean Project + Build APKs does not work, check the available space on your phone or emulator.



                                                                                                                I hope this helps.. Merry coding!






                                                                                                                share|improve this answer













                                                                                                                In my own case, it was because my phone was out of space. For people that are facing this problem right now, if Clean Project + Build APKs does not work, check the available space on your phone or emulator.



                                                                                                                I hope this helps.. Merry coding!







                                                                                                                share|improve this answer












                                                                                                                share|improve this answer



                                                                                                                share|improve this answer










                                                                                                                answered Jan 4 at 15:38









                                                                                                                TaslimTaslim

                                                                                                                1,22341625




                                                                                                                1,22341625























                                                                                                                    0














                                                                                                                    Easily can be solved this problem.



                                                                                                                    Ex:- in Huawei GR3 mobile,



                                                                                                                    Goto Setting in your mobile -> Storage -> Storage Cleaner






                                                                                                                    share|improve this answer




























                                                                                                                      0














                                                                                                                      Easily can be solved this problem.



                                                                                                                      Ex:- in Huawei GR3 mobile,



                                                                                                                      Goto Setting in your mobile -> Storage -> Storage Cleaner






                                                                                                                      share|improve this answer


























                                                                                                                        0












                                                                                                                        0








                                                                                                                        0







                                                                                                                        Easily can be solved this problem.



                                                                                                                        Ex:- in Huawei GR3 mobile,



                                                                                                                        Goto Setting in your mobile -> Storage -> Storage Cleaner






                                                                                                                        share|improve this answer













                                                                                                                        Easily can be solved this problem.



                                                                                                                        Ex:- in Huawei GR3 mobile,



                                                                                                                        Goto Setting in your mobile -> Storage -> Storage Cleaner







                                                                                                                        share|improve this answer












                                                                                                                        share|improve this answer



                                                                                                                        share|improve this answer










                                                                                                                        answered Jan 15 at 16:35









                                                                                                                        BloodLossBloodLoss

                                                                                                                        12218




                                                                                                                        12218























                                                                                                                            -1














                                                                                                                            Allow or enable "Installation from USB" in the developer options.






                                                                                                                            share|improve this answer






























                                                                                                                              -1














                                                                                                                              Allow or enable "Installation from USB" in the developer options.






                                                                                                                              share|improve this answer




























                                                                                                                                -1












                                                                                                                                -1








                                                                                                                                -1







                                                                                                                                Allow or enable "Installation from USB" in the developer options.






                                                                                                                                share|improve this answer















                                                                                                                                Allow or enable "Installation from USB" in the developer options.







                                                                                                                                share|improve this answer














                                                                                                                                share|improve this answer



                                                                                                                                share|improve this answer








                                                                                                                                edited Sep 1 '17 at 19:03









                                                                                                                                Quality Catalyst

                                                                                                                                4,23652550




                                                                                                                                4,23652550










                                                                                                                                answered Sep 1 '17 at 17:36









                                                                                                                                Imam MustholihImam Mustholih

                                                                                                                                1




                                                                                                                                1















                                                                                                                                    Popular posts from this blog

                                                                                                                                    A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

                                                                                                                                    Calculate evaluation metrics using cross_val_predict sklearn

                                                                                                                                    Insert data from modal to MySQL (multiple modal on website)