Help please.
I am using Admob with the ads plugin configured with google play services 21.5.0
my application runs fine in the pc player and also in the android player.
When I export to APK or ABB it exports everything fine.
Then I install the APK on android and when running it immediately exits with an apk error.
I am using the latest gideros 2023.2
ads with gps 21.5.0
the "gaming" plugin does not accept google play services 21.5.0, so I use it with 16.0.0 or it also accepts 20.0.0
my app works fine on pc player and android player but the installed apk gets exited immediately. it only shows the initial gideros logo.
(It is similar to a problem that I read here in the forum when you use, for example, a .jpg file and it has a upper case letter, eg ".JPg" works fine in the player and in the android player, but nothing works in the installed APK)
This is my APK for testing, I made it super simple, just use an image and the ads plugins with 21.5.0 and gaming with 20.0.0
fondo = Bitmap.new(Texture.new("play.png", true))
fondo:setPosition(110,110)
fondo:setScale(2)
stage:addChild(fondo) |
the APK is broken I tried it on android 7 and android 9
Can someone please confirm if it doesn't run?
someone was able to use ADMOB with 21.5.0 and was able to upload a real ABB or APK to google play?
(I went up to google play and I just realized that the installed one does not run)
this is my apk
It won't let me upload the APK file because of the size, but it looks like this:
generates the APK well, works on pc player and android player
but the installed APK is broken immediately
I tried it with several configurations, but the installed one always breaks.
It exports fine but the installed apk doesn't run. try removing plugin JSON, REQUIRE, etc...
please
@hgy29 Could I test if an installed APK can run or is it broken or what am I doing wrong?
Thanks in advance.
Comments
I haven't tested ads plugin in a long time but it seems you are putting the ca-app-pub-... in the wrong field?!
To further test why it is not working you can plug your phone (via cable or wifi) in Android Studio and look at the debug logs that should tell you exactly where your app fails.
Hope this can help.
here is the logcat of android studio.
It is the extract where the application breaks...
The app crashes as soon as it starts.
but in the gideros player it shows even the test advertising..
Please if you can help me find what is wrong.
I send it in this file please to review better...
(
sorry, it won't let me send a file and it was posted twice...
I'll see how to send the log...)
I send it in this file please to review better...
Can you try with a simple Banner ad?
Yes, I did tests with banner
In gideros player I get like this:
but the installed APK is broken with that logcat that I posted..
In the plugin I only put the "application id", I put the banner codes by code.
as I show here, but this was just for testing.
i use something like this:
Actually I always did it like this... I already have games uploaded to google play from the previous year, but I used gideros 2022.12 and google play services 16.0.0
and I use banners, interstitials and rewarded, they work well.
the problem came after gideros 2023.2 with google play services 21.5.0, but only in the APK, in the player a complete project runs fine with banners, interstitials and rewards...
please let me know if you can see the logcat correctly...
Thanks for the help.
EDIT: By the way the first arg of setKey() call is no longer used in version 21.5.0, since the app id must be specified in the manifest instead, but I added a second argument to setKey() to set the test id.
Likes: MoKaLux
thanks for the support, now it works fine..
Greetings and success...
Likes: MoKaLux, hgy29
https://github.com/mokalux/gideros-player-for-android
And a working sample code with admob banners
PS: google test banners
PS2: I don't know if Google Play plugin and Google Ads plugin are still linked together (for building the android player I had to add both plugins but in the demo app only the Ads plugin was needed )
You did a great job hgy29
Likes: pie