Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
browser type and version: none
i build cocos to android, use android-studio project, android-platforms-tool 25
ubuntu 17.10
Steps to Reproduce:
create a new cocos project
cocos run -p android --android-studio
Traceback (most recent call last):
File "/home/gl/tools/cocos2d-x-3.16/tools/cocos2d-console/bin/cocos.py", line 1072, in <module>
run_plugin(command, argv, plugins)
File "/home/gl/tools/cocos2d-x-3.16/tools/cocos2d-console/bin/cocos.py", line 958, in run_plugin
dep_name, argv, plugins)
File "/home/gl/tools/cocos2d-x-3.16/tools/cocos2d-console/bin/cocos.py", line 958, in run_plugin
dep_name, argv, plugins)
File "/home/gl/tools/cocos2d-x-3.16/tools/cocos2d-console/bin/cocos.py", line 961, in run_plugin
plugin.run(argv, dependencies_objects)
File "/home/gl/tools/cocos2d-x-3.16/tools/cocos2d-console/plugins/plugin_compile/project_compile.py", line 1646, in run
self.build_android()
File "/home/gl/tools/cocos2d-x-3.16/tools/cocos2d-console/plugins/plugin_compile/project_compile.py", line 581, in build_android
self.apk_path = builder.do_build_apk(build_mode, self._no_apk, output_dir, self._custom_step_args, self._ap, self)
File "/home/gl/tools/cocos2d-x-3.16/tools/cocos2d-console/plugins/plugin_compile/build_android.py", line 669, in do_build_apk
shutil.copy(gen_apk_path, output_dir)
File "/usr/lib/python2.7/shutil.py", line 133, in copy
copyfile(src, dst)
File "/usr/lib/python2.7/shutil.py", line 96, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/home/gl/projects/altp-gl/proj.android-studio/app/build/outputs/apk/altp-gl-debug.apk'
I modified file "/home/gl/tools/cocos2d-x-3.16/tools/cocos2d-console/plugins/plugin_compile/project_compile.py",
line 607, change
cocos2d-x version: cocos2d-x-3.16 Cocos Console 2.3
devices test on: Android
developing environments
cocos run -p android --android-studio
to
and it run successfuly