问题描述
- cocos2d-x移植安卓的一个问题实在是找不到解决途径了
-
Updated project.properties
Updated local.properties
Updated file D:CocosDevelopPopStarsproj.android..cocos2dcocosplatformandroidjavaproguard-project.txt
Traceback (most recent call last):
File "D:cocos2d-x-3.2toolscocos2d-consolebin/cocos.py", line 504, in
run_plugin(command, argv, plugins)
File "D:cocos2d-x-3.2toolscocos2d-consolebin/cocos.py", line 469, in run_plugin
dependencies_objects[dep_name] = run_plugin(dep_name, argv, plugins)
File "D:cocos2d-x-3.2toolscocos2d-consolebin/cocos.py", line 469, in run_plugin
dependencies_objects[dep_name] = run_plugin(dep_name, argv, plugins)
File "D:cocos2d-x-3.2toolscocos2d-consolebin/cocos.py", line 471, in run_plugin
plugin.run(argv, dependencies_objects)
File "D:cocos2d-x-3.2toolscocos2d-consolebin..pluginsproject_compileproject_compile.py", line 1075, in run
self.build_android()
File "D:cocos2d-x-3.2toolscocos2d-consolebin..pluginsproject_compileproject_compile.py", line 332, in build_android
self.apk_path = builder.do_build_apk(sdk_root, ant_root, self._ap, build_mode, output_dir, self._custom_step_args, self)
File "D:cocos2d-x-3.2toolscocos2d-consolebin..pluginsproject_compilebuild_android.py", line 307, in do_build_apk
self._copy_resources(custom_step_args)
File "D:cocos2d-x-3.2toolscocos2d-consolebin..pluginsproject_compilebuild_android.py", line 445, in _copy_resources
shutil.rmtree(assets_dir)
File "C:Python27libshutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:Python27libshutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:Python27libshutil.py", line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "C:Python27libshutil.py", line 250, in rmtree
os.remove(fullname)
WindowsError: [Error 5] : 'D:CocosDevelopPopStarsproj.androidassetsstars.svnall-wcprops'是在做消灭星星时候遇到,PC正常运行,当我PC上实现音乐播放之后就出错了,另外在游戏中也用到了自己使用cocostudio制作的UI,
解决方案
这种移植肯定是要手工参与进去的。不可能完全依赖一个自动的程序来转换。特别是你依赖的库不全的情况下,你需要手工来处理这些外部的调用。
时间: 2024-10-03 17:00:01