0

Problem

App not installed shows when installing signed apk. The Application will install without any problem for the first time, later if I uninstall and try to reinstall the same apk it shows App not installed

Tried the following things

  • Tried only with V1 signature
  • Tried only with V2 signature
  • Tried with both with V1 and V2 signature
  • Changed Build Variant to Release
  • Tried on 3 different devices
  • Uninstalled previous version from the device(for all users) and release folder
  • Removed cache memory of the smartphone.

Note :

I had error a while creating keystore Key was created with errors: Picked up _JAVA_OPTIONS: -Xmx512M last week but this was solved. But it was resolved by deleting _JAVA_OPTIONS from environment variables (https://stackoverflow.com/a/57556572/6088883) I think after this the started.

No Problem with codes

I am 100% sure that it's not a problem in the code Because of I tried making signed apk for the basic login activity application. didn't change a single line of code. But the result was same

Tried the following thread

  1. How to fix App not installed error in Android
  2. How to Fix Android App Not Installed Error?
  3. App not installed
  4. Is there any way to fix APP not installed? (Exact same issue)

None of them solved the issue

Temporary fix

The only method working was disabling Google Play Protect (which is not a proper fix)

Community
  • 1
  • 1
Mayoogh Girish
  • 501
  • 1
  • 6
  • 14

3 Answers3

1

Just try adding Action VIEW in manifest file. After this, reinstall the app and the problem will be solved.

<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>
David Buck
  • 3,752
  • 35
  • 31
  • 35
0

This can also happen if the application is installed for multiple users. You should uninstall for all users. There are 2 ways to do that.

  • From the terminal/ shell: adb uninstall or adb uninstall [package_name]

  • Uninstall for all users(you need to be admin user):

    1. Open Settings and then Apps
    2. Open the app info
    3. Open the overflow menu (3 vertical dots)
    4. Choose Uninstall for all users.
Usman Rafi
  • 316
  • 1
  • 2
  • 12
0

I know I am late but still is anyone find it time-saving.

None of the solutions were working for me and there were no changes except asset file changes. Wasted a lot of time over a silly issue. (Clean and rebuild project did not solve it for me)

Try File -> Invalidate Caches -> Invalidate and Restart.

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 06 '22 at 11:36