Session 'app': Error Installing APK

前端 未结 29 1782
[愿得一人]
[愿得一人] 2020-12-01 02:23

Trying to install app on real device following instructions:- http://developer.android.com/tools/device.html. At end Android Studio giving error:

Session \'a         


        
相关标签:
29条回答
  • 2020-12-01 02:59

    If you are using android emulator, try changing a device.

    0 讨论(0)
  • 2020-12-01 03:02

    A bit late to the party, but be sure that you are trying to build a proper build variant. It sometimes happens to me that when I update AS, the build variants are totally messed up, so instead of building the "debug" variant I am actually building the "release" variant, which outputs apk to a different location (not to app/build directory, but to app directly) and I get the following error:

    The APK file /path/to/file/app.apk does not exist on disk.
    Error while Installing APK
    

    To fix this just open the menu in left bottom corner, click on "Build Variants" and select the debug variant (it might have a different name, depending on how many modules/flavors or custom gradle build types you have).

    0 讨论(0)
  • 2020-12-01 03:02

    This happens because the gradle is not synced with the app. Go to : Tools -> Android -> Sync Project with Gradle files. Re-run and you should be good to go.

    0 讨论(0)
  • 2020-12-01 03:04

    Make sure that your device is not out of Memory!

    0 讨论(0)
  • 2020-12-01 03:06

    In my case with Android 8.0(Oreo), no one of this solutions worked! If you have more than 1 user, then you should go to Settings->Applications->All Applications->Find the application and uninstall for all users! After this steps, it worked!

    0 讨论(0)
  • 2020-12-01 03:08

    Make sure that project name doesn't contain special character.

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