AGPBI: {"kind":"error","text":"Program type already present: android.support.v4.os.ResultReceiver...

错误

使用androidx支持库有可能出现如下错误
AGPBI: {"kind":"error","text":"Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver","sources":[{}],"tool":"D8"}

解决:

在gradle.properties加上如下配置

 android.useAndroidX=true
 android.enableJetifier=true

你可能感兴趣的:(AGPBI: {"kind":"error","text":"Program type already present: android.support.v4.os.ResultReceiver...)