2
compileSdkVersion 31
defaultConfig {
    minSdkVersion 20
    targetSdkVersion 31
}

Build or assembly Debug works well.

However, "Problem parsing the package error" occurs when installing APK.

When I looked it up, I saw to add android:exported="true" to activity, is it correct to add it to all activities? Should I add something other than activities?

For example >> provider, receiver, service

kingjo
  • 21
  • 2
  • Does this answer your question? [Android Studio error: "Manifest merger failed: Apps targeting Android 12"](https://stackoverflow.com/questions/67412084/android-studio-error-manifest-merger-failed-apps-targeting-android-12) – cmak Apr 11 '22 at 10:07
  • @cmak no, that's an entirely unrelated error that occurs at _build_ time, not install time. – Ryan M Apr 12 '22 at 05:37
  • "Manifest merger" errors are at build time. Please, post relevan `AndroidManifest.xml` code – cmak Apr 12 '22 at 08:04
  • The reason why I wanted to use sdkVersion 31 was because it was related to Android12 push I couldn't solve the above problem and lowered it to sdkVersion 30. – kingjo Apr 13 '22 at 09:36

2 Answers2

2

add android:exported="true" on activitys and services in AndroidManifest.xml.

 //set exported **true** for all activitys
<activity android:name=".SplashActivity"
              android:exported="true" />

<service
    android:name=".autofillservice.MyAutofillService"
    android:exported="true"
    android:permission="android.permission.BIND_AUTOFILL">
Jai Khambhayta
  • 4,198
  • 2
  • 22
  • 29
  • I applied it to activity and service, but it still doesn't work. Is there anything else I need to check? – kingjo Apr 12 '22 at 05:52
0

The best approach is to use Internal Testing in the google play developer account, you can add your testers and you can get all benefits of google play features like the direction of deep links

George Samuel
  • 95
  • 1
  • 9