googleads-mobile-unity: [build] jetified-liftoffmonetize-unity-android-library-runtime.jar: D8: java.lang.NullPointerException
[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:
- Setup Unity Environment by config:
Android Minimum API Level = 21 Target platform = Android Scripting Backend = Mono API Level = .NET Standard 2.0
- 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.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (3 by maintainers)
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.
The issue still exist. Please use my project to reproduce the issue @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.
it’s Liftoff adapter issue if disable Litoff network apk builded fine
i thinks not, because it exclude native adapter from mobile builds it’s equal as delete it
Thank you, I think you should be hired by the testing team. I don’t think these updates are tested lately