Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App with AdmobFullscreenAd doesn't compile anymore for android #3806

Open
lacsap3 opened this issue May 17, 2024 · 9 comments
Open

App with AdmobFullscreenAd doesn't compile anymore for android #3806

lacsap3 opened this issue May 17, 2024 · 9 comments
Assignees

Comments

@lacsap3
Copy link

lacsap3 commented May 17, 2024

My App with AdmobFullscreenAd doesn't compile anymore for android after adding these build hints:

android.newFirebaseMessaging=true
possibly android.playService.ads=22.6.0

I use the CN1Extensions:

  • Admob Fullscreen Ads (version 3)
  • Codename One CodeScanner Library (version 9)
  • QR code generator (version 1)
  • QRScanner (version 4)

I've attached the error log:
error_log.txt

@shai-almog shai-almog assigned shai-almog and shannah and unassigned shai-almog May 17, 2024
@Eric-Chomba
Copy link
Contributor

I reported a similar problem here

Admob Fullscreen Ads Dependancy is missing in the Extensions.

Is there a temporary solution to add it to the project?

@Eric-Chomba
Copy link
Contributor

@lacsap3 can you successfully run this project with AdMobFullScreen in a simulator?

From your build error log, InterstitialAd class which is part of AdMobManager is missing. But if the project with AdMobFullScreen runs successfully in a simulator, it should build android app successfully.

Also note, according to this you shouldn't use CodeScanner & QRScanner together.

@lacsap3
Copy link
Author

lacsap3 commented Jul 15, 2024

The APP runs in the simulator without any problems.
In the past, before I updated the BuildHints, building was no problem either.
I will try adding the missing library manually.

I have both CodeScanner & QRScanner in, as one is needed for android and the other for ios.

@lacsap3
Copy link
Author

lacsap3 commented Nov 1, 2024

I tried a bit more and found out that if you increase android.playService.ads above 19.4.0 the app crashes (e.g. at 19.6.0) and if you increase it to 22.6.0 it won't build anymore.

@Eric-Chomba
Copy link
Contributor

I tried a bit more and found out that if you increase android.playService.ads above 19.4.0 the app crashes (e.g. at 19.6.0) and if you increase it to 22.6.0 it won't build anymore.

Try version 19.8.0.

Why not remove this build hint and let builder to automatically insert the version which is compatible by default?

@lacsap3
Copy link
Author

lacsap3 commented Nov 23, 2024

Removing the build hint, the app crashes with:
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent

@Eric-Chomba
Copy link
Contributor

Removing the build hint, the app crashes with: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent

You might now be experiencing this

Did the build hint version 19.8.0 work?

@lacsap3
Copy link
Author

lacsap3 commented Nov 26, 2024

In 19.8.0 it's the same error.

Regarding the reddit solution: I'm using eclipse. In eclipse the latest CodenameOne sees to be version is 6.0.0. Is there any option to update?

@Eric-Chomba
Copy link
Contributor

In 19.8.0 it's the same error.

Regarding the reddit solution: I'm using eclipse. In eclipse the latest CodenameOne sees to be version is 6.0.0. Is there any option to update?

Version 6.0.0 is likely for Ant project builds which are no longer maintained.

You need to migrate the project to Maven build and use latest Codename One versions like 7.0.156.

Then you can manually add Fullscreen Ads dependency as discussed here

When the project is a Maven build, you won't even need to set this build hint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants