Java I';我发现多个文件有问题,且文件的路径与操作系统无关';META-INF/NOTICE.md
即使我使用了packageoptions,我仍然会遇到这个错误。 错误: 发现多个文件具有独立于操作系统的路径“META-INF/NOTICE.md”。 谢谢Java I';我发现多个文件有问题,且文件的路径与操作系统无关';META-INF/NOTICE.md,java,android,database,firebase,gradle,Java,Android,Database,Firebase,Gradle,即使我使用了packageoptions,我仍然会遇到这个错误。 错误: 发现多个文件具有独立于操作系统的路径“META-INF/NOTICE.md”。 谢谢 build.gradle(:app) buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:g
build.gradle(:app)
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.31.2'
}
}
apply plugin: 'com.android.application'
//apply plugin: 'kotlin-android-extensions'
//apply plugin: 'kotlin-android'
repositories {
maven { url 'https://maven.fabric.io/public' }
mavenCentral()
}
android {
compileSdkVersion 30
buildToolsVersion '28.0.3'
defaultConfig {
applicationId 'com.transasia.ctrack'
minSdkVersion 16
targetSdkVersion 30
versionCode 42
versionName "3.5.5"
multiDexEnabled true
}
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'
}
productFlavors {
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation files('libs/jsch-0.1.42.jar')
//noinspection GradleCompatible
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.recyclerview:recyclerview:1.2.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'com.google.android.gms:play-services-places:17.0.0'
implementation 'com.github.bumptech.glide:glide:4.12.0'
implementation 'com.sun.mail:android-mail:1.6.7'
implementation 'com.mcxiaoke.volley:library-aar:1.0.1'
implementation 'com.google.firebase:firebase-core:18.0.3'
implementation 'com.firebaseui:firebase-ui:7.1.1'
implementation 'com.firebaseui:firebase-ui-auth:7.1.1'
implementation 'com.google.firebase:firebase-auth:20.0.4'
implementation 'com.google.firebase:firebase-database:19.7.0'
implementation 'com.google.firebase:firebase-messaging:21.1.0'
implementation 'com.google.android.gms:play-services-base:17.6.0'
implementation 'com.google.android.gms:play-services-location:18.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.github.barteksc:android-pdf-viewer:3.0.0-beta.3'
implementation 'androidx.cardview:cardview:1.0.0'
testImplementation 'junit:junit:4.13.2'
// implementation('com.crashlytics.sdk.android:crashlytics:17.4.1@aar') {
// transitive = true
// }
// implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
apply plugin: 'com.google.gms.google-services'