-
Creator 版本:2.09
-
目标平台:Android
-
详细报错信息,包含调用堆栈:
Error: Compile failed. The log file path [ C:\Users\Administrator.CocosCreator\logs\native.log ]
at ChildProcess.q (F:\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:18864)
at ChildProcess.r.on (F:\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:6589)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
native日志:
编译模式:release
使用 Android Studio 工程:F:\cocos\underthesea\build\jsb-default\frameworks\runtime-src\proj.android-studio
正在生成 apk 文件…
正在执行:’“F:\cocos\underthesea\build\jsb-default\frameworks\runtime-src\proj.android-studio\gradlew.bat” --parallel --info assembleRelease’
Initialized native services in: C:\Users\Administrator.gradle\native
Removing daemon from the registry due to communication failure. Daemon information: DaemonInfo{pid=5556, address=[4ee3f1db-ccca-4225-ac05-810875e85130 port:51390, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]], state=Idle, lastBusy=1554476056598, context=DefaultDaemonContext[uid=4eeb2bf8-2920-44b9-861e-73764201fb86,javaHome=D:\Java\jdk 1.8.0_201,daemonRegistryDir=C:\Users\Administrator.gradle\daemon,pid=5556,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=GBK,-Duser.country=CN,-Duser.language=zh,-Duser.variant]}
Removing 1 daemon stop events from registry
Previous Daemon (5556) stopped at Sat Apr 06 12:28:12 CST 2019 by user or operating system
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
Starting process ‘Gradle build daemon’. Working directory: C:\Users\Administrator.gradle\daemon\4.10.3 Command: D:\Java\jdk 1.8.0_201\bin\java.exe -XX:+HeapDumpOnOutOfMemoryError -Xmx1024m -Dfile.encoding=GBK -Duser.country=CN -Duser.language=zh -Duser.variant -cp C:\Users\Administrator.gradle\wrapper\dists\gradle-4.10.3-all\47sla2vl0tc5qooe1dsb59pe1r\gradle-4.10.3\lib\gradle-launcher-4.10.3.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 4.10.3
Successfully started process ‘Gradle build daemon’
An attempt to start the daemon took 2.146 secs.
The client will now receive all logging from the daemon (pid: 6888). The daemon log file: C:\Users\Administrator.gradle\daemon\4.10.3\daemon-6888.out.log
Starting build in new daemon [memory: 954.7 MB]
Using 4 worker leases.
Starting Build
Settings evaluated using settings file ‘F:\cocos\underthesea\build\jsb-default\frameworks\runtime-src\proj.android-studio\settings.gradle’.
Projects loaded. Root project using build file ‘F:\cocos\underthesea\build\jsb-default\frameworks\runtime-src\proj.android-studio\build.gradle’.
Included projects: [root project ‘proj.android-studio’, project ‘:libcocos2dx’, project ‘:underthesea’]
Parallel execution is an incubating feature.
Configure project :
Evaluating root project ‘proj.android-studio’ using build file ‘F:\cocos\underthesea\build\jsb-default\frameworks\runtime-src\proj.android-studio\build.gradle’.
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘proj.android-studio’.
Could not resolve all artifacts for configuration ‘:classpath’.
Could not download bcpkix-jdk15on.jar (org.bouncycastle:bcpkix-jdk15on:1.56)
Could not get resource ‘https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.jar’.
Read timed out
Could not download bcprov-jdk15on.jar (org.bouncycastle:bcprov-jdk15on:1.56)
Could not get resource ‘https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.jar’.
Could not GET ‘https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.jar’.
Read timed out
Could not download fastutil.jar (it.unimi.dsi:fastutil:7.2.0)
Could not get resource ‘https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.jar’.
Read timed out
Could not download jimfs.jar (com.google.jimfs:jimfs:1.1)
Could not get resource ‘https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.jar’.
Read timed out
Could not download guava.jar (com.google.guava:guava:23.0)
Could not get resource ‘https://jcenter.bintray.com/com/google/guava/guava/23.0/guava-23.0.jar’.
Read timed out
Could not download gson.jar (com.google.code.gson:gson:2.8.0)
Could not get resource ‘https://jcenter.bintray.com/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar’.
Could not GET ‘https://jcenter.bintray.com/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar’.
Read timed out
Could not download httpclient.jar (org.apache.httpcomponents:httpclient:4.5.2)
Could not get resource ‘https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar’.
Read timed out
Could not download httpcore.jar (org.apache.httpcomponents:httpcore:4.4.5)
Could not get resource ‘https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.jar’.
Read timed out
Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-reflect:1.2.0)
Could not get resource ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.2.0/kotlin-reflect-1.2.0.jar’.
Read timed out
Could not download antlr4.jar (org.antlr:antlr4:4.5.3)
Could not get resource ‘https://jcenter.bintray.com/org/antlr/antlr4/4.5.3/antlr4-4.5.3.jar’.
Read timed out
Could not download juniversalchardet.jar (com.googlecode.juniversalchardet:juniversalchardet:1.0.3)
Could not get resource ‘https://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.jar’.
Read timed out
Could not download kotlin-stdlib.jar (org.jetbrains.kotlin:kotlin-stdlib:1.2.20)
Could not get resource ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.20/kotlin-stdlib-1.2.20.jar’.
Read timed out
Could not download proguard-base.jar (net.sf.proguard:proguard-base:6.0.3)
Could not get resource ‘https://jcenter.bintray.com/net/sf/proguard/proguard-base/6.0.3/proguard-base-6.0.3.jar’.
Could not GET ‘https://jcenter.bintray.com/net/sf/proguard/proguard-base/6.0.3/proguard-base-6.0.3.jar’.
Read timed out
Could not download auto-value.jar (com.google.auto.value:auto-value:1.5.2)
Could not get resource ‘https://jcenter.bintray.com/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.jar’.
Read timed out
Could not download protobuf-java.jar (com.google.protobuf:protobuf-java:3.4.0)
Could not get resource ‘https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.jar’.
Could not GET ‘https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.jar’.
Read timed out
Could not download jdom2.jar (org.jdom:jdom2:2.0.6)
Could not get resource ‘https://jcenter.bintray.com/org/jdom/jdom2/2.0.6/jdom2-2.0.6.jar’.
Read timed out
Could not download commons-compress.jar (org.apache.commons:commons-compress:1.12)
Could not get resource ‘https://jcenter.bintray.com/org/apache/commons/commons-compress/1.12/commons-compress-1.12.jar’.
Read timed out
Could not download commons-codec.jar (commons-codec:commons-codec:1.9)
Could not get resource ‘https://jcenter.bintray.com/commons-codec/commons-codec/1.9/commons-codec-1.9.jar’.
Read timed out
Could not download jaxb-runtime.jar (org.glassfish.jaxb:jaxb-runtime:2.2.11)
Could not get resource ‘https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.jar’.
Could not GET ‘https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.jar’.
Read timed out
Could not download FastInfoset.jar (com.sun.xml.fastinfoset:FastInfoset:1.2.13)
Could not get resource ‘https://jcenter.bintray.com/com/sun/xml/fastinfoset/FastInfoset/1.2.13/FastInfoset-1.2.13.jar’.
Read timed out
-
Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 8m 34s
执行命令出错,返回值:1。
我选择的ndk是离线包下载来的 不是Android studio 平台上sdk manage下载的 18版本,是这个问题吗,还是说是其他问题。