Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88866

关于CocosCreator构建Android时报错的问题

$
0
0

@1623418595 写道:

大家好,这里是一个刚刚接触cocox不久的萌新,昨天跟着教程构建了自己的第一个小游戏,但是在android编译时报错了,接下来我打开了一个新项目(HelloWorld)然后点击安卓的构建和编译,出现的一样的问题(日志内What's wrong报一样的错误)电脑上NDK,SDK,Android Studio,JDK,VS都是很早以前就配置好了的,我自己也检查了好多次CocosCreator内的原生开发环境没有问题,以下是日志信息,球球大佬帮忙ww,拜托了!

`编译模式:release
使用 Android Studio 工程:G:\Cocos_2D_Project\Hello_World\build\jsb-link\frameworks\runtime-src\proj.android-studio
正在生成 apk 文件...
正在执行:'"G:\Cocos_2D_Project\Hello_World\build\jsb-link\frameworks\runtime-src\proj.android-studio\gradlew.bat" --parallel --info assembleRelease'

Initialized native services in: C:\Users\Star.gradle\native
The client will now receive all logging from the daemon (pid: 13708). The daemon log file: C:\Users\Star.gradle\daemon\4.10.3\daemon-13708.out.log
Starting 12th build in daemon [uptime: 27 mins 48.606 secs, performance: 99%, no major garbage collections]
Using 8 worker leases.
Starting Build
Compiling settings file 'G:\Cocos_2D_Project\Hello_World\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle' using SubsetScriptTransformer.
Compiling settings file 'G:\Cocos_2D_Project\Hello_World\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle' using BuildScriptTransformer.
Settings evaluated using settings file 'G:\Cocos_2D_Project\Hello_World\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle'.
Projects loaded. Root project using build file 'G:\Cocos_2D_Project\Hello_World\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.

Configure project :
Evaluating root project 'proj.android-studio' using build file 'G:\Cocos_2D_Project\Hello_World\build\jsb-link\frameworks\runtime-src\proj.android-studio\build.gradle'.

Configure project :hello_world
Evaluating project ':hello_world' using build file 'G:\Cocos_2D_Project\Hello_World\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build.gradle'.
Compiling build file 'G:\Cocos_2D_Project\Hello_World\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build.gradle' using SubsetScriptTransformer.
Compiling build file 'G:\Cocos_2D_Project\Hello_World\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build.gradle' using BuildScriptTransformer.
Creating configuration androidTestUtil

FAILURE: Build failed with an exception.

  • Where:
    Build file 'G:\Cocos_2D_Project\Hello_World\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build.gradle' line: 3

  • 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 1s
执行命令出错,返回值:1。
`

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88866

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>