Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] unity3d – Google play error: You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver – ‘android:exported’

Posted on November 11, 2022 By

Solution 1 :

I found solution for it, but it’s not right, because you can change AndroidManifest.xml files other libs. But, if you don’t have any solution you can use this.

Yes, you can cahnge your Target API level to 30 API, but after november 2022 your apps will be hidden from the store and I think, it’s not solution for this trable (more)

  1. Go to {YOUR_UNITY_PROJECT}AssetsPluginsAndroid and open AndroidManifest.xml file and added android_expodted=”true” (more)
  2. Open all dirs and check other AndroidManifest.xml files. If activities, receivers, services without android:exported tag – add it.
  3. Save all changed
  4. Start build your app
  5. Go to {YOUR_UNITY_PROJECT}TempgradleOutlauncherbuildintermediatesmerged_manifestsrelease and open AndroidManifest.xml
  6. Find all activities, receivers, services without android:exported tag. If you don’t have this items – you can load your file to google play. If you have – go to step 7.
  7. Go to C:Users{YOUR_USER}.gradlecaches and search required libraries.
  8. Open libs and change AndroidManifest.xml files (add android:exported tag with false or true). I added false value (android:exported=”false”)
  9. Save all changed and go to step 4.

For example: I have oneSignal lib, and I have some services without exproted tag. I founded this lib (C:UsersAGENTxXx.gradlecachestransforms-398a2faf5d9f43588b86ab05e1221a233transformedjetified-onesignal-unity), changed AndroidManifest.xml and build my aab file again.

Problem :

Issue : You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without the ‘android:exported’ property set. This file can’t be installed on Android 12 or higher. See: developer.android.com/about/versions/12/behavior-changes-12#exported

When I loaded my aab file to google play I got this error. I understood it, but when I changed my manifest files (C:androidAppAssetsPluginsAndroidAndroidManifest.xml and C:androidAppAssetsPluginsAndroidOneSignalConfig.pluginAndroidManifest.xml) I got same error.

READ  [FIXED] android - GeoApiContext and DirectionsApiRequest not found
Powered by Inline Related Posts

It happened, because OneSignal has additional lines, when I don’t see in C:androidAppAssetsPluginsAndroidOneSignalConfig.pluginAndroidManifest.xml file. Also I can’t modified final AndroidManifest.xml file, because Unity starts auto-assembly of the application.

How can I solve my problem?

Android Tags:android, android-manifest, onesignal, unity3d

Post navigation

Previous Post: [FIXED] Android ACTION_VIEW intent is not opening urls in non-browser apps like twitter and instagram
Next Post: [FIXED] android – Check if activity is active, and if active pass data from service to activity?

Related Posts

[FIXED] nativeLibraryDir appears empty after updating to Gradle 5.6.4 and Android Studio 3.6.1 Android
[FIXED] android – How to properly port the “dynamic ftrace wtih registers” support to the Pixel 3a ARM64 kernel? Android
[FIXED] java – KeyStore “unsupported protection parameter” Android
[FIXED] How can I import a color image into Android Studio 3.6? Android
[FIXED] Remove scientific notation formatting for Float values in kotlin android Android
[FIXED] android – java.lang.NullPointerException: Attempt to invoke virtual method ‘java.io.File com.parse.ParsePlugins.getParseDir()’ on a null object reference.parse Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Can VPN be traced by police?
  • Where were Kaiser-Frazer cars built?
  • How do you make gold rose gold paint?
  • What are the newest type of dentures?
  • Can you wear joggers as dress pants?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme