Session 'app': Error Launching activity

前端 未结 30 2481
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-28 06:43

After the Android Studio 2.0 update while the gradle build finishes I get this :

Session \'app\': Error Launching activity .

It prevents the app from starting

相关标签:
30条回答
  • 2020-11-28 06:45

    it occured when I changed the applicationId in app gradle file. It works for me after I sync gradle.

    0 讨论(0)
  • 2020-11-28 06:47

    I've fixed the issue (on my Anroid watch Moto 360) by uninstalling the app before installing from AS

    0 讨论(0)
  • 2020-11-28 06:47

    I had same problem. I was using AVD with arm processor image and received this same message. The only way for me to make Android Studio 2.1.2 runs the app with instant run was change to an X86 processor image. The error was gone and ( until this moment) I think the emulator works faster than ARM emulated. My workstation configuration is Intel I5, 6Gb RAM. Maybe this helps until next fix.

    0 讨论(0)
  • 2020-11-28 06:48

    OK already so many possible solutions for this problem, if none of those works then try this.

    I faced this problem when I first uninstalled my app then tried reinstalling from ADB. But then after trying these many solutions, I realized that uninstalling app nowadays does not really uninstall it. It just disables it for few days so that it can be enabled in case you change your mind.

    Now I am not sure whether its done by LG or Native Android Nougat.

    I just went in Settings-> apps-> my-app and uninstalled it completely. After that from Android studio I am able to install the app again properly without this error.

    0 讨论(0)
  • 2020-11-28 06:49

    I've fixed the issue using this solution.If you are running the application in USB device then close all the virtual device like : genymotion / virtual machine .

    0 讨论(0)
  • 2020-11-28 06:49

    Disable "instant run", you can go to Preference Dialog ( May be Setting dialog on Windows), then select Build, Execution, Deployment > Instant Run, and uncheck all the checkbox to disable Instant Run.

    And Reboot your Device this should make the thing work....instant run has a bug in Android studio 2+ This should do the magic

    0 讨论(0)
提交回复
热议问题