这台电脑上用cocos命令行编译android完全没问题。但是用cocos creator编译,出现了下面的问题。
另外,界面上,API Level无法选择。

android sdk目录的platforms

android ndk目录的platforms

编译模式:release
使用 Android Studio 工程:D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio
正在执行:’“E:\cocos\adt-bundle-windows-x86\sdk\tools\android” update project -t android-17 -p D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio\app’
Updated project.properties
Updated local.properties
Updated file D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\proguard-project.txt
正在生成 apk 文件…
正在执行:’“D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio\gradlew.bat” --parallel --info assembleRelease’
Downloading https://services.gradle.org/distributions/gradle-4.1-all.zip
…
Unzipping C:\Users\Administrator.gradle\wrapper\dists\gradle-4.1-all\6aljcho5ti94cio10aoqa5qqs8\gradle-4.1-all.zip to C:\Users\Administrator.gradle\wrapper\dists\gradle-4.1-all\6aljcho5ti94cio10aoqa5qqs8
Initialized native services in: C:\Users\Administrator.gradle\native
Removing 0 daemon stop events from registry
Starting a Gradle Daemon (subsequent builds will be faster)
Starting process ‘Gradle build daemon’. Working directory: C:\Users\Administrator.gradle\daemon\4.1 Command: C:\Program Files\Java\jdk1.8.0_131\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.1-all\6aljcho5ti94cio10aoqa5qqs8\gradle-4.1\lib\gradle-launcher-4.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 4.1
Successfully started process ‘Gradle build daemon’
An attempt to start the daemon took 1.576 secs.
The client will now receive all logging from the daemon (pid: 13112). The daemon log file: C:\Users\Administrator.gradle\daemon\4.1\daemon-13112.out.log
Starting build in new daemon [memory: 954.7 MB]
Using 8 worker leases.
Creating new cache for fileHashes, path C:\Users\Administrator.gradle\caches\4.1\fileHashes\fileHashes.bin, access org.gradle.cache.internal.DefaultCacheAccess@58107fdc
Creating new cache for resourceHashesCache, path C:\Users\Administrator.gradle\caches\4.1\fileHashes\resourceHashesCache.bin, access org.gradle.cache.internal.DefaultCacheAccess@58107fdc
Creating new cache for fileHashes, path D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\4.1\fileHashes\fileHashes.bin, access org.gradle.cache.internal.DefaultCacheAccess@782cadb
Creating new cache for plugin-use-metadata, path C:\Users\Administrator.gradle\caches\4.1\plugin-resolution\plugin-use-metadata.bin, access org.gradle.cache.internal.DefaultCacheAccess@2d9c28c2
Creating new cache for client-status, path C:\Users\Administrator.gradle\caches\4.1\plugin-resolution\client-status.bin, access org.gradle.cache.internal.DefaultCacheAccess@2d9c28c2
Starting Build
Compiling settings file ‘D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle’ using SubsetScriptTransformer.
Compiling settings file ‘D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle’ using BuildScriptTransformer.
Settings evaluated using settings file ‘D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle’.
Projects loaded. Root project using build file ‘D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio\build.gradle’.
Included projects: [root project ‘proj.android-studio’, project ‘:hello_world’, project ‘:libcocos2dx’]
Parallel execution is an incubating feature.
Evaluating root project ‘proj.android-studio’ using build file ‘D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio\build.gradle’.
Compiling build file ‘D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio\build.gradle’ using SubsetScriptTransformer.
Creating new cache for metadata-1.1/results, path C:\Users\Administrator.gradle\caches\transforms-1\metadata-1.1\results.bin, access org.gradle.cache.internal.DefaultCacheAccess@8c91d8b
Creating new cache for metadata-2.23/module-metadata, path C:\Users\Administrator.gradle\caches\modules-2\metadata-2.23\module-metadata.bin, access org.gradle.cache.internal.DefaultCacheAccess@36bea659
Creating new cache for metadata-2.23/artifact-at-url, path C:\Users\Administrator.gradle\caches\modules-2\metadata-2.23\artifact-at-url.bin, access org.gradle.cache.internal.DefaultCacheAccess@36bea659
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle-core/3.0.0/gradle-core-3.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint/26.0.0/lint-26.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/external/org-jetbrains/uast/26.0.0/uast-26.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/databinding/compilerCommon/3.0.0/compilerCommon-3.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.pom
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.1.3-2/kotlin-stdlib-1.1.3-2.pom]
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.0.0/builder-3.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle-api/3.0.0/gradle-api-3.0.0.pom
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/ow2/asm/asm/5.1/asm-5.1.pom]
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-analysis/5.1/asm-analysis-5.1.pom]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.1.3-2/kotlin-stdlib-1.1.3-2.jar]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/org/ow2/asm/asm/5.1/asm-5.1.jar]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-analysis/5.1/asm-analysis-5.1.jar]
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-util/5.1/asm-util-5.1.pom]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-commons/5.1/asm-commons-5.1.jar]
Download https://jcenter.bintray.com/org/ow2/asm/asm-analysis/5.1/asm-analysis-5.1.pom
Download https://jcenter.bintray.com/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-parent/5.1/asm-parent-5.1.pom]
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/jacoco/org.jacoco.build/0.7.4.201502262128/org.jacoco.build-0.7.4.201502262128.pom]
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.jar]
Download https://jcenter.bintray.com/org/ow2/asm/asm-parent/5.1/asm-parent-5.1.pom
Download https://jcenter.bintray.com/org/jacoco/org.jacoco.build/0.7.4.201502262128/org.jacoco.build-0.7.4.201502262128.pom
Download https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/5.3.3/proguard-gradle-5.3.3.pom
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/ow2/ow2/1.3/ow2-1.3.pom]
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/ow2/ow2/1.3/ow2-1.3.pom]
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/net/sf/proguard/proguard-parent/5.3.3/proguard-parent-5.3.3.pom]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/org/ow2/ow2/1.3/ow2-1.3.jar]
Download https://jcenter.bintray.com/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/org/ow2/ow2/1.3/ow2-1.3.jar]
Creating new cache for metadata-2.23/artifact-at-repository, path C:\Users\Administrator.gradle\caches\modules-2\metadata-2.23\artifact-at-repository.bin, access org.gradle.cache.internal.DefaultCacheAccess@36bea659
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/net/sf/proguard/proguard-parent/5.3.3/proguard-parent-5.3.3.jar]
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.pom]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.jar]
Download https://jcenter.bintray.com/net/sf/proguard/proguard-parent/5.3.3/proguard-parent-5.3.3.pom
Download https://jcenter.bintray.com/org/ow2/ow2/1.3/ow2-1.3.pom
Download https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.pom
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/com/google/protobuf/protobuf-parent/3.0.0/protobuf-parent-3.0.0.pom]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/com/google/protobuf/protobuf-parent/3.0.0/protobuf-parent-3.0.0.jar]
Download https://jcenter.bintray.com/com/google/protobuf/protobuf-parent/3.0.0/protobuf-parent-3.0.0.pom
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/com/google/google/1/google-1.pom]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/com/google/google/1/google-1.jar]
Download https://jcenter.bintray.com/com/google/google/1/google-1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/manifest-merger/26.0.0/manifest-merger-26.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/protos/26.0.0/protos-26.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/sdklib/26.0.0/sdklib-26.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/26.0.0/ddmlib-26.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/26.0.0/sdk-common-26.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-test-api/3.0.0/builder-test-api-3.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/common/26.0.0/common-26.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-model/3.0.0/builder-model-3.0.0.pom
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom]
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-tree/5.1/asm-tree-5.1.pom]
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.pom]
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.pom]
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.pom]
Download https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/26.0.0/tracker-26.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/shared/26.0.0/shared-26.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/apksig/3.0.0/apksig-3.0.0.pom
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/com/squareup/javawriter/2.5.0/javawriter-2.5.0.jar]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.jar]
Download https://jcenter.bintray.com/org/ow2/asm/asm-tree/5.1/asm-tree-5.1.pom
Download https://jcenter.bintray.com/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.pom
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/eclipse/jdt/core/compiler/ecj/4.6.1/ecj-4.6.1.pom]
Download https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-checks/26.0.0/lint-checks-26.0.0.pom
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/org/eclipse/jdt/core/compiler/ecj/4.6.1/ecj-4.6.1.jar]
Download https://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.6.1/ecj-4.6.1.pom
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/com/google/guava/guava/22.0/guava-22.0.pom]
Download https://jcenter.bintray.com/org/apache/commons/commons-parent/22/commons-parent-22.pom
Download https://jcenter.bintray.com/org/apache/commons/commons-parent/5/commons-parent-5.pom
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/apache/apache/4/apache-4.pom]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/org/apache/apache/4/apache-4.jar]
Download https://jcenter.bintray.com/org/apache/apache/4/apache-4.pom
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.pom]
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-reflect/1.1.3-2/kotlin-reflect-1.1.3-2.pom]
Download https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/26.0.0/intellij-core-26.0.0.pom
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.jar]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-reflect/1.1.3-2/kotlin-reflect-1.1.3-2.jar]
Download https://jcenter.bintray.com/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.1.3-2/kotlin-reflect-1.1.3-2.pom
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom]
Resource missing. [HTTP HEAD: https://dl.google.com/dl/android/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar]
Download https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/annotations/26.0.0/annotations-26.0.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle-api/3.0.0/gradle-api-3.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/external/org-jetbrains/uast/26.0.0/uast-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint/26.0.0/lint-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle-core/3.0.0/gradle-core-3.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.0.0/builder-3.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-checks/26.0.0/lint-checks-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-api/26.0.0/lint-api-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/manifest-merger/26.0.0/manifest-merger-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/databinding/compilerCommon/3.0.0/compilerCommon-3.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/26.0.0/sdk-common-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/repository/26.0.0/repository-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/sdklib/26.0.0/sdklib-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.jar
Download https://jcenter.bintray.com/org/ow2/asm/asm-analysis/5.1/asm-analysis-5.1.jar
Download https://jcenter.bintray.com/org/ow2/asm/asm-commons/5.1/asm-commons-5.1.jar
Download https://jcenter.bintray.com/org/ow2/asm/asm-util/5.1/asm-util-5.1.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.1.3-2/kotlin-stdlib-1.1.3-2.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.1.3-2/kotlin-reflect-1.1.3-2.jar
Download https://jcenter.bintray.com/org/ow2/asm/asm/5.1/asm-5.1.jar
Download https://jcenter.bintray.com/org/ow2/asm/asm-tree/5.1/asm-tree-5.1.jar
Download https://jcenter.bintray.com/org/jacoco/org.jacoco.core/0.7.4.201502262128/org.jacoco.core-0.7.4.201502262128.jar
Download https://jcenter.bintray.com/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.jar
Download https://jcenter.bintray.com/org/jacoco/org.jacoco.report/0.7.4.201502262128/org.jacoco.report-0.7.4.201502262128.jar
Download https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/5.3.3/proguard-gradle-5.3.3.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/26.0.0/tracker-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/shared/26.0.0/shared-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/protos/26.0.0/protos-26.0.0.jar
Download https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-model/3.0.0/builder-model-3.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-test-api/3.0.0/builder-test-api-3.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/26.0.0/ddmlib-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/layoutlib/layoutlib-api/26.0.0/layoutlib-api-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/dvlib/26.0.0/dvlib-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/common/26.0.0/common-26.0.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/apksig/3.0.0/apksig-3.0.0.jar
Download https://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.jar
Download https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.jar
Download https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.jar
Download https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.jar
Download https://jcenter.bintray.com/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.jar
Download https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.jar
Download https://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.6.1/ecj-4.6.1.jar
Download https://jcenter.bintray.com/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.jar
Download https://jcenter.bintray.com/com/google/guava/guava/22.0/guava-22.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/databinding/baseLibrary/3.0.0/baseLibrary-3.0.0.jar
Download https://jcenter.bintray.com/org/antlr/antlr4/4.5.3/antlr4-4.5.3.jar
Download https://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.jar
Download https://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/annotations/26.0.0/annotations-26.0.0.jar
Download https://jcenter.bintray.com/org/jetbrains/annotations/13.0/annotations-13.0.jar
Download https://jcenter.bintray.com/net/sf/proguard/proguard-base/5.3.3/proguard-base-5.3.3.jar
Download https://jcenter.bintray.com/com/google/code/gson/gson/2.3/gson-2.3.jar
Download https://jcenter.bintray.com/org/apache/commons/commons-compress/1.12/commons-compress-1.12.jar
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.2.6/httpclient-4.2.6.jar
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.jar
Download https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar
Download https://jcenter.bintray.com/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
Download https://jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar
Download https://jcenter.bintray.com/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
Download https://jcenter.bintray.com/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar
Download https://jcenter.bintray.com/com/intellij/annotations/12.0/annotations-12.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/26.0.0/intellij-core-26.0.0.jar
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.2.5/httpcore-4.2.5.jar
Download https://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
Download https://jcenter.bintray.com/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
Download https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
Compiling build file ‘D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio\build.gradle’ using BuildScriptTransformer.
Evaluating project ‘:hello_world’ using build file ‘D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build.gradle’.
Compiling build file ‘D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build.gradle’ using SubsetScriptTransformer.
Compiling build file ‘D:\Resources\cocos\test4\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build.gradle’ using BuildScriptTransformer.
Creating configuration androidTestUtil
Creating configuration compile
Creating configuration apk
Creating configuration provided
Creating configuration api
Creating configuration implementation
Creating configuration runtimeOnly
Creating configuration compileOnly
Creating configuration wearApp
Creating configuration annotationProcessor
Creating configuration androidTestCompile
Creating configuration androidTestApk
Creating configuration androidTestProvided
Creating configuration androidTestApi
Creating configuration androidTestImplementation
Creating configuration androidTestRuntimeOnly
Creating configuration androidTestCompileOnly
Creating configuration androidTestWearApp
Creating configuration androidTestAnnotationProcessor
Creating configuration testCompile
Creating configuration testApk
Creating configuration testProvided
Creating configuration testApi
Creating configuration testImplementation
Creating configuration testRuntimeOnly
Creating configuration testCompileOnly
Creating configuration testWearApp
Creating configuration testAnnotationProcessor
Creating configuration debugCompile
Creating configuration debugApk
Creating configuration debugProvided
Creating configuration debugApi
Creating configuration debugImplementation
Creating configuration debugRuntimeOnly
Creating configuration debugCompileOnly
Creating configuration debugWearApp
Creating configuration debugAnnotationProcessor
Creating configuration androidTestDebugCompile
Creating configuration androidTestDebugApk
Creating configuration androidTestDebugProvided
Creating configuration androidTestDebugApi
Creating configuration androidTestDebugImplementation
Creating configuration androidTestDebugRuntimeOnly
Creating configuration androidTestDebugCompileOnly
Creating configuration androidTestDebugWearApp
Creating configuration androidTestDebugAnnotationProcessor
Creating configuration testDebugCompile
Creating configuration testDebugApk
Creating configuration testDebugProvided
Creating configuration testDebugApi
Creating configuration testDebugImplementation
Creating configuration testDebugRuntimeOnly
Creating configuration testDebugCompileOnly
Creating configuration testDebugWearApp
Creating configuration testDebugAnnotationProcessor
Creating configuration releaseCompile
Creating configuration releaseApk
Creating configuration releaseProvided
Creating configuration releaseApi
Creating configuration releaseImplementation
Creating configuration releaseRuntimeOnly
Creating configuration releaseCompileOnly
Creating configuration releaseWearApp
Creating configuration releaseAnnotationProcessor
Creating configuration testReleaseCompile
Creating configuration testReleaseApk
Creating configuration testReleaseProvided
Creating configuration testReleaseApi
Creating configuration testReleaseImplementation
Creating configuration testReleaseRuntimeOnly
Creating configuration testReleaseCompileOnly
Creating configuration testReleaseWearApp
Creating configuration testReleaseAnnotationProcessor
Configuration ‘compile’ in project ‘:hello_world’ is deprecated. Use ‘implementation’ instead.
Parsing the SDK, no caching allowed
Parsing legacy package: E:\cocos\adt-bundle-windows-x86\sdk\build-tools\android-4.4
Observed package id ‘build-tools;19.0.0’ in inconsistent location ‘E:\cocos\adt-bundle-windows-x86\sdk\build-tools\android-4.4’ (Expected ‘E:\cocos\adt-bundle-windows-x86\sdk\build-tools\19.0.0’)
Parsing legacy package: E:\cocos\adt-bundle-windows-x86\sdk\extras\android\support
Parsing legacy package: E:\cocos\adt-bundle-windows-x86\sdk\platform-tools
Parsing legacy package: E:\cocos\adt-bundle-windows-x86\sdk\platforms\android-17
Parsing legacy package: E:\cocos\adt-bundle-windows-x86\sdk\platforms\android-19
Parsing legacy package: E:\cocos\adt-bundle-windows-x86\sdk\system-images\android-19\armeabi-v7a
Observed package id ‘system-images;android-19;default;armeabi-v7a’ in inconsistent location ‘E:\cocos\adt-bundle-windows-x86\sdk\system-images\android-19\armeabi-v7a’ (Expected ‘E:\cocos\adt-bundle-windows-x86\sdk\system-images\android-19\default\armeabi-v7a’)
Parsing legacy package: E:\cocos\adt-bundle-windows-x86\sdk\tools
Parsing E:\cocos\adt-bundle-windows-x86\sdk\build-tools\android-4.4\package.xml
Observed package id ‘build-tools;19.0.0’ in inconsistent location ‘E:\cocos\adt-bundle-windows-x86\sdk\build-tools\android-4.4’ (Expected ‘E:\cocos\adt-bundle-windows-x86\sdk\build-tools\19.0.0’)
Parsing E:\cocos\adt-bundle-windows-x86\sdk\extras\android\support\package.xml
Parsing E:\cocos\adt-bundle-windows-x86\sdk\platform-tools\package.xml
Parsing E:\cocos\adt-bundle-windows-x86\sdk\platforms\android-17\package.xml
Parsing E:\cocos\adt-bundle-windows-x86\sdk\platforms\android-19\package.xml
Parsing E:\cocos\adt-bundle-windows-x86\sdk\system-images\android-19\armeabi-v7a\package.xml
Observed package id ‘system-images;android-19;default;armeabi-v7a’ in inconsistent location ‘E:\cocos\adt-bundle-windows-x86\sdk\system-images\android-19\armeabi-v7a’ (Expected ‘E:\cocos\adt-bundle-windows-x86\sdk\system-images\android-19\default\armeabi-v7a’)
Parsing E:\cocos\adt-bundle-windows-x86\sdk\tools\package.xml
Parsing E:\cocos\adt-bundle-windows-x86\sdk\build-tools\android-4.4\package.xml
Observed package id ‘build-tools;19.0.0’ in inconsistent location ‘E:\cocos\adt-bundle-windows-x86\sdk\build-tools\android-4.4’ (Expected ‘E:\cocos\adt-bundle-windows-x86\sdk\build-tools\19.0.0’)
Parsing E:\cocos\adt-bundle-windows-x86\sdk\extras\android\support\package.xml
Parsing E:\cocos\adt-bundle-windows-x86\sdk\platform-tools\package.xml
Parsing E:\cocos\adt-bundle-windows-x86\sdk\platforms\android-17\package.xml
Parsing E:\cocos\adt-bundle-windows-x86\sdk\platforms\android-19\package.xml
Parsing E:\cocos\adt-bundle-windows-x86\sdk\system-images\android-19\armeabi-v7a\package.xml
Observed package id ‘system-images;android-19;default;armeabi-v7a’ in inconsistent location ‘E:\cocos\adt-bundle-windows-x86\sdk\system-images\android-19\armeabi-v7a’ (Expected ‘E:\cocos\adt-bundle-windows-x86\sdk\system-images\android-19\default\armeabi-v7a’)
Parsing E:\cocos\adt-bundle-windows-x86\sdk\tools\package.xml
File E:\cocos\adt-bundle-windows-x86\sdk.android\repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 26.0.2 in E:\cocos\adt-bundle-windows-x86\sdk\licenses
Warning: License for package Android SDK Build-Tools 26.0.2 not accepted.
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project ‘:hello_world’.
You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 26.0.2].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
-
Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 34m 17s
执行命令出错,返回值:1。