AppLovin / AppLovin-MAX-Unity-Plugin

130 stars 35 forks source link

Does not build android #276

Closed cawabungag closed 1 year ago

cawabungag commented 1 year ago

MAX Plugin Version

5.11.2

Unity Version

2020.3.40f1

Device/Platform Info

Android

Current Behavior

When trying to build a build, an error occurs

A problem occurred configuring project ':launcher'. Ambiguous method overloading for method com.safedk.gradleplugin.utils.WrapperProperties#setProperty. Cannot resolve which method to invoke for [class java.lang.String, null] due to overlapping prototypes between: [class java.lang.String, class java.lang.String] [class java.lang.String, class java.io.File]

Configure project :launcher 5954============================================================================= 5955AppLovin Quality Service Plug-in for Gradle and Android Studio Version 4.13.1 5956Copyright (c) 2023 AppLovin Ltd. All rights reserved. 5957============================================================================= 5958[SafeDK-WARN] dexTask not found for variant debug 5959[SafeDK-WARN] dexTask not found for variant release 5960[SafeDK] Your project has been updated to support Multi-Dex! 5961With Multi-Dex support you can use as many methods as you like in your application (no 65K method limit) 5962FAILURE: Build failed with an exception. 5963 What went wrong: 5964A problem occurred configuring project ':launcher'. 5965> Ambiguous method overloading for method com.safedk.gradleplugin.utils.WrapperProperties#setProperty. 5966 Cannot resolve which method to invoke for [class java.lang.String, null] due to overlapping prototypes between: 5967 [class java.lang.String, class java.lang.String] 5968 [class java.lang.String, class java.io.File] 5969 Try: 5970Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. 5971* Get more help at https://help.gradle.org 5972BUILD FAILED in 8s 5973os.chdir('/Users/playkot/builds/wGfuG-Z6/0/AoM/ageofmagic') 5974scons: *** [Build/android/Age of Magic/launcher/build/outputs/bundle/release/launcher-release.aab] Error 1 5975scons: building terminated because of errors.

Expected Behavior

Android build should build without errors

How to Reproduce

Build android buld

Additional Info

No response

alvarshahanji commented 1 year ago

@cawabungag could you run the build with the -s flag to provide a full stack trace of the error?

santoshbagadi commented 1 year ago

Also, could you provide us the Android Gradle plugin (AGP) version being used in the project. In the past, users have been able to fix the issue by upgrading to a newer version of AGP.

cawabungag commented 1 year ago

@santoshbagadi I upgraded to a gradle version to 5.6.4. it worked for me. Thx!