Session 'app': Error Installing APK

前端 未结 29 1784
[愿得一人]
[愿得一人] 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 03:13

    Nothing above helped me. The fingerprint dialog did not appear. I checked another android device and the dialog appeared and debug was possible. So the problem was on device side not on computer side I made reset "to factory settings" on device and this helped me.

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

    I had this same issue and none of the other solutions worked for me.

    Although no errors were shown nor expanded upon in my IDE GUI, I opened up a second Android Studio window window with a different project and noticed in the bottom that the "Event Log" showed an error in a different window, but not in the project I had opened. The issue stated was:

    Error: INSTALL_FAILED_CONFLICTING_PROVIDER

    Which lead me here - Install shows error in console: INSTALL FAILED CONFLICTING PROVIDER :

    I had this FileProvider labeled in the manifest:

    <provider
        android:name="androidx.core.content.FileProvider"
        android:authorities="myapp.sameonehere.android.fileprovider"
        android:exported="false"
        android:grantUriPermissions="true">
        <meta-data
            android:name="android.support.FILE_PROVIDER_PATHS"
            android:resource="@xml/file_paths" />
    </provider>
    

    Which I had copied from another project and forgotten to rename the 'authorities' String in. After changing it to something unique, it ran without issue.

    Make sure you don't have any conflicting authority Strings like in my example.

    Also, if no errors are showing up, try opening a second project and see if the "Event Log" shows errors in that location instead.

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

    You have to enable Developer options and enable USB Debugging:

    1:Go to the settings menu, and scroll down to "About phone." Tap it. 2:Scroll down to the bottom again, where you see "Build number." (Your build number may vary from ours here.) Tap it seven (7) times. After the third tap, you'll see a playful dialog that says you're four taps away from being a developer. Keep on tapping, and poof, you've got the developer settings back.

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

    What worked for me is deleting the app from the emulator (which was an app built from an older commit) and re-running from Android Studio.

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

    Another possibility may be the USB driver on your PC. In my case, switching from my 3.0 USB port to my 2.0 port fixed the problem.

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

    Ensure you android device has enough memory to install the app. Sometimes it so happens working with multimedia app where the device storage keeps on increasing and you keep wondering about the error.

    Therefore, free up some memory and try installing again!

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