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