googleads / googleads-mobile-unity

Official Unity Plugin for the Google Mobile Ads SDK
https://developers.google.com/admob/unity
Apache License 2.0
1.34k stars 1.09k forks source link

[build] jetified-liftoffmonetize-unity-android-library-runtime.jar: D8: java.lang.NullPointerException #3159

Closed dreamcodestudio closed 3 months ago

dreamcodestudio commented 4 months ago

[REQUIRED] Step 1: Describe your environment

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

  1. Setup Unity Environment by config:

Android Minimum API Level = 21 Target platform = Android Scripting Backend = Mono API Level = .NET Standard 2.0

  1. Build in APK or AAB format

In result Unity shows Gradle build failed :

Note: E:\Develop\Repository\project-w\Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
ERROR:E:\Develop\Gradle_Custom_Cache\caches\transforms-2\files-2.1\9bef87ee189eda4132d78fbe6f56ebfb\jetified-liftoffmonetize-unity-android-library-runtime.jar: D8: java.lang.NullPointerException

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:mergeExtDexDebug'.
> Could not resolve all files for configuration ':launcher:debugRuntimeClasspath'.
   > Failed to transform liftoffmonetize-unity-android-library-.aar (:liftoffmonetize-unity-android-library:) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-incremental-transform=true, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.status=integration, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: E:\Develop\Gradle_Custom_Cache\caches\transforms-2\files-2.1\9bef87ee189eda4132d78fbe6f56ebfb\jetified-liftoffmonetize-unity-android-library-runtime.jar.
         > Error while dexing.

On previous version of LiftoffMonetize-4.0.0 project build succеsefully.

shefich commented 4 months ago

Same for me.

NaeemHB commented 4 months ago

Any Solution?

desouse commented 4 months ago

The same problem. @NVentimiglia please pay attention.

NVentimiglia commented 4 months ago

@desouse

Thanks for your patience. Just returned from vacation, I will take a look.

dcosmin-97 commented 4 months ago

I had to downgrade back to 4.0.0 😌

NaeemHB commented 4 months ago

when we downgrade ,not getting impression ,only found requests.

NaeemHB commented 4 months ago

Solution go to google mobile ads > Mediation > LiftoffMonetize >Plugins >Android > liftoffmonetize-unity-android-library then check all boxes as shown in pic ,Apply and get your build ..

dcosmin-97 commented 4 months ago

Solution go to google mobile ads > Mediation > LiftoffMonetize >Plugins >Android > liftoffmonetize-unity-android-library then check all boxes as shown in pic ,Apply and get your build ..

Thank you, I think you should be hired by the testing team. I don't think these updates are tested lately

shefich commented 4 months ago

Solution go to google mobile ads > Mediation > LiftoffMonetize >Plugins >Android > liftoffmonetize-unity-android-library then check all boxes as shown in pic ,Apply and get your build ..

You can see that Android platform Excluded Don't think that this is normal behaviour for the plugin for Android platform.

dreamcodestudio commented 4 months ago

Solution go to google mobile ads > Mediation > LiftoffMonetize >Plugins >Android > liftoffmonetize-unity-android-library then check all boxes as shown in pic ,Apply and get your build ..

You can see that Android platform Excluded Don't think that this is normal behaviour for the plugin for Android platform.

i thinks not, because it exclude native adapter from mobile builds it's equal as delete it

NVentimiglia commented 4 months ago

Thanks for the updates, I was able to confirm the issue and engineering is looking into the issue.

MuhammadWaqasOfficial commented 4 months ago

@NVentimiglia is this issue is by liftoff mediation plugin 5.0.0 or admob? Just need to know so can skip 8.7 and wait for 8.7.1 or liftoff 5.0 Thanks

dreamcodestudio commented 4 months ago

@NVentimiglia is this issue is by liftoff mediation plugin 5.0.0 or admob? Just need to know so can skip 8.7 and wait for 8.7.1 or liftoff 5.0 Thanks

it's Liftoff adapter issue if disable Litoff network apk builded fine

NVentimiglia commented 3 months ago

I could not replicate this issue with Liftoff v5. I will be closing this issue. If this issue is not fixed on your end please reopen and tell me about your environment.

shefich commented 3 months ago

@NVentimiglia The issue with Liftoff v5 still exist. Unity 2022.3.21 Admob 8.7.0 AppLovin 7.0.1 Mintegral 1.4.0 Unity Ads Legacy 3.9.0 Minimum API Level 22 Target API Level 34 Don't know how to reopen the issue.

allenliuinvungle commented 3 months ago

The issue still exist. Please use my project to reproduce the issue @NVentimiglia

daniel-valore commented 3 months ago

I am facing this issue in my project! My environment is very similar to @shefich's.

DiaoYung commented 2 months ago

You had to downgrade back to 4.0.0