0

After switching to compileSdkVersion = 31 due to GooglePlay changes (The target API level for your application is 30. To ensure the required performance and security, the target API level must be at least 31. Change the target API level for the application so that it becomes at least 31). Not going to bundle. My actions:

  1. changed in build.gradle file "compileSdkVersion=31 targetSdkVersion=31"
  2. ./gradlew bundleRelease
  3. I get an error:

Task :app:processReleaseMainManifest FAILED [:@react-native-firebase_config] /Users/butinproject/it-department/stable-android/kapibara_mobile_app/node_modules/@react-native-firebase/remote-config/android/build/intermediates/merged_manifest/release/AndroidManifest.xml Warning: Package name 'io.invertase.firebase.config' used in: :@react-native-firebase_config, :react-native-firebase_remote-config. [:@react-native-firebase_analytics] /Users/butinproject/it-department/stable-android/kapibara_mobile_app/node_modules/@react-native-firebase/analytics/android/build/intermediates/merged_manifest/release/AndroidManifest.xml Warning: Package name 'io.invertase.firebase.analytics' used in: :@react-native-firebase_analytics, :react-native-firebase_analytics. [:@react-native-firebase_perf] /Users/butinproject/it-department/stable-android/kapibara_mobile_app/node_modules/@react-native-firebase/perf/android/build/intermediates/merged_manifest/release/AndroidManifest.xml Warning: Package name 'io.invertase.firebase.perf' used in: :@react-native-firebase_perf, :react-native-firebase_perf. /Users/butinproject/it-department/stable-android/kapibara_mobile_app/android/app/src/main/AndroidManifest.xml Error: Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

Perhaps something else is needed to switch to Android 12?

try

  1. changed in build.gradle file "compileSdkVersion=31 targetSdkVersion=31"
  2. ./gradlew bundleRelease

Wanted to get: build success

got instead: error

Task :app:processReleaseMainManifest FAILED

  • Does this answer your question? [android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify](https://stackoverflow.com/questions/68554294/androidexported-needs-to-be-explicitly-specified-for-activity-apps-targeting) – Adam Dec 15 '22 at 15:26

0 Answers0