You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having updated to Appsflyer 6.16.0 I receive a Dexing error when building for Android.
Ive imported Appsflyer into an empty project and encounter the same issue.
It occurs when when mainTemplate.Grade is active in the project.
Repro Steps:
Create an empty project or Use Existing
Import Appsflyer 6.16.0
Enable mainTemplate.gradle
Build & Observe Error
Error:
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Note: /Users/XXX/Documents/SourceTree/Project/Project/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/unity3d/player/UnityPlayerActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
ERROR:/Users/XXX/.gradle/caches/transforms-3/3ef65e31ceb024a249035a3568eed99d/transformed/jetified-af-android-sdk-6.16.0-runtime.jar: D8: com.android.tools.r8.internal.YI0: Sealed classes are not supported as program classes
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launcher:mergeExtDexRelease'.
> Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
> Failed to transform af-android-sdk-6.16.0.aar (com.appsflyer:af-android-sdk:6.16.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-is-debuggable=false, dexing-min-sdk=24, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: /Users/XXX/.gradle/caches/transforms-3/3ef65e31ceb024a249035a3568eed99d/transformed/jetified-af-android-sdk-6.16.0-runtime.jar.
> Error while dexing.
* Try:
Run 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.
* Get more help at https://help.gradle.org/
BUILD FAILED in 1m 45s
UnityEditor.GenericMenu:CatchMenu (object,string[],int) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUI/GenericMenu.cs:127)
The text was updated successfully, but these errors were encountered:
BollmanHutch
changed the title
Dexing Error when using Appsflyer 6.16.0 on Unity 2022.4.37f1
Dexing Error when using Appsflyer 6.16.0 on Unity 2022.3.37f1
Jan 28, 2025
👋 Hi @BollmanHutch and Thank you for reaching out to us.
In order for us to provide optimal support, please submit a ticket to our support team at [email protected].
When submitting the ticket, please specify:
Having updated to Appsflyer 6.16.0 I receive a Dexing error when building for Android.
Ive imported Appsflyer into an empty project and encounter the same issue.
It occurs when when mainTemplate.Grade is active in the project.
Repro Steps:
Error:
Additional Details:
minSDKTarget 24
TargetSDK 33
Unity Version: 2022.3.37f1
EDMU: 1.2.183
Temporary Solution:
I am able to get around the error by including the following into my settingsTemplate.gradle file
Full settingsTemplate:
Full mainTemplate:
The text was updated successfully, but these errors were encountered: