2、修改build_native.py文件
def copy_mmso(app_android_root):
resources_dir = os.path.join(app_android_root,"jni/hellocpp")
armeabi_dir = os.path.join(app_android_root,"libs/armeabi")
for item in os.listdir(resources_dir):
path = os.path.join(resources_dir,item)
# Android can not package the file that ends with ".gz"
if not item.startswith('.') and item.endswith('.so') and os.path.isfile(path):
shutil.copy(path,armeabi_dir)
if __name__ == '__main__':前加上 copy_mmso(app_android_root)
3、编译后lib/armeabi下对应产生mm的库文件则成功
原文链接:https://www.f2er.com/cocos2dx/340210.html