Open FrankdenUijl opened 2 years ago
I have remove the duplicated androidx.core.core-1.0.0-runtime
package.
Still have 1 issue:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class a.a.a found in modules jetified-arcore_client-runtime.jar (:arcore_client:) and jetified-installreferrer-2.2-runtime.jar (com.android.installreferrer:installreferrer:2.2)
Go to the documentation to learn how to Fix dependency resolution errors.
* 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 1s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Excluded the "com.android.installreferrer" module "installreferrer" via the main template.gradle. This did work and was able to create an .apk.
// Android Resolver Exclusions End
android {
...
defaultConfig {
...
}
lintOptions {
..
}
aaptOptions {
..
}
compileOptions {
...
}
buildTypes {
...
}
configurations {
all {
exclude group: "com.android.installreferrer", module: "installreferrer"
}
}
....
}
But Branch.initSession(HandleBranchCallback);
is never called. Is this because I excluded the com.android.installreferrer
? Also I dont think that excluding com.android.installreferrer
is the best way to do this?
What is the best way to fix my issue?
Hi @FrankdenUijl
Sorry for super late reply on this thread! This is Kun from the Branch integration team.
Could you please show me how you have implemented Branch on your game? Ex) Event system, init session.. etc Also let me know if you are using your custom gradle file instead of the one that provided by Branch.
Thanks! Kun
After I import branch.io I get the following Execution during a build for Android. Seems like there is a conflict between packages inside my project. Any idea how to fix this issue?
Unity: 2021.3.8f1 Branch SDK: 0.6.7