游戏里之前用的是 androidx.core.content.FileProvider 包,但是在Android 9以上的时候我们写的一个功能失效了…排查之后决定换成 android.support.v4.content.FileProvider 这个包, 在build的之后报错了
错误: 程序包android.support.v4.content不存在
这个时候看下gradle.properties 里面是不是多了
android.useAndroidX=true
android.enableJetifier=true
这两句,把这两句干掉就可以了
错误: 程序包android.support.v4.content不存在
重新build ,成功了!错误: 程序包android.support.v4.content不存在

相关文章:

  • 2022-01-15
  • 2021-07-20
  • 2021-05-09
  • 2021-12-25
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案