GKLBB

当你经历了暴风雨,你也就成为了暴风雨

导航

常见问题解决 --- Failed to build android app at server - class file for android.support.v4.app.Fragment not found

问题原因

    这个错误主要是LocalBroadcastManager这个类被弃用了,而在库或者sdk中使用到了。

解决办法

build.gradle文件中添加

implementation 'com.android.support:support-v4:30.4.1'

gradle.properties添加

android.enableJetifier=true

posted on 2023-05-24 21:00  GKLBB  阅读(149)  评论(0)    收藏  举报