Followers

There was a problem while parsing the package

There was a problem while parsing the package



Facing apk installation issue in Android? then you are on the right page with the simplest solution.

Problem:  There was a problem while parsing the package

Solution 1: android:exported="true" 

For apps that target Android 12 (API level 31) or higher, in Android manifest fi android:exported should be set to true within activity in order for it to be installed on device targeting 12 or higher.

<activity

        android:name=".MainActivity"

        android:label="@string/app_name"

        android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"

        android:launchMode="singleTask"

        android:exported="true"

        android:windowSoftInputMode="adjustPan">


If an activity, service, or broadcast receiver uses intent filters and doesn't have an explicitly-declared value for android:exported, your app can't be installed on a device that runs Android 12 or higher.


Solution 2: Allow installation from unknown resources


In General the apps are downloaded from Google play console and when downloaded from other sources, android restricts it from installing if the "Allow installation from unknown resources" is disabled in settings. In this case the simple solution is to enable "Allow installation from unknown resources".


Unknown sources location in settings varies in each device so accordingly it has to be enabled.


Few of the devices has it as following


Android 8.x & higher

  1. From a Home screen, swipe up or down from the center of the display to access the apps screen.
  2. Navigate: Settings 
  3. Apps.
  4. Tap Menu icon (upper-right).
  5. Tap Special access.
  6. Tap Install unknown apps.
  7. Select the unknown app then tap the Allow from this source switch to turn on.

Android 7.x & lower

  1. From a Home screen, navigate to Settings.
  2. Tap Lock screen and security.If unavailable, tap Security.
  3. Tap the Unknown sources switch to turn on or off.If unavailable, Unknown sources to turn on or off. Enabled when check mark is present.
  4. To continue, review prompt then tap OK.

Solution 3: Clear Cache Cookies in Play Store 

There are chances that the problem of parsing the package on the Android device was caused by the cache cookies in the Google Play Store. Just open Google Play Store and select sidebar & choose “Settings” > then find out the clear option to clear the local search history.


Stay tuned to my posts  and do share your valuable thoughts if any queries or you would like to share anything on this topic in the comment section and please do like and share my post if this was helpful.


Hope this helped you!!








Post a Comment

0 Comments