gpt4 book ai didi

android - 错误 : Program type already present: org. intellij.lang.annotations.JdkConstants$PatternFlags 3

转载 作者:行者123 更新时间:2023-12-01 14:03:53 34 4
gpt4 key购买 nike

我仍然坚持这个错误。我删除了构建文件夹 .gradle 文件夹和 毕业 文件夹。构建时仍然出现相同的错误。我没有什么可以尝试的想法。这是我目前的 build.gradle(应用级别)

apply plugin: 'com.android.application'

configurations {
cleanedAnnotations
compile.exclude group: 'org.jetbrains' , module:'annotations'
}

android {
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}

compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId 'ch.workouttracker'
minSdkVersion 24
targetSdkVersion 28
multiDexEnabled true
versionCode 1
versionName "0.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
resConfigs "de" // And any other languages you support
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

packagingOptions{
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES'

}
defaultConfig {
vectorDrawables.useSupportLibrary = true

}
productFlavors {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}


allprojects {
repositories {
maven { url = "https://maven.fabric.io/public" }
}
}

dependencies {

implementation fileTree(include: ['*.jar'], dir: 'libs')
//Firebase
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
//Graphview
implementation 'com.jjoe64:graphview:4.2.1'
implementation 'org.apache.commons:commons-lang3:3.4'
//Google Play
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.android.gms:play-services-identity:16.0.0'
//FirebaseUI
implementation 'com.firebaseui:firebase-ui-auth:4.1.0'
implementation 'com.firebaseui:firebase-ui-storage:1.2.0'
implementation 'com.facebook.android:facebook-android-sdk:4.27.0'
implementation 'com.twitter.sdk.android:twitter-core:3.1.1'
//Support
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:support-core-utils:27.1.1'
implementation 'com.android.support:support-media-compat:27.1.1 '
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:gridlayout-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:preference-v7:27.1.1'
//Firebase
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.8'
implementation 'com.google.firebase:firebase-plugins:1.1.5'
implementation 'com.android.support:multidex:1.0.3'
}

apply plugin: 'com.google.gms.google-services'

com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true


你有什么想法我可以尝试下一步吗?欢迎任何想法,我不知道我还能尝试什么。我一直在开发,但我无法再构建它,这使得它很难退出。

最佳答案

我真的不知道有什么问题。我试图在谷歌上搜索找到一些解决方案。

我想出的唯一一件事是请在您的应用程序级别添加以下行 构建.gradle。

configurations {
cleanedAnnotations
compile.exclude group: 'org.jetbrains' , module:'annotations'
}

希望这会有所帮助。我在等你的答复。

关于android - 错误 : Program type already present: org. intellij.lang.annotations.JdkConstants$PatternFlags 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53969579/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com