Closed lorenzostudiosok closed 11 months ago
Hi @lorenzostudiosok
Google Mobile Ads for Unity is compatible with 2019.2.17f1, I just tested it to confirm.
Please update to the latest version and make sure the android dependency resolver succeeds.
Yes, the game resolves the libraries, compiles without errors, but on the device or emulator it gives me this error:
java.lang.IllegalAccessError: Field 'com.google.unity.ads.Interstitial.activity' is inaccessible to class 'com.google.unity.ads.Interstitial$1' (declaration of 'com.google.unity.ads.Interstitial$1' appears in /data/app/~~0eOqjMMjnnuzE3nqSvQFNA==/com.orange.car.transform.racing-2bzfXEJEXipTKqQ1yT_e3Q==/base.apk) at com.google.unity.ads.Interstitial$1.run(Interstitial.java:69) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7839) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
I have the graddle configured like this, does it have anything to do with it?
@lorenzostudiosok
I used the gradle version installed with Unity.
Step 1: Describe your environment
Step 2: Describe the problem
Steps to reproduce:
I have an application in Unity, I update the Google Mobile Ads plugin to 8.5.2, then I implement all the ad events, it compiles correctly, but when I run the application on the emulator or real device, the application closes, with LogCat , I get the following error:
Relevant Code: