Cocos creator的android打包失败问题

无名者
Wed, 23 May 2018 12:19:08 +0000

编译模式：release
使用 Android Studio 工程：D:\NewProject1\build\jsb-link\frameworks\runtime-src\proj.android-studio
正在执行：’“D:\Android-SDK\tools\android” update project -t android-10 -p D:\NewProject1\build\jsb-link\frameworks\runtime-src\proj.android-studio\app’

‘xcopy’ 不是内部或外部命令，也不是可运行的程序
或批处理文件。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
Updated project.properties
Updated local.properties
No project name specified, using Activity name ‘AppActivity’.
If you wish to change it, edit the first line of build.xml.
Added file D:\NewProject1\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build.xml
Added file D:\NewProject1\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\proguard-project.txt
正在生成 apk 文件…
正在执行：’“D:\NewProject1\build\jsb-link\frameworks\runtime-src\proj.android-studio\gradlew.bat” --parallel --info assembleRelease’

Initialized native services in: C:\Users\saday.gradle\native
The client will now receive all logging from the daemon (pid: 13872). The daemon log file: C:\Users\saday.gradle\daemon\4.1\daemon-13872.out.log
Starting 3rd build in daemon [uptime: 4 hrs 16 mins 58.539 secs, performance: 94%, no major garbage collections]
Using 4 worker leases.
Creating new cache for fileHashes, path D:\NewProject1\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\4.1\fileHashes\fileHashes.bin, access org.gradle.cache.internal.DefaultCacheAccess@1bb161f
Creating new cache for plugin-use-metadata, path C:\Users\saday.gradle\caches\4.1\plugin-resolution\plugin-use-metadata.bin, access org.gradle.cache.internal.DefaultCacheAccess@3993c509
Creating new cache for client-status, path C:\Users\saday.gradle\caches\4.1\plugin-resolution\client-status.bin, access org.gradle.cache.internal.DefaultCacheAccess@3993c509
Starting Build
Compiling settings file ‘D:\NewProject1\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle’ using SubsetScriptTransformer.
Compiling settings file ‘D:\NewProject1\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle’ using BuildScriptTransformer.
Settings evaluated using settings file ‘D:\NewProject1\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle’.
Projects loaded. Root project using build file ‘D:\NewProject1\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:\NewProject1\build\jsb-link\frameworks\runtime-src\proj.android-studio\build.gradle’.
Creating new cache for metadata-1.1/results, path C:\Users\saday.gradle\caches\transforms-1\metadata-1.1\results.bin, access org.gradle.cache.internal.DefaultCacheAccess@5f70c021
Creating new cache for metadata-2.23/module-metadata, path C:\Users\saday.gradle\caches\modules-2\metadata-2.23\module-metadata.bin, access org.gradle.cache.internal.DefaultCacheAccess@3d79c539
Creating new cache for metadata-2.23/artifact-at-repository, path C:\Users\saday.gradle\caches\modules-2\metadata-2.23\artifact-at-repository.bin, access org.gradle.cache.internal.DefaultCacheAccess@3d79c539
Evaluating project ‘:hello_world’ using build file ‘D:\NewProject1\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build.gradle’.
Compiling build file ‘D:\NewProject1\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build.gradle’ using SubsetScriptTransformer.
Compiling build file ‘D:\NewProject1\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 D:\Android-SDK\build-tools\22.0.1\package.xml
Parsing D:\Android-SDK\build-tools\android-4.4W\package.xml
Observed package id ‘build-tools;20.0.0’ in inconsistent location ‘D:\Android-SDK\build-tools\android-4.4W’ (Expected ‘D:\Android-SDK\build-tools\20.0.0’)
Parsing D:\Android-SDK\extras\android\support\package.xml
Parsing D:\Android-SDK\extras\google\google_play_services\package.xml
Parsing D:\Android-SDK\platform-tools\package.xml
Parsing D:\Android-SDK\platforms\android-10\package.xml
Parsing D:\Android-SDK\platforms\android-20\package.xml
Parsing D:\Android-SDK\platforms\android-22\package.xml
Parsing D:\Android-SDK\tools\package.xml
Checking the license for package Android SDK Build-Tools 26.0.2 in D:\Android-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 11s
执行命令出错，返回值：1。

阅读整个主题