-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi thank you for this awesome repository, it really helped me to implement ads on my applications !
However, when compiling my first application and exporting it to the Play Console, I noticed that the Google AdMob dependency caused the application crash on start because of a missing flag in the version specified in the buildozer.spec file.
This is the full error log obtained:
FATAL EXCEPTION: pool-3-thread-1
Process: lupadevstudio.com.postrias, PID: 21335
java.lang.IllegalArgumentException: lupadevstudio.com.postrias: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
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.
at android.app.PendingIntent.checkFlags(PendingIntent.java:375)
at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:645)
at android.app.PendingIntent.getBroadcast(PendingIntent.java:632)
at androidx.work.impl.utils.ForceStopRunnable.getPendingIntent(ForceStopRunnable.java:174)
at androidx.work.impl.utils.ForceStopRunnable.isForceStopped(ForceStopRunnable.java:108)
at androidx.work.impl.utils.ForceStopRunnable.run(ForceStopRunnable.java:86)
at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
After a few research on internet, I managed to solve the problem by changing the com.google.android.gms:play-services-ads:20.3.0 dependency version to com.google.android.gms:play-services-ads:22.5.0 in the buildozer.spec file.
I will propose a pull request with this fix.
Metadata
Metadata
Assignees
Labels
No labels