How to Fix Android App Not Installed Error?

前端 未结 3 1743
庸人自扰
庸人自扰 2020-12-22 09:11

I have developed the app by Android Studio, and build it to signed apk with V1 and V2.
It could install in my phone successfully.
But, when I uninstall the app,

相关标签:
3条回答
  • 2020-12-22 09:34

    This can be because no free storage space is available to install the app. So, check your internal storage.

    0 讨论(0)
  • 2020-12-22 09:52

    I searched entire SO for the solution to this issue. Even disabling Google Play Protect didnt work. Creating APK with debuggable=false didnt work. I stumbled upon some answers which pointed me to a blog(link at the bottom)

    What worked with me was

    Goto Android Studio -> Build -> Build Bundle(s) / APK(s) -> Build APK(s)

    However, I still dont seem to understand why a signed debug APK wont install on my device.

    Couple more things to remember.

    1. You will see App Not Installed error even if you have old APK installed on the device and you are using Build APK(s) APK to install to update it. The package installer of Android is no more showing user friendly messages.
    2. If this method does not work, uninstall all variants of this APK from device and then try again.

    More Info: https://commonsware.com/blog/2017/10/31/android-studio-3p0-flag-test-only.html

    0 讨论(0)
  • 2020-12-22 09:58

    Just try adding Action VIEW in manifest file . After this reinsatll the app and problem solve

    <activity
        android:name=".MyActivity"
        android:screenOrientation="portrait"
        android:label="@string/app_name">
    
        <intent-filter>
    
             // add this line of code in application tag  only single line of code will also work
           <action android:name="android.intent.action.VIEW" />
    
        </intent-filter>
    
    
    </activity>
    
    0 讨论(0)
提交回复
热议问题