Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

cocos2dx-3.14

$
0
0

@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

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>