报错:
More than one file was found with OS independent path 'META-INF/proguard/androidx-annotations.pro'
解决方法:
在app.grade文件中的android标签添加packagingOption配置如下配置
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.xpf.ch340_host"
minSdkVersion 19
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
packagingOptions {
exclude 'META-INF/proguard/androidx-annotations.pro'
}
}