项目中使用了SO库会导致APK安装失败,遇到好几次了,索性写下来加深一下印象。

Failed to extract native libraries, res=-2

需要在AndroidManifest.xml加上android:extractNativeLibs="true"属性,网上有人说是去掉android:extractNativeLibs="false",但是你都没有这个属性。。。

Failed to extract native libraries, res=-2

重新打包安装

Failed to extract native libraries, res=-2

Success

相关文章:

  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2021-10-09
  • 2021-10-25
  • 2021-11-30
  • 2021-06-29
  • 2022-12-23
猜你喜欢
  • 2021-06-28
  • 2022-12-23
  • 2021-09-05
  • 2021-04-15
  • 2021-08-31
  • 2021-05-18
相关资源
相似解决方案