Search Unity

Resolved Target API 31 Issues and Solutions

Discussion in 'Android' started by Voxel-Busters, Aug 15, 2022.

  1. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,961
    ----------------------Problem 1----------------------
    An exception has occurred in the compiler (1.8.0_281). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
    java.lang.AssertionError: annotationType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util.UnsharedNameTable$NameImpl)

    Title
    : unrecognized Attribute name MODULE
    Target : This is for devs who can't upgrade their unity and the gradle version supported by unity is less than 6.1. Check here for finding out whats your gradle version.

    Solution :
    This usually will go away when you use JDK 11.
    However, until unity supports JDK 11, upgrade your gradle version to 6.1+.
    1. Create a custom gradle template (base gradle template in new unity versions) - You can enabled this from player settings
    2. Set Android gradle plugin version from 3.4.3 to 4.0.1
    3. In external tools from preferences, point your gradle to 6.1.1 version (by downloading the gradle plugin from here)
    4. Try making a build.

    ----------------------Problem 2----------------------
    You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without '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

    Title
    : android:exported flag missing in manifest
    Target : This is for devs who can't upload their apk or aab to google play or can't install on Android 12 devices.

    Solution :
    This is because of not defining/having android:exported flag in final android manifest file.
    1. Find your manifest files in your project or in final merged manifest if entries with intent-filter tags has related android:exported flag defined.
    2. Add the flag (android:exported="true/false") in enclosed tag of intent-filter tag

    If you have problem with UnityPlayerActivity not defining the flag, either you need to update unity version or add that value by creating a custom android manifest under Assets/Plugins/Android folder.


    ----------------------Problem 3----------------------
    stderr[
    FAILURE: Build failed with an exception.
    * What went wrong:
    A problem occurred configuring root project 'gradleOut'.
    > Failed to find Build Tools revision 29.0.2/28.0.3

    Title
    : Failed to find Build Tools revision 29.0.2/28.0.3
    Target : This is for devs who can't build on android with a gradle build error.

    Solution :
    1. Download the zip based on the version which gave the issue (29.0.2 or 28.0.3) from the links listed below as per your platform
    2. Extract and rename it to 29.0.2/28.0.3
    3. Paste it in your unity's Android SDK/build-tools folder.

    29.0.2 : Mac | Windows | Linux
    28.0.3 Mac | Windows | Linux

    You can create any build-tools version link with the below format
    Code (CSharp):
    1. https://dl.google.com/android/repository/build-tools_r[29.0.2/28.0.3/29.0.0]-[macosx/windows/linux].zip
    We will be adding here more problem+solutions as we find more...To be continued...

    Gradle version and Android Gradle Plugin Version are two different things which may be confusing.
    Ex: Gradle Version 6.1.1(External tools) is compatible with Android Gradle Plugin Version 4.0.1(custom gradle)
     
    Last edited: Nov 2, 2022
  2. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,961
    Reserved for future explanations...
     
  3. SonuIxia

    SonuIxia

    Joined:
    Sep 3, 2018
    Posts:
    16
    CommandInvokationFailure: Gradle build failed.
    C:/Program Files/Unity/Hub/Editor/2019.4.0f1/Editor/Data/PlaybackEngines/AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Users\sonu.sharma\Documents\Gradle\gradle-6.1.1-all\gradle-6.1.1\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

    stderr[
    Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
    Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
    Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':unityLibrary:compileReleaseJavaWithJavac'.
    > Could not resolve all files for configuration ':unityLibrary:releaseCompileClasspath'.
    > Failed to transform ARPresto-.aar :)ARPresto:) to match attributes {artifactType=android-classes-jar, org.gradle.status=integration, org.gradle.usage=java-api}.
    > Execution failed for AarToClassTransform: C:\sonu work\CTE\CTE-AR\UnityProject\CTEAR\Temp\gradleOut\unityLibrary\libs\ARPresto.aar.
    > entry
    > Failed to transform UnityARCore-.aar :)UnityARCore:) to match attributes {artifactType=android-classes-jar, org.gradle.status=integration, org.gradle.usage=java-api}.
    > Execution failed for AarToClassTransform: C:\sonu work\CTE\CTE-AR\UnityProject\CTEAR\Temp\gradleOut\unityLibrary\libs\UnityARCore.aar.
    > entry

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 5s
    ]
    stdout[

    > Configure project :launcher
    WARNING: DSL element 'useProguard' is obsolete.
    It will be removed in version 5.0 of the Android Gradle plugin.
    Use 'android.enableR8' in gradle.properties to switch between R8 and Proguard.
    WARNING: DSL element 'useProguard' is obsolete.
    It will be removed in version 5.0 of the Android Gradle plugin.
    Use 'android.enableR8' in gradle.properties to switch between R8 and Proguard.

    > Task :launcher:preBuild UP-TO-DATE
    > Task :unityLibrary:preBuild UP-TO-DATE
    > Task :launcher:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    > Task :launcher:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    > Task :launcher:compileReleaseAidl NO-SOURCE
    > Task :launcher:compileReleaseRenderscript NO-SOURCE
    > Task :launcher:javaPreCompileRelease UP-TO-DATE
    > Task :launcher:generateReleaseResValues UP-TO-DATE
    > Task :launcher:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    > Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
    > Task :launcher:mergeReleaseResources UP-TO-DATE
    > Task :launcher:prepareLintJar UP-TO-DATE
    > Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE
    > Task :unityLibrary:processReleaseManifest
    > Task :unityLibrary:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:compileReleaseJavaWithJavac FAILED
    > Task :launcher:processReleaseManifest
    20 actionable tasks: 3 executed, 17 up-to-date
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3167064085404657b0d6c498207da025>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3167064085404657b0d6c498207da025>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3167064085404657b0d6c498207da025>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <3167064085404657b0d6c498207da025>:0)
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <3167064085404657b0d6c498207da025>:0)
    Rethrow as GradleInvokationException: Gradle build failed
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <3167064085404657b0d6c498207da025>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>:0)
    Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <3167064085404657b0d6c498207da025>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <3167064085404657b0d6c498207da025>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <3167064085404657b0d6c498207da025>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <af78ad00a40d4f61b82afc6cafb0a416>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
    unity_gB8q3IZt9NH1Tw likes this.
  4. Nouman-

    Nouman-

    Joined:
    Dec 8, 2020
    Posts:
    4
    Hi as google mentioned that android:exported tag is missing in manifest file. I added the tag in my manifest file still getting error.Need some help

    My Manifest file


    Code (CSharp):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" android:installLocation="preferExternal" android:versionCode="1" android:versionName="1.0">
    3.   <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
    4.   <application android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="false">
    5.     <activity  android:exported="true" android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name">
    6.    
    7.         <intent-filter>
    8.                 <action android:name="android.intent.action.MAIN" />
    9.                 <category android:name="android.intent.category.LAUNCHER" />
    10.       </intent-filter>
    11.    
    12.         <meta-data android:name="unityplay er.UnityActivity" android:value="true" />
    13.     </activity>
    14.     <activity android:name="com.facebook.unity.FBUnityLoginActivity" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" android:exported="true"/>
    15.     <activity android:name="com.facebook.unity.FBUnityDialogsActivity" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" android:exported="true"/>
    16.     <activity android:name="com.facebook.unity.FBUnityGamingServicesFriendFinderActivity" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
    17.     <activity android:name="com.facebook.unity.FBUnityAppLinkActivity" android:exported="true" />
    18.     <activity android:name="com.facebook.unity.FBUnityDeepLinkingActivity" android:exported="true" />
    19.     <activity android:name="com.facebook.unity.FBUnityGameRequestActivity" />
    20.     <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="fb781651769616563" />
    21.     <meta-data android:name="com.facebook.sdk.ClientToken" android:value="YOUR-CLIENT-TOKEN-HERE" />
    22.     <meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="true" />
    23.     <meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" android:value="true" />
    24.     <provider android:name="com.facebook.FacebookContentProvider" android:authorities="com.facebook.app.FacebookContentProvider781651769616563" android:exported="true" />
    25.   </application>
    26. </manifest>
     
  5. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,961
    export flag is not just for main activity alone but for all entires which has intent-filter tag enclosed.
    You need to look into your final merged manifest file or pass an "empty" apk (without any scenes) to have a look.
     
  6. Minugolov

    Minugolov

    Joined:
    Aug 20, 2021
    Posts:
    12

    Hello, I have added to each line. And still does not help, tell me please where is the error?



    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="word.connect" android:versionCode="1" android:versionName="1.0">
    <application android:label="@String/app_name" android:icon="@drawable/app_icon">
    <!-- The MessagingUnityPlayerActivity is a class that extends
    UnityPlayerActivity to work around a known issue when receiving
    notification data payloads in the background. -->
    <activity android:name="com.google.firebase.MessagingUnityPlayerActivity" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:exported="true">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
    </activity>
    <service android:name="com.google.firebase.messaging.MessageForwardingService" android:permission="android.permission.BIND_JOB_SERVICE" android:exported="false"></service>
    <activity android:name="com.facebook.unity.FBUnityLoginActivity" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" android:exported="true" />
    <activity android:name="com.facebook.unity.FBUnityDialogsActivity" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" android:exported="true"/>
    <activity android:name="com.facebook.unity.FBUnityGamingServicesFriendFinderActivity" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" android:exported="true"/>
    <activity android:name="com.facebook.unity.FBUnityAppLinkActivity" android:exported="true" />
    <activity android:name="com.facebook.unity.FBUnityDeepLinkingActivity" android:exported="true" />
    <activity android:name="com.facebook.unity.FBUnityGameRequestActivity" android:exported="true"/>
    <activity android:name="com.facebook.unity.FBUnityCreateGameGroupActivity" android:exported="true"/>
    <activity android:name="com.facebook.unity.FBUnityJoinGameGroupActivity" android:exported="true"/>
    <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="fb520164745197495" />
    <meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="true" />
    <meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" android:value="true" />
    <provider android:name="com.facebook.FacebookContentProvider" android:authorities="com.facebook.app.FacebookContentProvider520164745197495" android:exported="true" />
    </application>
    </manifest>
     
  7. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,961
    Not sure if this is the complete final manifest. Share me the complete error you get while installing and also an empty apk(no scenes required) to further debug.
     
  8. Minugolov

    Minugolov

    Joined:
    Aug 20, 2021
    Posts:
    12
    You've uploaded an APK or Android App Bundle with an activity, object alias, service, or broadcast receiver with an intent filter, but no android:exported property set. This file cannot be installed on a device running Android 12 or higher. To learn more, go to developer.android.com/about/versions/12/behavior-changes-12#exported.

    p.s.
    APK build I will try to build without resources
     
  9. Nouman-

    Nouman-

    Joined:
    Dec 8, 2020
    Posts:
    4

    Hi Thank you for your response I resolved it my deleting the mobile notification package from package manager. If anyone getting same error delete mobile notification package hope it helps someone
     
    Voxel-Busters likes this.
  10. ArnoldRauers_Tinytouchtales

    ArnoldRauers_Tinytouchtales

    Joined:
    Jan 25, 2015
    Posts:
    33
    Thanks a lot for the write up, saved me a headache.

    I was able to fix my issues with this, using SDK android-31 and build-tools 30.0.3 (updated from Android Studio), Gradle 6.1.1 (from your tips) on Unity 2021.1.5f1.
     
    Voxel-Busters likes this.
  11. SemanticDuck

    SemanticDuck

    Joined:
    Jul 27, 2018
    Posts:
    11
    Hello, hope you can help me
    I got a lot of problems yesterday with the upgrade to API level but I was able to resolve that this morning and now im getting this error and I read this thread: https://forum.unity.com/threads/not...oid-exported-android-12.1224948/#post-7846305

    The thing is that my android manifest looks very different, im on 2020.3.1f1, not sure where to change the flags
    Hope you can help me is my third game and not well verse yet

    The manifest

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.google.unity.ads" android:versionName="1.0" android:versionCode="1">
    <application>
    <uses-library android:required="false" android:name="org.apache.http.legacy" />
    <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-000000000000~00000000" />
    <meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION" android:value="true" />
    <meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING" android:value="true" />
    </application>
    </manifest>
     
  12. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,961
    This file doesn't have any tags which needs exported flag. Try sending me a merged manifest file or an empty apk to look into. Sometimes, the plugins you use may miss adding the falg. So it's not always unity version the culprit as unity fixed it for their activity in recent releases and may have back-ported already by now.
     
    SemanticDuck likes this.
  13. SemanticDuck

    SemanticDuck

    Joined:
    Jul 27, 2018
    Posts:
    11
    Thanks for the tip Voxel, there's only one plugin in the project, the googlemobileads plugin. There was a new release just 2 days ago for this, so I move the project to a newer version of unity with the new plugin and it worked
     
    Voxel-Busters likes this.
  14. RiddleTower

    RiddleTower

    Joined:
    Sep 30, 2021
    Posts:
    41
    Hello. I have a problem i found out recenlty. I published my app on google play store but i got messages from some friends that when they download and press the icon to start the app they just get a black screen and the app instantly closes. As i found out it happens only with phones using API 31 or higher.

    A solution could be to create the app with target API 30 but play store doesn't allow anymore this.
    Any ideas how to fix this?

    I don't know if i did something wrong but the manifest solution didn't worked for me.

    Thanks in advance!

    This is my manifest file if that helps let me know what i have to add exactly.

    Code (CSharp):
    1.  
    2. <?xml version="1.0" encoding="utf-8"?>
    3. <manifest
    4.     xmlns:android="http://schemas.android.com/apk/res/android"
    5.     package="com.riddletower"
    6.     xmlns:tools="http://schemas.android.com/tools">
    7.     <application>
    8.         <activity
    9.             android:name="com.unity3d.player.UnityPlayerActivity"
    10.                   android:theme="@style/UnityThemeSelector">
    11.             <intent-filter>
    12.                 <action android:name="android.intent.action.MAIN"  android:exported="true"/>
    13.                 <category android:name="android.intent.category.LAUNCHER" android:exported="true"/>
    14.             </intent-filter>
    15.             <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
    16.         </activity>
    17.     </application>
    18.     <uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
    19. </manifest>
    20.  
    21.  
    Also this is the error i get from the logs when the app opens and instantly closes on the phone
    java.lang.IllegalArgumentException: com.riddletower: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. 11-21 12:02:42.005 E/AndroidRuntime(18749): Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles. 11-21 12:02:42.005 E/AndroidRuntime(18749):     at android.app.PendingIntent.checkFlags(PendingIntent.java:382) 11-21 12:02:42.005 E/AndroidRuntime(18749):     at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:673) 11-21 12:02:42.005 E/AndroidRuntime(18749):     at android.app.PendingIntent.getBroadcast(PendingIntent.java:660) 11-21 12:02:42.005 E/AndroidRuntime(18749):     at androidx.work.impl.utils.ForceStopRunnable.getPendingIntent(ForceStopRunnable.java:174) 11-21 12:02:42.005 E/AndroidRuntime(18749):     at androidx.work.impl.utils.ForceStopRunnable.isForceStopped(ForceStopRunnable.java:108) 11-21 12:02:42.005 E/AndroidRuntime(18749):     at androidx.work.impl.utils.ForceStopRunnable.run(ForceStopRunnable.java:86) 11-21 12:02:42.005 E/AndroidRuntime(18749):     at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:75) 11-21 12:02:42.005 E/AndroidRuntime(18749):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) 11-21 12:02:42.005 E/AndroidRuntime(18749):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) 11-21 12:02:42.005 E/AndroidRuntime(18749):     at java.lang.Thread.run(Thread.java:1012) 11-21 12:02:43.831 E/AndroidRuntime(18820): FATAL EXCEPTION: pool-5-thread-1
     
    Last edited: Nov 23, 2022
  15. RiddleTower

    RiddleTower

    Joined:
    Sep 30, 2021
    Posts:
    41