It looks like you're new here. If you want to get involved, click one of these buttons!
Note: C:\Users\Holon\Desktop\zen11\zendataminer\tmp\app\src\main\java\com\giderosmobile\android\plugins\ads\Ads.java uses unchecked or unsafe operations.Do I have to do something about this?
Note: Recompile with -Xlint:unchecked for details.
W/System.err(11799): java.lang.ClassNotFoundException: com.giderosmobile.android.plugins.ads.frameworks.AdsAdmob
W/System.err(11799): at java.lang.Class.classForName(Native Method)
W/System.err(11799): at java.lang.Class.forName(Class.java:251)
W/System.err(11799): at java.lang.Class.forName(Class.java:216)
W/System.err(11799): at com.giderosmobile.android.plugins.ads.Ads.initialize(Ads.java:205)
W/System.err(11799): at com.giderosmobile.android.player.GiderosApplication.nativeDrawFrame(Native Method)
W/System.err(11799): at com.giderosmobile.android.player.GiderosApplication.onDrawFrame(GiderosApplication.java:669)
W/System.err(11799): at com.giderosmobile.android.GiderosRenderer.onDrawFrame(zendataminerActivity.java:407)
W/System.err(11799): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1523)
W/System.err(11799): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
W/System.err(11799): Caused by: java.lang.NoClassDefFoundError: com/giderosmobile/android/plugins/ads/frameworks/AdsAdmob
W/System.err(11799): ... 9 more
W/System.err(11799): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.giderosmobile.android.plugins.ads.frameworks.AdsAdmob" on path: DexPathList[[zip file "/data/app/com.treasurebyte.dataminer-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.treasurebyte.dataminer-2, /system/lib, /system/lib/arm, /data/downloads]]
W/System.err(11799): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
W/System.err(11799): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
W/System.err(11799): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
W/System.err(11799): ... 9 more
W/dalvikvm(11799): threadid=10: thread exiting with uncaught exception (group=0x9cd49b20)
D/BstCommandProcessor-Application( 9660): Application crash has been observed.
Comments
But the problems stay exactly the same
Admob isn't quite working how it should right now. I have tested the fix by @hgy29 and it works. Maybe he can PM you a link to the RC which you can use to get you working again.
Wjilst Admob wasn't working for me, I went and did the gaming plugin stuff (which works) like leaderboards and achievements
1) IAB
2) Facebook
3) Flurry
4) AdMob
Let me know if you require any clarifications.
https://dl.dropboxusercontent.com/u/40935009/grammar-smash.zip
Likes: Holonist
@Simwhi Will try it once I get home (in about 8 hours). Thanks
Likes: antix
Must the app be started from an apk that's actually downloaded from the store? Otherwise I'm not sure how they would even fetch my app id. Idk I'm just done right now
I uploaded my app as a beta in Google Play Store. I made my AdMob stuff but couldn't link it because AdMob couldn't find it. When I searched for my name though (antix development) it could find my app that way. Maybe AppLovin works in a similar way?
Also I am finding the export capabilities in Gideros Studio improving immeasurably all the time. It can do all the advert plugin crap for you and you don't even need Android Studio, except for when you want to see stuff your app might print using LogCat
The next release (soon I think) will contain the fixed admob functionality in ads plugin too :bz
Likes: Holonist
Once the app can be located by admob or applovin then you can just export and test on your own devices until you have it how you want. Then you can upload a new APK.
I hope that makes some sense
Oh, and Gideros Studio exports an APK maybe 1000 times faster than poor old Android Studio
Here's an example of my build.gradle file.
Likes: FrancoisDM
C:\Program Files (x86)\Gideros\All Plugins\ads\ads.gplugin with the content of this
https://raw.githubusercontent.com/gideros/gideros/7c86e597e961e14fd2ed76917cf806fb4aec8e37/plugins/ads/ads.gplugin
Now I have to make sure my ad settings are correct in Google Play.
In my main.lua I have
require 'ads'
admob = Ads.new("admob")
admob:setKey("ca-app-pub-12345678901234~12345678") //this time the correct format (I hope?)
admob:showAd("auto")
In Google Developers, I added the info that my app contains ads. (Didn't do anything else though)
In admob, I created an ad unit (banner).
____
I don't see any ads in my beta. Do I need more code for positioning the ad? Or adding it to the stage? And do I need to do something with the Ad Unit Id? Or is this taken care of automatically?
SORRY i've just seen in http://docs.giderosmobile.com/interface/ads -> METHODS that the ad unit ID has to be handed as second parameter to showAd().
But under the code example it does NOT include a second parameter. Please fix the example
AD_DISMISSED
Does this mean its dismissed by the player? Or by the ad provider (because I run on a beta or undeployed APK)?
That's my entire ads code. Maybe you can add that to your game and see if it works?
You will have to make two global variables, ADMOB_APP_ID and ADMOB_UNIT_ID, or just write your id's in place of them
Oh, I never bother with the enableTesting() thing, I always just use the actual thing.
Likes: Holonist
As I said, I got it to work just fine with test ads, which should mean live ads would work with my code, I believe. I published my app to production 10 hours ago with live ads code, but nothing shows up. I read about admob taking a while to deliver ads after setting up an ad unit, but it should be enough time now (about 12 hours)
Likes: Holonist, antix
Also I don't know about time. I was having trouble getting the ads to work and it was two days before I got round to testing. I know that admob and play store are so slow. One of my games took over 30 hours to appear in the store after publishing it!
However I instantly get AD_DISMISSED event and none after that.
My logcat on Bluestacks looks like this:
I/Ads ( 4190): Starting ad request.
I/Ads ( 4190): Use AdRequest.Builder.addTestDevice("3EEFE79C796F2970275061CD
C90A5D94") to get test ads on this device.
W/Herrevad( 1816): [199] qim.a: On wifi, but couldn't get security type
I/Ads ( 1816): Received log message: You are using version 9.3
of the Google Play services Ads SDK. Please consider updating your SDK to the m
ost recent SDK version to get the latest features and bug fixes. See http://goo.
gl/r2TRzC for instructions on how to get the latest version of Google Play servi
ces.
W/Ads ( 1816): Received error HTTP response code: 403
W/Ads ( 4190): There was a problem getting an ad response. ErrorCode: 0
W/Ads ( 4190): Failed to load ad: 0
Does anyone know what 403 stands for in this context?
Edit: I cannot include higher than Google Play services 9.2.0, otherwise I get this nice error when doing direct export: AndroidManifest.xml:7:5-73 Error:
uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library [com.google.android.gms:play-services-ads:10.2.0]
Edit2: Compiled apk in AS with Google Play services 10.2.0, didn't solve it
Guess I'll just wait.