Home > other >  Packaging APK met Unable to convert classes into dex format.
Packaging APK met Unable to convert classes into dex format.

Time:09-21

Recently hired a new one, when packaged encountered this problem, ask god to help solve, online said the way I tried all failed, basic androidsdk and JDK is installed again also useless, I don't know what the problem is
CommandInvokationFailure: Unable to convert classes into dex format.
E:/Java/jdk1.8.0 _111 \ bin \ Java exe - Xmx2048M - Dcom. Android. Sdkmanager. Toolsdir="C:/Users/Administrator/AppData/Local/android Sdk \ tools" - Dfile. Encoding=UTF8 - jar "E: \ Unity \ Editor \ Data \ PlaybackEngines \ AndroidPlayer/tools \ sdktools jar" -

Stderr [

UNEXPECTED TOP - LEVEL EXCEPTION:
Java. Util. Zip. ZipException: error opening zip file in
The at Java. Util. Zip. ZipFile. Open (Native Method)
The at Java. Util. Zip. ZipFile. & lt; init> (ZipFile. Java: 219)
The at Java. Util. Zip. ZipFile. & lt; init> (ZipFile. Java: 149)
The at Java. Util. Zip. ZipFile. & lt; init> (ZipFile. Java: 163)
At com. Android. Dx. Cf. Direct.. ClassPathOpener processArchive (ClassPathOpener. Java: 244)
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 (144) ClassPathOpener. Java:
At com.android.dx.com, mand. Dexer. Main. ProcessOne (677). The Main Java:
At com.android.dx.com, mand. Dexer. Main. ProcessAllFiles (574). The Main Java:
At com.android.dx.com, mand. Dexer. Main. RunMonoDex (311). The Main Java:
At com.android.dx.com, mand. Dexer. Main. The run (277). The Main Java:
At com.android.dx.com, mand. Dexer. Main. The Main (245). The Main Java:
At com.android.dx.com, mand. Main. The Main (106). The Main Java:
At sun. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
At sun. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 62)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. Lang. Reflect. Method. Invoke (498) Method. The Java:
The at SDKMain. Main (SDKMain. Java: 129)

CodePudding user response:

Hello
Today I also encountered this problem
You had how to solve the action

CodePudding user response:

Make sure the corresponding version of the SDK packages are entirely?
Too little information don't know the reason
  • Related