- Home /
Unable to convert classes into dex format. See the Console for details
Hello Folks,
I am here to discuss some unusual error which I got while building for my gear VR in unity 5.1.2f1.
The screenshot is attached. Please help me and let me know what is the possible way to fix it.
The console error message:
CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details. C:/Program Files/Java/jdk1.8.0_65\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/sovan.k/AppData/Local/Android/android-sdk\tools" -Dfile.encoding=UTF8 -jar "C:/Program Files/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" -
stderr[ Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/app/IVRManager; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/oculus/vrapi/DockReceiver; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/oculus/vrapi/ProximityReceiver; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/oculus/vrapi/VrApi; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/oculus/vrapi/VrApi$1; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/oculus/vrapi/VrApi$2; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/oculus/vrapi/VrApi$3; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/oculus/vrapi/VrApi$4; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/oculus/vrapi/VrApi$5;
UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: Translation has been interrupted at com.android.dx.command.dexer.Main.processAllFiles(Main.java:608) 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: java.lang.InterruptedException: Too many errors at com.android.dx.command.dexer.Main.processAllFiles(Main.java:600) ... 9 more ] stdout[ processing archive F:\Gear VR Project\Temp\StagingArea\android-libraries\ovrplugin\bin\classes.jar... ignored resource META-INF/ ignored resource META-INF/MANIFEST.MF ignored resource android/ ignored resource android/app/ processing android/app/IVRManager.class... ignored resource com/ ignored resource com/oculus/ ignored resource com/oculus/vrapi/ processing com/oculus/vrapi/DockReceiver.class... processing com/oculus/vrapi/ProximityReceiver.class... processing com/oculus/vrapi/VrApi.class... processing com/oculus/vrapi/VrApi$1.class... processing com/oculus/vrapi/VrApi$2.class... processing com/oculus/vrapi/VrApi$3.class... processing com/oculus/vrapi/VrApi$4.class... processing com/oculus/vrapi/VrApi$5.class... processing com/oculus/vrapi/VrApi$6.class... processing com/oculus/vrapi/VrApi$7.class... processing com/oculus/vrapi/VrApi$8.class... processing com/oculus/vrapi/VrApi$BatteryReceiver.class... processing com/oculus/vrapi/VrApi$BatteryReceiver$1.class... processing com/oculus/vrapi/VrApi$HeadsetReceiver.class... processing com/oculus/vrapi/VrApi$HeadsetReceiver$1.class... processing com/oculus/vrapi/VrApi$OvrPhoneStateListener.class... processing com/oculus/vrapi/VrApi$VolumeReceiver.class... processing com/oculus/vrapi/VrApi$VolumeReceiver$1.class... processing com/oculus/vrapi/VrApi$WifiReceiver.class... processing com/oculus/vrapi/VrApi$WifiReceiver$1.class... processing archive F:\Gear VR Project\Temp\StagingArea\android-libraries\ovrplugin\libs.\vrplatlib.jar... ignored resource META-INF/MANIFEST.MF ignored resource com/ ignored resource com/facebook/ ignored resource com/facebook/androidcompat/ processing com/facebook/androidcompat/AndroidCompat.class... ignored resource com/facebook/sign/ ignored resource com/facebook/sign/lib/ processing com/facebook/sign/lib/FBSignSigner.class... processing com/facebook/sign/lib/FBSignVerify.class... ignored resource com/oculus/ ignored resource com/oculus/aidl/ processing com/oculus/aidl/OVRServiceInterface.class... processing com/oculus/aidl/OVRServiceInterface$Stub.class... processing com/oculus/aidl/OVRServiceInterface$Stub$Proxy.class... processing com/oculus/aidl/RemoteConstants.class... processing com/oculus/aidl/RemoteConstants$EntitlementResult.class... ignored resource com/oculus/appmanager/ ignored resource com/oculus/appmanager/signature/ processing com/oculus/appmanager/signature/VRPackageVerifier.class... ignored resource com/oculus/appmanager/vrsign/ processing com/oculus/appmanager/vrsign/VRSignVerifier.class... ignored resource com/oculus/provider/ processing com/oculus/provider/OculusContent.class... processing com/oculus/provider/OculusContent$Profile.class... ignored resource com/oculus/svclib/ processing com/oculus/svclib/OVR.class... processing com/oculus/svclib/OVR$1.class... processing com/oculus/svclib/OVR$EntitlementFailureDetail.class... processing com/oculus/svclib/OVR$ServiceState.class... processing com/oculus/svclib/OVREntitlementChecker.class... processing com/oculus/svclib/OVREntitlementChecker$Checker.class... processing com/oculus/svclib/OVREntitlementChecker$Checker$1.class... processing com/oculus/svclib/OVRPackageUtils.class... processing com/oculus/svclib/OVRProfile.class... processing com/oculus/svclib/OnCompleteListener.class... processing bin\classes.\com\Eclipse\Gear360\R.class... processing bin\classes.\com\Eclipse\Gear360\R$attr.class... processing bin\classes.\com\Eclipse\Gear360\R$drawable.class... processing bin\classes.\com\Eclipse\Gear360\R$string.class... processing bin\classes.\com\Oculus\Integration\R.class... processing bin\classes.\com\Oculus\Integration\R$attr.class... processing bin\classes.\com\Oculus\Integration\R$drawable.class... processing bin\classes.\com\Oculus\Integration\R$string.class... processing archive bin\classes.jar... processing bitter/jnibridge/JNIBridge.class... processing bitter/jnibridge/JNIBridge$a.class... processing com/unity3d/player/NativeLoader.class... processing com/unity3d/player/ReflectionHelper.class... processing com/unity3d/player/ReflectionHelper$1.class... processing com/unity3d/player/ReflectionHelper$a.class... processing com/unity3d/player/UnityPlayer.class... processing com/unity3d/player/UnityPlayer$1.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$13$1.class... processing com/unity3d/player/UnityPlayer$14.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$2.class... processing com/unity3d/player/UnityPlayer$3.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$a.class... processing com/unity3d/player/UnityPlayer$b.class... processing com/unity3d/player/UnityPlayer$c.class... processing com/unity3d/player/UnityPlayerActivity.class... processing com/unity3d/player/UnityPlayerNativeActivity.class... processing com/unity3d/player/UnityPlayerProxyActivity.class... processing com/unity3d/player/WWW.class... processing com/unity3d/player/a.class... 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/b.class... processing com/unity3d/player/b$1.class... processing com/unity3d/player/b$2.class... processing com/unity3d/player/c.class... processing com/unity3d/player/d.class... processing com/unity3d/player/d$1.class... processing com/unity3d/player/d$2.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/j$1.class... processing com/unity3d/player/j$2.class... processing com/unity3d/player/j$2$1.class... processing com/unity3d/player/j$2$1$1.class... processing com/unity3d/player/k.class... processing com/unity3d/player/k$1.class... processing com/unity3d/player/l.class... processing com/unity3d/player/m.class... processing com/unity3d/player/n.class... processing com/unity3d/player/n$1.class... processing com/unity3d/player/o.class... processing com/unity3d/player/p.class... processing com/unity3d/player/q.class... processing com/unity3d/player/q$1.class... processing com/unity3d/player/q$2.class... processing com/unity3d/player/q$3.class... processing com/unity3d/player/r.class... processing com/unity3d/player/s.class... processing com/unity3d/player/t.class... processing com/unity3d/player/u.class... processing com/unity3d/player/u$1.class... processing org/fmod/FMODAudioDevice.class... processing org/fmod/FMODAudioDevice$a.class... processing org/fmod/a.class... processing archive plugins.\vrlib.jar... ignored resource META-INF/ ignored resource META-INF/MANIFEST.MF ignored resource android/ ignored resource android/app/ processing android/app/IVRManager.class... ignored resource com/ ignored resource com/oculus/ ignored resource com/oculus/vrapi/ processing com/oculus/vrapi/DockReceiver.class... processing com/oculus/vrapi/ProximityReceiver.class... processing com/oculus/vrapi/VrApi.class... processing com/oculus/vrapi/VrApi$1.class... processing com/oculus/vrapi/VrApi$2.class... processing com/oculus/vrapi/VrApi$3.class... processing com/oculus/vrapi/VrApi$4.class... processing com/oculus/vrapi/VrApi$5.class... processing com/oculus/vrapi/VrApi$6.class... processing com/oculus/vrapi/VrApi$7.class... processing com/oculus/vrapi/VrApi$8.class... processing com/oculus/vrapi/VrApi$BatteryReceiver.class... processing com/oculus/vrapi/VrApi$BatteryReceiver$1.class... processing com/oculus/vrapi/VrApi$HeadsetReceiver.class... processing com/oculus/vrapi/VrApi$HeadsetReceiver$1.class... processing com/oculus/vrapi/VrApi$OvrPhoneStateListener.class... processing com/oculus/vrapi/VrApi$VolumeReceiver.class... processing com/oculus/vrapi/VrApi$VolumeReceiver$1.class... processing com/oculus/vrapi/VrApi$WifiReceiver.class... processing com/oculus/vrapi/VrApi$WifiReceiver$1.class... processing archive plugins.\vrplatlib.jar... ignored resource META-INF/MANIFEST.MF ignored resource com/ ignored resource com/facebook/ ignored resource com/facebook/androidcompat/ processing com/facebook/androidcompat/AndroidCompat.class... ignored resource com/facebook/sign/ ignored resource com/facebook/sign/lib/ processing com/facebook/sign/lib/FBSignSigner.class... processing com/facebook/sign/lib/FBSignVerify.class... ignored resource com/oculus/ ignored resource com/oculus/aidl/ processing com/oculus/aidl/OVRServiceInterface.class... processing com/oculus/aidl/OVRServiceInterface$Stub.class... processing com/oculus/aidl/OVRServiceInterface$Stub$Proxy.class... processing com/oculus/aidl/RemoteConstants.class... processing com/oculus/aidl/RemoteConstants$EntitlementResult.class... ignored resource com/oculus/appmanager/ ignored resource com/oculus/appmanager/signature/ processing com/oculus/appmanager/signature/VRPackageVerifier.class... ignored resource com/oculus/appmanager/vrsign/ processing com/oculus/appmanager/vrsign/VRSignVerifier.class... ignored resource com/oculus/provider/ processing com/oculus/provider/OculusContent.class... processing com/oculus/provider/OculusContent$Profile.class... ignored resource com/oculus/svclib/ processing com/oculus/svclib/OVR.class... processing com/oculus/svclib/OVR$1.class... processing com/oculus/svclib/OVR$EntitlementFailureDetail.class... processing com/oculus/svclib/OVR$ServiceState.class... processing com/oculus/svclib/OVREntitlementChecker.class... processing com/oculus/svclib/OVREntitlementChecker$Checker.class... processing com/oculus/svclib/OVREntitlementChecker$Checker$1.class... processing com/oculus/svclib/OVRPackageUtils.class... processing com/oculus/svclib/OVRProfile.class... processing com/oculus/svclib/OnCompleteListener.class... ] UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.HostView:OnGUI()
Answer by CezarCao · Jul 13, 2016 at 09:34 PM
I ran into exactly same issue with same Unity & Moible SDK version. Looked lots of info, still not fixed yet, except removing those plugin lib/jar, which is not the right way IMO.