flutter引入第三方包没有arm64架构so文件

flutter引入第三方包没有arm64架构so文件时的特殊处理

  1. build.gradle中添加如下配置(abiFilters 视实际情况配置)
	ndk {
          //选择要添加的对应 cpu 类型的 .so 库。
          abiFilters 'armeabi','armeabi-v7a'
      }
  1. 在apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"之前加入如下代码
try {
    project.setProperty('target-platform', 'android-arm')
}catch(e){}
# flutter  

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×