android - 已经存在:com.google.android.material.internal.package-info
问题描述
程序类型已经存在:com.google.android.material.internal.package-info Message{kind=ERROR, text=程序类型已经存在:com.google.android.material.internal.package-info,sources=[未知来源文件],工具名称=Optional.of(D8)}
我的 Gradle 文件是
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.app.videostatus"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
aaptOptions {
cruncherEnabled = false
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.android.gms:play-services-ads:11.8.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.aurelhubert:ahbottomnavigation:2.3.4'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.devbrackets.android:exomedia:4.1.0'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.mani:ThinDownloadManager:1.4.0'
implementation 'com.daimajia.numberprogressbar:library:1.4@aar'
implementation 'com.android.support:appcompat-v7:28.0.0'
}
项目 Gradle 是
// 顶级构建文件,您可以在其中添加所有子项目/模块通用的配置选项。
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
如何解决这个问题。有什么建议么?
解决方案
推荐阅读
- html - 闪亮的绘图高度在不同的桌面上表现不同
- javascript - 如何绘制具有多个数据但只有 2 个标签的折线图?
- vue.js - 如何通过用户的 ip 位置重定向用户
- java - 为什么需要动态绑定?
- javascript - Fullcalendar:在获取 JSON 数据时如何为特定事件单独更改事件颜色
- java - 如何在 Google-App 上允许快速发布请求?
- logstash - 将日志从 filebeat 发送到 logstash 错误:无法发布事件,原因是:lumberjack 协议错误
- excel - 使用 Excel 测试范围
- java - List.equals() 是否在覆盖 java.lang.Object.equals() 时执行了预期的行为?
- python - Mongoengine烧瓶获取dbstats