正在执行:'"D:\cocos\HelloCoCoJS\build-and\jsb-default\frameworks\runtime-src\proj.android-studio\gradlew.bat" --parallel --info assembleRelease'
Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached
waiting for exclusive access to file: C:\Users\Administrator\.gradle\wrapper\dists\gradle-4.1-all\6aljcho5ti94cio10aoqa5qqs8\gradle-4.1-all.zip
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAcc
essManager.java:61)
at org.gradle.wrapper.Install.createDist(Install.java:47)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
执行命令出错,返回值:1。
请按任意键继续. . .
错误原因
C:\Users\Administrator\.gradle\wrapper\dists\gradle-4.1-all\6aljcho5ti94cio10aoqa5qqs8\gradle-4.1-all.zip
由于网络原因下载了一半失败,调用失败。删除这个文件,重新编译,命令行会自动下载这个文件
sdk是 adt-bundle-windows-x86_64-20140702
NDK是android-ndk-r10e, 都是64位
编译release提前在Android studio里把release Signing写好,工具栏Project Struct点击去有
编译命令 jsb-default目录下 call cocos compile -p android -m release