因为我是新手,所以请尽可能简单地回答。非常感谢
控制台日志:
> 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'发布于 2019-09-22 23:20:57
我见过很多像你这样的cocos2d问题。
=>我已经通过cocos2d-x 3.17.2创建了新Helloworld项目。具有LOCAL_MODULE_FILENAME := libMyGame的jni文件的代码可能是您正在使用最新的cocos2d控制台编译旧项目并导致此错误
https://stackoverflow.com/questions/57589394
复制相似问题