Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
1
Question by flonussi · Mar 04, 2015 at 05:39 PM · androidiapsoomla

"Unable to convert classes into dex format" after update to Unity 5

Today I updated my project to Unity 5. Everything was working fine at first, but as soon as I tried to build my game for android I got an error:

 CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.
 C:\Program Files\Java\jdk1.8.0_20\bin\java.exe -Xmx2048M - Dcom.android.sdkmanager.toolsdir="C:/Program Files/Android/android-sdk\tools" -Dfile.encoding=UTF8 -jar "C:/Program Files/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar"

So I took a look at the console output and I found the following lines:

      UNEXPECTED TOP-LEVEL EXCEPTION:
      java.lang.IllegalArgumentException:
  already added:
  Lcom/android/vending/billing/IInAppBillingService$Stub$Proxy;
          at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
          at com.android.dx.dex.file.DexFile.add(DexFile.java:161)
          at com.android.dx.command.dexer.Main.processClass(Main.java:732)
          at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
          at com.android.dx.command.dexer.Main.access$300(Main.java:83)
          at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)
          at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
          at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
          at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
          at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
          at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
          at com.android.dx.command.dexer.Main.processOne(Main.java:632)
          at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)
          at com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)
          at com.android.dx.command.dexer.Main.run(Main.java:246)
          at com.android.dx.command.dexer.Main.main(Main.java:215)
          at com.android.dx.command.Main.main(Main.java:106)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
  Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:483)
          at SDKMain.main(SDKMain.java:129)

I'm using the following plugins:

  • Soomla Store - In App Purchase

  • Google Play Games plugin

  • Google AdMob plugin

I'm guessing the Soomla Plugin is causing the error, but I can't seem to find a solution. Had someone a similar problem or does anyone know how to solve this issue?

Thanks!

Comment
Add comment · Show 2
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 LaireonGames · Mar 05, 2015 at 03:26 PM 0
Share

Same for me and my setup is pretty similiar to yours. I think facebook might be the issue since I had made builds in Unity 5 fine then I stupidly decided to updated Facebook and everything is broken again

avatar image LaireonGames · Mar 05, 2015 at 03:47 PM 0
Share

Yup it was facebook for me. It usually caused by having two of the same jar and then thus two of the same class. This was the problem for me:

http://answers.unity3d.com/questions/787910/error-building-player-commandinvokationfailure-una.html

Very bottom the comment about bolts

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by K3n Ichi · Mar 13, 2015 at 12:22 AM

I've just deleted the Soomla/compilation (made a backup first) folder and it´s compile normally again.

Comment
Add comment · 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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Purchases showing as tests 0 Answers

Check IAP Subscription Product Status Android 0 Answers

IAP doesn't work in google play store (on device) but works fine in the editor. 0 Answers

How do I Build & Run Android game as a specific Google Account? 2 Answers

UnityIAP Android restore process 0 Answers


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