【发布时间】:2019-08-21 10:17:19
【问题描述】:
我是 android 开发和 cocos2dx 的新手,所以需要一些帮助。起初我试图从 Android Studio 运行项目,但游戏因某种错误“找不到”libcocos2dcpp.so“而崩溃在我的任何架构文件夹中都没有 libcocos2dcpp.so。所以有人建议我首先使用控制台构建项目,它将在架构文件夹中生成该文件。 但是当我尝试通过控制台编译代码时,在成功构建过程后出现此错误,我没有得到 apk 文件,也没有生成任何 libcocos2dcpp.so 文件。
由于我是新手,所以请尽可能简单地回答。非常感谢你
控制台日志:
> BUILD SUCCESSFUL in 2m 15s 106 actionable tasks: 1 executed, 105
> up-to-date Traceback (most recent call last): File
> "C:\Users\fahad\Desktop\envriomentsetup\cocos2d-x-3.17.2\cocos2d-x-3.17.2
> \tools\cocos2d-console\bin\/cocos.py", line 1081, in <module>
> run_plugin(command, argv, plugins) File "C:\Users\fahad\Desktop\envriomentsetup\cocos2d-x-3.17.2\cocos2d-x-3.17.2
> \tools\cocos2d-console\bin\/cocos.py", line 970, in run_plugin
> plugin.run(argv, dependencies_objects) File "C:\Users\fahad\Desktop\envriomentsetup\cocos2d-x-3.17.2\cocos2d-x-3.17.2
> \tools\cocos2d-console\plugins\plugin_compile\project_compile.py",
> line 1530, in run
> self.build_android() File "C:\Users\fahad\Desktop\envriomentsetup\cocos2d-x-3.17.2\cocos2d-x-3.17.2
> \tools\cocos2d-console\plugins\plugin_compile\project_compile.py",
> line 540, in build_android
> self.apk_path = builder.do_build_apk(build_mode, self._no_apk, self._no_sign , output_dir, self._custom_step_args, self._ap, self)
> File
> "C:\Users\fahad\Desktop\envriomentsetup\cocos2d-x-3.17.2\cocos2d-x-3.17.2
> \tools\cocos2d-console\plugins\plugin_compile\build_android.py", line
> 571, in do_build_apk
> shutil.copy(gen_apk_path, output_dir) File "C:\Python27\lib\shutil.py", line 139, in copy
> copyfile(src, dst) File "C:\Python27\lib\shutil.py", line 96, in copyfile
> with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory:
> 'C:\\Users\\fahad\\Desktop\\projectsteam\\proj.android\\app/build/outputs/apk\\debug\\app-debug.apk'
【问题讨论】:
标签: android cocos2d-x cocos2d-x-3.0 cocos2d-android