I'm having some trouble with a plugin I installed

Hi @sathishvj,

I’m glad you raised an issue and got it working!

Yes it is very possible that the ads won’t render 100% in the Android emulator. It is always better to use a device or Genymotion as your Android emulator instead of the stock emulator as the stock emulator is known to have weird results for any app.

Please let me know if I can do anything else for you.

Cheers,

1 Like

@nraboy

I think I know what happened to my last app when I tried to put that admob ad plugin into my actual project and after building the project, the Google play service was working, but the console put the admob plugin as ‘deprecated’ and ‘unsafe’ what does that mean? And why was it not deprecated for the sample?

This is the error I’m getting on the console when I do:

cordova build android

-compile:
    [javac] Compiling 6 source files to /Applications/MAMP/htdocs/try/platforms/android/ant-build/classes
    [javac] Note: /Applications/MAMP/htdocs/try/platforms/android/src/com/rjfun/cordova/plugin/AdMob.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

A Google search says the problem may be related to something like this

Since I didn’t make the actual plugin, I can’t speak for the changes the developer applies. You may want to check out the source code or raise a ticket with the developer.

1 Like

Guys…I feel like smacking my head…I forgot this:

  <script src="cordova.js"></script>

(ノ ゜Д゜)ノ ︵ ┻━┻

How you get it work? I’m still not seeing any ad. I’m running in my Iphone and into the emulators.

Thnks

Same here. Even in new project, when i try to build for android:
gives me this: Any idea?

trouble processing:
       [dx] bad class file magic (cafebabe) or version (0033.0000)
       [dx] ...while parsing com/google/android/gms/internal/lc.class
       [dx] ...while processing com/google/android/gms/internal/lc.class

and on ionic run android, it gives blank template, and no Ad Banner.

Advise?