java - 发现多个文件的操作系统独立路径为“META-INF/androidx.legacy_legacy-support-core-utils.version”
问题描述
我添加了 BottomNavigationView,然后事情开始变得复杂。我不知道是什么导致了这个错误,当我构建项目时没关系,但是当我想在模拟器中播放应用程序时 - 弹出这个错误。
这是我的 build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.pokrz.x"
minSdkVersion 22
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'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
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.parse:parse-android:1.16.3'
implementation 'com.google.android.material:material:1.0.0-beta01'
}
repositories {
mavenCentral()
}
我不知道我还能做什么。我已经完成了。
解决方案
构建 > 清洁项目帮助了我。
推荐阅读
- python - Qt Drag & Drop 不适用于自定义项目
- java - 如何解决:使用 JdbcTemplate.query(RowMapper;)Ljava/util/List; 容易受到 SQL 注入的攻击(使用 Spring JDBC)
- kubernetes - kubectl : --dry-run 已弃用,可以替换为 --dry-run=client
- java - 如何使用具有三个参数的收集方法,即“收集(供应商,累加器,组合器)”在列表中添加整数
- android - 有没有办法使用带有标头的 API 和 API KEY 使用 Volley 来开发 Android 应用程序?
- security - 使用 fastcgi 缓存时在 NGINX 中添加安全标头
- algorithm - DFS 是否为未加权的有向图生成 MST?
- php - Laravel cURL 错误 6:无法解析主机:oauth
- javascript - 以编程方式获取 Google Apps 脚本中触发器的执行时间
- node.js - 使用 .createServer 制作公共网站