Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build android #14

Open
Calvin2274 opened this issue Mar 18, 2019 · 3 comments
Open

Failed to build android #14

Calvin2274 opened this issue Mar 18, 2019 · 3 comments

Comments

@Calvin2274
Copy link

Hello~ I've just imported UnityDeeplinks into my projects, and created empty gameObject with attached UnityDeeplinks component into the scene. Also changed the android:name="com.trophit.MyUnityPlayerActivity".

However, it made me failed to make a build and shown error as follow:

CommandInvokationFailure: Gradle build failed.
/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/OpenJDK/MacOS/bin/java -classpath "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

stderr[
D8: Program type already present: com.trophit.MyUnityPlayerActivity
java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives

what happen to my projects and any idea to fix this ?

@Ferhattepe
Copy link

I have a solution but i am not sure. You have to delete Unity Deep links.jar. Then You can get build.

@rennard
Copy link

rennard commented Aug 5, 2019

I'm getting the same error, Unity 2019.1.11f1. I've tried rebuilding the .jar file but to no avail, I've not made any changes to the code just added a .cs deep link handler.

@mrmaffen
Copy link

deleting the .jar fixed it. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants