Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Andrea_Marchetti · May 24, 2017 at 07:38 AM · build-errorbuild settingserror buildbuildpipelinefailure

Error when building for Android after importing an asset from the store.

Hello, I just bought an asset called Cross Platform Native Plugins - Ultra Pack. It's very easy to use and well documented, however when I try to test it on my mobile device I get this error ( when Gradle is tasking "IncrementalDebugJavaCompilationSafeguard" ).

These are the details of the error:

 CommandInvokationFailure: Gradle build failed. 
 /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java -classpath "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-2.14.jar" org.gradle.launcher.GradleMain "assembleDebug"
 
 stderr[
 Dex: Error converting bytecode to dex:
 Cause: com.android.dex.DexException: Multiple dex files define Lcom/twitter/sdk/android/core/BuildConfig;
     UNEXPECTED TOP-LEVEL EXCEPTION:
     com.android.dex.DexException: Multiple dex files define Lcom/twitter/sdk/android/core/BuildConfig;
         at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:591)
         at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:546)
         at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:528)
         at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:164)
         at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
         at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:504)
         at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
         at com.android.dx.command.dexer.Main.run(Main.java:277)
         at com.android.dx.command.dexer.Main.main(Main.java:245)
         at com.android.dx.command.Main.main(Main.java:106)
     
 
 FAILURE: Build failed with an exception.
 
 * What went wrong:
 Execution failed for task ':transformClassesWithDexForDebug'.
 > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

PS: I already contacted the developers but they didn't answer, yet. I also opened a discussion on their forum but nobody answered, yet. Thank you for your time.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by MrCrumbl3d · May 24, 2017 at 07:42 AM

try to search in unity "AndroidManifest" and tell me if it got 2 androidmanifest if it has two try to move one of them to your desktop and try to build it.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image teexiii · Jan 07, 2018 at 04:45 PM 0
Share

Ok, I tried many solutions, but this one works! When I imported "Audience Network" plugin from Facebook, it has another $$anonymous$$anifest.xml sample file, when I deleted that folder, I can build AP$$anonymous$$ normally! Thanks @$$anonymous$$rCrumbl3d, you saved me a bunch!

avatar image swats1010 teexiii · Jan 24, 2020 at 04:54 AM 0
Share

This is not working for me .

I have many android manifest .below is the list GooglePlayGames/Plugins/Android/GooglePlayGames$$anonymous$$anifest.plugin

Plugins/Android/

ChartBoostSD$$anonymous$$/Plugins/Android/

Plugins/Android/Google$$anonymous$$obileAdsPlugin

Plugins/Android/google-play-services_lib

Other files :

PlayFabSD$$anonymous$$/Editor/Android$$anonymous$$anifest$$anonymous$$anager

FacebookSD$$anonymous$$/sdk/Editor/Android/DefaultAndroid$$anonymous$$anifest.xml

AudienceNetwork/Editor/Android/DefaultAndroid$$anonymous$$anifest.xml

GooglePlayGames/Editor/template-Android$$anonymous$$anifest.txt

I have delete the Androud$$anonymous$$anifest file in Audience Network as mentioned in above reply . But still its working for me

avatar image akashganga7 · Aug 16, 2018 at 11:38 AM 0
Share

I have also two Android$$anonymous$$anifest.xml file

One is for android google play games

and

One if for Google$$anonymous$$obileAds

if I delete one of them, they said file is missing

so how i merge them

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

108 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can only see canvas, skybox and particle systems in build 0 Answers

Building my game isn't working 0 Answers

How to solve unity editor freezing at Application.EnterPlayMode in play mode after building? 0 Answers

build failed,build webgl failed 0 Answers

Can't build the game with realsense+nuitrack 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges