Session 'app': Error Installing APK

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

    
        
    
    

    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.

提交回复
热议问题