Home > other >  Unity5.2.2 and android communication Error
Unity5.2.2 and android communication Error

Time:09-25

CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.
C: \ Program Files \ Java \ jdk1.8.0 _60 \ bin \ Java exe - Xmx2048M - Dcom. Android. Sdkmanager. Toolsdir="G: \ unity3D_Plug \ adt - bundle - Windows - x86_64-20131030 \ SDK \ tools" - Dfile. Encoding=UTF8 - jar "C: \ Program Files \ Unity \ Editor \ Data \ PlaybackEngines \ androidplayer/tools \ sdktools jar" -

Stderr [

UNEXPECTED TOP - LEVEL EXCEPTION:
Java. Lang. IllegalArgumentException: already added: Lcom/ITFFuture testua/R $attr;
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.com, mand. Dexer. Main. ProcessClass (732). The Main Java:
At com.android.dx.com, mand. Dexer. Main. ProcessFileBytes (673). The Main Java:
At com.android.dx.com mand. Dexer. Main. Access the $300 (83). The Main Java:
At com.android.dx.com, mand. Dexer. Main $1. ProcessFileBytes (602). The Main Java:
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 (144) ClassPathOpener. Java:
At com.android.dx.com, mand. Dexer. Main. ProcessOne (632). The Main Java:
At com.android.dx.com, mand. Dexer. Main. ProcessAllFiles (510). The Main Java:
At com.android.dx.com, mand. Dexer. Main. RunMonoDex (280). The Main Java:
At com.android.dx.com, mand. Dexer. Main. The run (246). The Main Java:
At com.android.dx.com, mand. Dexer. Main. The Main (215). 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 (497) Method. The Java:
The at SDKMain. Main (SDKMain. Java: 129)
1 the error; Aborting
]
Stdout [

CodePudding user response:

I surf the Internet to find a lot of Data, but has no effect, the unity5.2.2 classes. The jar file is very much, I also don't know what the choice, I was in C: \ Program Files \ Unity \ Editor \ Data \ PlaybackEngines \ androidplayer \ Variations/mono/Release in the classes. The jar is copied to the eclipse, this apk is generated by the Unity error

CodePudding user response:

I met the same problem, the solution is as follows:
1 player in the Settings bundle identifiers and must be set. The jar project is different, the advice to unity in the
2 AndroidManifest activity in the tag, the android: name write complete, use. The jar,
  • Related