我現在想我端口的1.x的cocos2d項目的一個使用Apportable,混得編譯階段以下錯誤:Apportable從項目的cocos2d錯誤移植
apk = env.BuildAPK(os.path.join(env['VARIANT_DIR'], env['APPLICATION_NAME'], config['APPLICATION_NAME'] + '.apk'), lib, assets + env['LIBRARY_ASSETS'])
File "/Users/*user*/.apportable/SDK/lib/scons/engine/SCons/Environment.py", line 223, in __call__
return self.method(*nargs, **kwargs)
File "/Users/*user*/.apportable/SDK/site_scons/android/sdk.py", line 1123, in APKBuilder
packaged = ResourcesFinalize(env, target=res_apk_path, source=source, assets=assets)
File "/Users/*user*/.apportable/SDK/site_scons/android/sdk.py", line 922, in ResourcesFinalize
all_assets = RemapAssetList(env, assets)
File "/Users/*user*/.apportable/SDK/site_scons/android/sdk.py", line 847, in RemapAssetList
(remap, target) = Remap(env, asset, target)
File "/Users/*user*/.apportable/SDK/site_scons/android/sdk.py", line 723, in Remap
(base, ext) = os.path.splitext(str(source))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0421' in position 58: ordinal not in range(128)
它是SDK的問題還是我的源代碼有解決方案來解決它?
只是一個猜測,您的項目名稱或路徑是否有任何非ASCII字符? – LearnCocos2D