@mr_i 写道:
使用cocos compile 编译android stuido,无法编译apk
443行函数报错
AndroidStudio 工程 Application.mk 位置修改成这样就可以使用,望修复
def _get_build_type(self, param_of_appabi): # get build type from parameter if param_of_appabi: return self._do_get_build_type(param_of_appabi)
# get build type from Application.mk 修复 if self.use_studio: applicationmk_path= os.path.join(self.app_android_root, "app/jni/Application.mk") else: applicationmk_path = os.path.join(self.app_android_root, "jni/Application.mk")
with open(applicationmk_path) as f: for line in f: if line.find('APP_ABI') == -1: continue build_type = self._do_get_build_type(line) if build_type != self.LuaBuildType.UNKNOWN: return build_type return self.LuaBuildType.UNKNOWN
帖子: 2
参与者: 1