googleads-mobile-unity icon indicating copy to clipboard operation
googleads-mobile-unity copied to clipboard

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

Open yapetrichka opened this issue 1 year ago • 10 comments

[REQUIRED] Step 1: Describe your environment

  • Unity version: 2020.3.34f1
  • Google Mobile Ads Unity plugin version: 8.7.0
  • Platform: Android
  • Platform OS version: Any
  • Any specific devices issue occurs on: Samsung A52
  • Mediation ad networks used, and their versions: LiftoffMonetize-5.0.0, AdColony-2.6.2, AppLovin-7.0.0, IronSource-2.5.0

[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.

yapetrichka avatar Feb 14 '24 09:02 yapetrichka

Same for me.

shefich avatar Feb 15 '24 15:02 shefich

Any Solution?

NaeemHB avatar Feb 20 '24 11:02 NaeemHB

The same problem. @NVentimiglia please pay attention.

desouse avatar Feb 20 '24 15:02 desouse

@desouse

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

NVentimiglia avatar Feb 20 '24 19:02 NVentimiglia

I had to downgrade back to 4.0.0 😌

dcosmin-97 avatar Feb 20 '24 20:02 dcosmin-97

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

NaeemHB avatar Feb 21 '24 05:02 NaeemHB

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 ..

NaeemHB avatar Feb 21 '24 10:02 NaeemHB

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

dcosmin-97 avatar Feb 21 '24 10:02 dcosmin-97

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.

shefich avatar Feb 21 '24 11:02 shefich

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

yapetrichka avatar Feb 21 '24 12:02 yapetrichka

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

NVentimiglia avatar Feb 23 '24 19:02 NVentimiglia

@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

MuhammadWaqasOfficial avatar Feb 28 '24 10:02 MuhammadWaqasOfficial

@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

yapetrichka avatar Feb 28 '24 11:02 yapetrichka

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.

NVentimiglia avatar Mar 18 '24 17:03 NVentimiglia

@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.

shefich avatar Mar 19 '24 22:03 shefich

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

allenliuinvungle avatar Mar 21 '24 02:03 allenliuinvungle

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

daniel-valore avatar Mar 28 '24 11:03 daniel-valore

You had to downgrade back to 4.0.0

DiaoYung avatar Apr 09 '24 01:04 DiaoYung