没装过android studio 占电脑硬盘空间太多了,我再试下,说不定多试几下就可以了.
换了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
这个是偶现的,我都升级到14了,都不行,以前12或者10都能编译过.
换了 10e 编译通过了。
OK,试试
编译勾上 android studio 试试?
不用安装 android studio 也可以勾上的
今天有空了,改用android studio来玩玩.
发现一个问题,
build出来的default版本的local.properties里面默认是比如:
sdk.dir=D:\android\Android-SDK
然后android studio会提示你这个路径不存在:D:androidAndroid-SDK,会把它改为:sdk.dir=D:\\android\\Android-SDK
这下看明白了,是这个\转化的问题,我估计都换成/或\\就没问题了,上面编译不过的问题也是报这个路径的问题,我估计是这同一个问题,麻烦引擎组的同学检查一下.