Creator1.6安卓Default编译问题

log.zip (5.3 KB)

log来了,这个问题其实经常碰的。如果NDK的问题,我一直用这个NDK发布安卓包,都可以的。

那你现在用的 ndk 什么版本的?
你不是说上次换NDK编译成功了?

这个问题我也不是很懂的说

对,现在用的r10d,当时换了r12b,后来又换回来,然后就成功了.

都升级到最新的呗,我目前是这样的,用 android studio 来升级比较能确保下的不是一些不完整的。。。

没装过android studio :joy:占电脑硬盘空间太多了,我再试下,说不定多试几下就可以了.

换了NDK到最新版本,报这个错:

   [dx] compiler that did not target the modern .class file format. The recommended
   [dx] solution is to recompile the class from source, using an up-to-date compiler
   [dx] and without specifying any "-target" type options. The consequence of ignoring
   [dx] this warning is that reflective operations on this class will incorrectly
   [dx] indicate that it is *not* an inner class.
   [dx] warning: Ignoring InnerClasses attribute for an anonymous inner class
   [dx] (com.iapppay.utils.o) that doesn't come with an
   [dx] associated EnclosingMethod attribute. This class was probably produced by a
   [dx] compiler that did not target the modern .class file format. The recommended
   [dx] solution is to recompile the class from source, using an up-to-date compiler
   [dx] and without specifying any "-target" type options. The consequence of ignoring
   [dx] this warning is that reflective operations on this class will incorrectly
   [dx] indicate that it is *not* an inner class.
  [dex] Pre-Dexing D:\projects\bullfight\client\build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\android-async-http-1.4.9.jar -> android-async-http-1.4.9-a80c30851a28c73b4f611acea665f7e0.jar
  [dex] Converting compiled files and external libraries into D:\projects\bullfight\client\build\jsb-default\frameworks\runtime-src\proj.android\bin\classes.dex...
   [dx] 
   [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
   [dx] com.android.dex.DexException: Multiple dex files define Lorg/cocos2dx/lib/Cocos2dxAccelerometer;
   [dx] 	at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:591)
   [dx] 	at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:546)
   [dx] 	at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:528)
   [dx] 	at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:164)
   [dx] 	at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
   [dx] 	at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:504)
   [dx] 	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
   [dx] 	at com.android.dx.command.dexer.Main.run(Main.java:277)
   [dx] 	at com.android.dx.command.dexer.Main.main(Main.java:245)
   [dx] 	at com.android.dx.command.Main.main(Main.java:106)
   [dx] 

BUILD FAILED
D:\android\Android-SDK\tools\ant\build.xml:888: The following error occurred while executing this line:
D:\android\Android-SDK\tools\ant\build.xml:890: The following error occurred while executing this line:
D:\android\Android-SDK\tools\ant\build.xml:902: The following error occurred while executing this line:
D:\android\Android-SDK\tools\ant\build.xml:283: null returned: 2

看不懂啊

我要崩溃了,换了跟你一样的sdk,ndk也编译不过.

换了之后先删掉 build 目录?

当然都删了试的,每次试我都删了Build

这个问题上个版本我就遇到过,已经解决了,是ndk版本的问题,升级的 r10e 或更高版本即可

我用我的丁丁担保,我的NDK都升级到14b了

你现在报的是什么错了。。。

报这个,看不懂

我也母鸡了,看有没有其他人碰到过这个问题。。。

你们是不是很久没用过编辑器打包了,这个应该是jar包冲突导致的.

我也遇到了。缺少目录名“/”
我的creator是从1.4 升级到1.5.1 的

我的ndk android-ndk-r10d

http://forum.cocos.com/t/cocos-create-1-5-1-helloworld-default/48072/2
这个兄弟解决了。

这个是偶现的,我都升级到14了,都不行,以前12或者10都能编译过.