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 /
avatar image
3
Question by hulahoolgames · Jan 19, 2016 at 09:20 PM · errorandroid buildbuild error

Unable to convert classes into dex format.

I am seeing the following errors when I am trying to build for android. I made sure I dont have any duplicate jar's in my project. I am posting the error log below. Please let me know if you need more information. Hope someone can point me what I am doing wrong. Thanks in advance.

Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details. /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/Abhi/Documents/Android/sdk/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -

stderr[

UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: Exception parsing classes at com.android.dx.command.dexer.Main.processClass(Main.java:752) at com.android.dx.command.dexer.Main.processFileBytes(Main.java:718) at com.android.dx.command.dexer.Main.access$1200(Main.java:85) at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1645) 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:672) at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311) 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) 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:497) at SDKMain.main(SDKMain.java:129) Caused by: com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000) at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472) at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406) at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388) at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251) at com.android.dx.command.dexer.Main.parseClass(Main.java:764) at com.android.dx.command.dexer.Main.access$1500(Main.java:85) at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684) at com.android.dx.command.dexer.Main.processClass(Main.java:749) ... 19 more

UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: Exception parsing classes at com.android.dx.command.dexer.Main.processClass(Main.java:752) at com.android.dx.command.dexer.Main.processFileBytes(Main.java:718) at com.android.dx.command.dexer.Main.access$1200(Main.java:85) at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1645) 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:672) at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311) 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) 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:497) at SDKMain.main(SDKMain.java:129) Caused by: com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000) at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472) at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406) at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388) at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251) at com.android.dx.command.dexer.Main.parseClass(Main.java:764) at com.android.dx.command.dexer.Main.access$1500(Main.java:85) at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684) at com.android.dx.command.dexer.Main.processClass(Main.java:749) ... 19 more 2 errors; aborting ] stdout[ processing archive bin/classes.jar... processing com/unity3d/player/a$1.class... processing com/unity3d/player/a$2.class... processing com/unity3d/player/a$a.class... processing com/unity3d/player/a.class... processing com/unity3d/player/b$1.class... processing com/unity3d/player/b$2.class... processing com/unity3d/player/b.class... processing com/unity3d/player/c.class... processing com/unity3d/player/d$1.class... processing com/unity3d/player/d$2.class... processing com/unity3d/player/d.class... processing com/unity3d/player/e.class... processing com/unity3d/player/f.class... processing com/unity3d/player/g.class... processing com/unity3d/player/h.class... processing com/unity3d/player/i.class... processing com/unity3d/player/j.class... processing com/unity3d/player/k$1.class... processing com/unity3d/player/k$2$1$1.class... processing com/unity3d/player/k$2$1.class... processing com/unity3d/player/k$2.class... processing com/unity3d/player/k.class... processing com/unity3d/player/l$1.class... processing com/unity3d/player/l.class... processing com/unity3d/player/m.class... processing com/unity3d/player/n$1.class... processing com/unity3d/player/n.class... processing com/unity3d/player/o.class... processing com/unity3d/player/p$1.class... processing com/unity3d/player/p.class... processing com/unity3d/player/NativeLoader.class... processing com/unity3d/player/q.class... processing com/unity3d/player/ReflectionHelper$1.class... processing com/unity3d/player/ReflectionHelper$a.class... processing com/unity3d/player/ReflectionHelper.class... processing com/unity3d/player/r.class... processing com/unity3d/player/s$1.class... processing com/unity3d/player/s$2.class... processing com/unity3d/player/s$3.class... processing com/unity3d/player/s.class... processing com/unity3d/player/t.class... processing com/unity3d/player/u.class... processing com/unity3d/player/UnityPlayer$1.class... processing com/unity3d/player/UnityPlayer$2.class... processing com/unity3d/player/UnityPlayer$4.class... processing com/unity3d/player/UnityPlayer$5.class... processing com/unity3d/player/UnityPlayer$6.class... processing com/unity3d/player/UnityPlayer$7.class... processing com/unity3d/player/UnityPlayer$8.class... processing com/unity3d/player/UnityPlayer$9.class... processing com/unity3d/player/UnityPlayer$10.class... processing com/unity3d/player/UnityPlayer$11.class... processing com/unity3d/player/UnityPlayer$12.class... processing com/unity3d/player/UnityPlayer$13.class... processing com/unity3d/player/UnityPlayer$14.class... processing com/unity3d/player/UnityPlayer$3.class... processing com/unity3d/player/UnityPlayer$15$1.class... processing com/unity3d/player/UnityPlayer$15.class... processing com/unity3d/player/UnityPlayer$16.class... processing com/unity3d/player/UnityPlayer$17.class... processing com/unity3d/player/UnityPlayer$18.class... processing com/unity3d/player/UnityPlayer$19.class... processing com/unity3d/player/UnityPlayer$20.class... processing com/unity3d/player/UnityPlayer$a.class... processing com/unity3d/player/UnityPlayer$b.class... processing com/unity3d/player/UnityPlayer$c.class... processing com/unity3d/player/UnityPlayer.class... processing com/unity3d/player/UnityPlayerActivity.class... processing com/unity3d/player/UnityPlayerNativeActivity.class... processing com/unity3d/player/UnityPlayerProxyActivity.class... processing com/unity3d/player/v.class... processing com/unity3d/player/UnityWebRequest.class... processing com/unity3d/player/w$1.class... processing com/unity3d/player/w.class... processing com/unity3d/player/WWW.class... processing org/fmod/FMODAudioDevice.class... processing org/fmod/a.class... processing bitter/jnibridge/JNIBridge$a.class... processing bitter/jnibridge/JNIBridge.class... processing bin/classes/./com/facebook/android/R$attr.class... processing bin/classes/./com/facebook/android/R$color.class... processing bin/classes/./com/facebook/android/R$dimen.class... processing bin/classes/./com/facebook/android/R$drawable.class... processing bin/classes/./com/facebook/android/R$id.class... processing bin/classes/./com/facebook/android/R$integer.class... processing bin/classes/./com/facebook/android/R$layout.class... processing bin/classes/./com/facebook/android/R$raw.class... processing bin/classes/./com/facebook/android/R$string.class... processing bin/classes/./com/facebook/android/R$style.class... processing bin/classes/./com/facebook/android/R$styleable.class... processing bin/classes/./com/facebook/android/R.class... processing bin/classes/./com/facebook/R$attr.class... processing bin/classes/./com/facebook/R$color.class... processing bin/classes/./com/facebook/R$dimen.class... processing bin/classes/./com/facebook/R$drawable.class... processing bin/classes/./com/facebook/R$id.class... processing bin/classes/./com/facebook/R$integer.class... processing bin/classes/./com/facebook/R$layout.class... processing bin/classes/./com/facebook/R$raw.class... processing bin/classes/./com/facebook/R$string.class... processing bin/classes/./com/facebook/R$style.class... processing bin/classes/./com/facebook/R$styleable.class... processing bin/classes/./com/facebook/R.class... processing bin/classes/./com/fruitflygames/greedythesnake/R$attr.class... processing bin/classes/./com/fruitflygames/greedythesnake/R$color.class... processing bin/classes/./com/fruitflygames/greedythesnake/R$dimen.class... processing bin/classes/./com/fruitflygames/greedythesnake/R$drawable.class... processing bin/classes/./com/fruitflygames/greedythesnake/R$id.class... processing bin/classes/./com/fruitflygames/greedythesnake/R$integer.class... processing bin/classes/./com/fruitflygames/greedythesnake/R$layout.class... processing bin/classes/./com/fruitflygames/greedythesnake/R$raw.class... processing bin/classes/./com/fruitflygames/greedythesnake/R$string.class... processing bin/classes/./com/fruitflygames/greedythesnake/R$style.class... processing bin/classes/./com/fruitflygames/greedythesnake/R$styleable.class... processing bin/classes/./com/fruitflygames/greedythesnake/R.class... processing bin/classes/./com/google/android/gms/R$attr.class... processing bin/classes/./com/google/android/gms/R$color.class... processing bin/classes/./com/google/android/gms/R$dimen.class... processing bin/classes/./com/google/android/gms/R$drawable.class... processing bin/classes/./com/google/android/gms/R$id.class... processing bin/classes/./com/google/android/gms/R$integer.class... processing bin/classes/./com/google/android/gms/R$layout.class... processing bin/classes/./com/google/android/gms/R$raw.class... processing bin/classes/./com/google/android/gms/R$string.class... processing bin/classes/./com/google/android/gms/R$style.class... processing bin/classes/./com/google/android/gms/R$styleable.class... processing bin/classes/./com/google/android/gms/R.class... processing bin/classes/./com/soomla/SoomlaApp/R$attr.class... processing bin/classes/./com/soomla/SoomlaApp/R$color.class... processing bin/classes/./com/soomla/SoomlaApp/R$dimen.class... processing bin/classes/./com/soomla/SoomlaApp/R$drawable.class... processing bin/classes/./com/soomla/SoomlaApp/R$id.class... processing bin/classes/./com/soomla/SoomlaApp/R$integer.class... processing bin/classes/./com/soomla/SoomlaApp/R$layout.class... processing bin/classes/./com/soomla/SoomlaApp/R$raw.class... processing bin/classes/./com/soomla/SoomlaApp/R$string.class... processing bin/classes/./com/soomla/SoomlaApp/R$style.class... processing bin/classes/./com/soomla/SoomlaApp/R$styleable.class... processing bin/classes/./com/soomla/SoomlaApp/R.class... processing bin/classes/./com/unity3d/ads/android/R$attr.class... processing bin/classes/./com/unity3d/ads/android/R$color.class... processing bin/classes/./com/unity3d/ads/android/R$dimen.class... processing bin/classes/./com/unity3d/ads/android/R$drawable.class... processing bin/classes/./com/unity3d/ads/android/R$id.class... processing bin/classes/./com/unity3d/ads/android/R$integer.class... processing bin/classes/./com/unity3d/ads/android/R$layout.class... processing bin/classes/./com/unity3d/ads/android/R$raw.class... processing bin/classes/./com/unity3d/ads/android/R$string.class... processing bin/classes/./com/unity3d/ads/android/R$style.class... processing bin/classes/./com/unity3d/ads/android/R$styleable.class... processing bin/classes/./com/unity3d/ads/android/R.class... processing archive plugins/./android-bridge.jar... ignored resource META-INF/ ignored resource META-INF/MANIFEST.MF ignored resource com/ ignored resource com/supersonic/ ignored resource com/supersonic/unity/ ignored resource com/supersonic/unity/androidbridge/ processing com/supersonic/unity/androidbridge/AndroidBridge.class... processing archive plugins/./android-support-v4.jar... ignored resource META-INF/ ignored resource META-INF/MANIFEST.MF ignored resource android/ ignored resource android/support/ ignored resource android/support/annotation/ processing android/support/annotation/ColorRes.class... processing android/support/annotation/XmlRes.class... processing android/support/annotation/BoolRes.class... processing android/support/annotation/RequiresPermission$Read.class... processing android/support/annotation/RequiresPermission.class... processing android/support/annotation/RawRes.class... processing android/support/annotation/RequiresPermission$Write.class... processing android/support/annotation/StyleableRes.class... processing android/support/annotation/UiThread.class... processing android/support/annotation/TransitionRes.class... processing android/support/annotation/AnimRes.class... processing android/support/annotation/FloatRange.class... processing android/support/annotation/CheckResult.class... processing android/support/annotation/IntegerRes.class... processing android/support/annotation/Keep.class... processing android/support/annotation/AttrRes.class... processing android/support/annotation/IntRange.class... processing android/support/annotation/CallSuper.class... processing android/support/annotation/MenuRes.class... processing android/support/annotation/WorkerThread.class... processing android/support/annotation/FractionRes.class... processing android/support/annotation/Nullable.class... processing android/support/annotation/InterpolatorRes.class... processing android/support/annotation/ColorInt.class... processing android/support/annotation/PluralsRes.class... processing android/support/annotation/MainThread.class... processing android/support/annotation/DrawableRes.class... processing android/support/annotation/LayoutRes.class... processing android/support/annotation/Size.class... processing android/support/annotation/DimenRes.class... processing android/support/annotation/ArrayRes.class... processing android/support/annotation/IdRes.class... processing android/support/annotation/AnyRes.class... processing android/support/annotation/StringRes.class... processing android/support/annotation/NonNull.class... processing android/support/annotation/IntDef.class... processing android/support/annotation/BinderThread.class... processing android/support/annotation/StyleRes.class... processing android/support/annotation/StringDef.class... processing android/support/annotation/AnimatorRes.class... processing android/support/annotation/VisibleForTesting.class... ignored resource android/support/v4/ ignored resource android/support/v4/internal/ ignored resource android/support/v4/internal/vi

Comment
Add comment · Show 1
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 eddiek99 · Apr 13, 2016 at 09:12 PM 0
Share

I'm having the same problem. Other threads talk about multiple .jar files and having to get rid of duplicates in order to solve. However, this particular error --

UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: Exception parsing classes at ...

is definitely different from the errors they're having in those posts. I have a single .jar file in my Plugins>Android folder, so I have no duplicates to get rid of. I'm scouring the internet trying to find a solution with zero luck. Anybody have a solution for this yet?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by FoxyShadow · Apr 03, 2017 at 06:48 AM

After SEVERAL DAYS I found a solution. For me it was that I was using Java8! When I uninstalled Java8 and installed Java7 build was successfull! Since it is a year old question hope it will help people who is trying to find a solution for this problem now. :)

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

38 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

Related Questions

Android build error 0 Answers

Android app keeps quiting after adding Unity ads 0 Answers

Android build fails for project with large array of data 1 Answer

Can a project tiny app be built for android? 1 Answer

4 errors after implementing unity ads in my game. 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