@iceryeah 写道:
win7下,有时候生成apk会成功,有时候会失败,多数重启电脑就可以了。失败时报如下错误:
make.exe: Leaving directory `G:/Project2016/trunk_js/gac/build/jsb-default/frameworks/runtime-src/proj.android'
正在生成 apk 文件...
Traceback (most recent call last):
File "G:\CocosCreator\resources\cocos2d-x\tools\cocos2d-console\bin\cocos.py", line 968, in
run_plugin(command, argv, plugins)
File "G:\CocosCreator\resources\cocos2d-x\tools\cocos2d-console\bin\cocos.py", line 872, in run_plugin
plugin.run(argv, dependencies_objects)
File "G:\CocosCreator\resources\cocos2d-x\tools\cocos2d-console\plugins\plugin_compile\project_compile.py", line 1569, in run
self.build_android()
File "G:\CocosCreator\resources\cocos2d-x\tools\cocos2d-console\plugins\plugin_compile\project_compile.py", line 535, in build_android
self.apk_path = builder.do_build_apk(build_mode, self.noapk, output_dir, self.customstep_args, self)
File "G:\CocosCreator\resources\cocos2d-x\tools\cocos2d-console\plugins\plugin_compile\build_android.py", line 549, in do_build_apk
self.copyresources(custom_step_args, assets_dir)
File "G:\CocosCreator\resources\cocos2d-x\tools\cocos2d-console\plugins\plugin_compile\build_android.py", line 662, in copyresources
os.mkdir(assets_dir)
WindowsError: [Error 5] : 'G:\Project2016\trunk_js\gac\build\jsb-default\frameworks\runtime-src\proj.android\assets'我发现是runtime-src目录下的文件没有生成,但不知道具体原因
帖子: 3
参与者: 1