building apk
Please input the absolute/relative path of ".keystore" file:
Traceback (most recent call last):
File "C:\Android\cocos2d-x-3.5\tools\cocos2d-console\bin\/cocos.py", line 859, in <module>
run_plugin(command, argv, plugins)
File "C:\Android\cocos2d-x-3.5\tools\cocos2d-console\bin\/cocos.py", line 817, in run_plugin
plugin.run(argv, dependencies_objects)
File "C:\Android\cocos2d-x-3.5\tools\cocos2d-console\plugins\project_compile\project_compile.py", line 1432, in run
self.build_android()
File "C:\Android\cocos2d-x-3.5\tools\cocos2d-console\plugins\project_compile\project_compile.py", line 440, in build_android
self.apk_path = builder.do_build_apk(sdk_root, ant_root, build_mode, output_dir, self._custom_step_args, self)
File "C:\Android\cocos2d-x-3.5\tools\cocos2d-console\plugins\project_compile\build_android.py", line 382, in do_build_apk
self._gather_sign_info()
File "C:\Android\cocos2d-x-3.5\tools\cocos2d-console\plugins\project_compile\build_android.py", line 429, in _gather_sign_info
inputed = self._get_user_input("Please input the absolute/relative path of \".keystore\" file:")
File "C:\Android\cocos2d-x-3.5\tools\cocos2d-console\plugins\project_compile\build_android.py", line 458, in _get_user_input
ret = raw_input()
EOFError: EOF when reading a line
Please use cocos console instead.
Traceback (most recent call last):
File "C:/Android/Game/proj.android/build_native.py", line 43, in <module>
build(opts.build_mode)
File "C:/Android/Game/proj.android/build_native.py", line 28, in build
raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!")
Exception: Build dynamic library for project [ C:\Android\Game\proj.android\../ ] fails!
我試圖建立在Eclipse中的HelloWorld項目,但它給了我這個錯誤時EOF,這裏是顯然會導致此問題(在build_android .py):茯苓2D-X-3.5的錯誤,而建設的apk:引發EOFError:讀一本線
def _get_user_input(self, tip_msg):
cocos.Logging.warning(tip_msg)
ret = None
while True:
ret = raw_input()
break
return ret
我不明白爲什麼它會失敗。
您是否正確輸入.keystore文件路徑? – Chedy2149 2015-04-04 21:01:29
我可以檢查/做它? – lida 2015-04-04 21:08:30
看起來,構建腳本是問你的.keystore文件路徑,試圖只輸入它。 – Chedy2149 2015-04-04 21:10:31