Error: Program type already present: org.intellij.lang.annotations.JdkConstants$FlowLayoutAlignment 3

Multi tool use
Multi tool use












0














I still have this error and no clue what is wrong I cleaned and rebuilded several times. So far i couldn't find a solution.



This is my build.gradle App:



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


Any ideas, suggestions? So far nothing helped me, maybe it's something easy that i am missing. This issue blocks me completly as i can not build, i hope we can find a solution.



I copied the small snippet for this error from different places, to make sure there is not a typo in it, if there is, let me know.










share|improve this question
























  • try to clear the project then delete the gradle folder then go to file > invalidate cache /restart
    – Oussema Aroua
    Dec 27 at 13:32










  • Maybe i did something wrong, i clean the project, closed android studio, cleaned the build folder, restartet android studio and did a build, the same error, what gradle folder?
    – Christian Bohli
    Dec 27 at 13:45
















0














I still have this error and no clue what is wrong I cleaned and rebuilded several times. So far i couldn't find a solution.



This is my build.gradle App:



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


Any ideas, suggestions? So far nothing helped me, maybe it's something easy that i am missing. This issue blocks me completly as i can not build, i hope we can find a solution.



I copied the small snippet for this error from different places, to make sure there is not a typo in it, if there is, let me know.










share|improve this question
























  • try to clear the project then delete the gradle folder then go to file > invalidate cache /restart
    – Oussema Aroua
    Dec 27 at 13:32










  • Maybe i did something wrong, i clean the project, closed android studio, cleaned the build folder, restartet android studio and did a build, the same error, what gradle folder?
    – Christian Bohli
    Dec 27 at 13:45














0












0








0







I still have this error and no clue what is wrong I cleaned and rebuilded several times. So far i couldn't find a solution.



This is my build.gradle App:



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


Any ideas, suggestions? So far nothing helped me, maybe it's something easy that i am missing. This issue blocks me completly as i can not build, i hope we can find a solution.



I copied the small snippet for this error from different places, to make sure there is not a typo in it, if there is, let me know.










share|improve this question















I still have this error and no clue what is wrong I cleaned and rebuilded several times. So far i couldn't find a solution.



This is my build.gradle App:



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


Any ideas, suggestions? So far nothing helped me, maybe it's something easy that i am missing. This issue blocks me completly as i can not build, i hope we can find a solution.



I copied the small snippet for this error from different places, to make sure there is not a typo in it, if there is, let me know.







android gradle






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 27 at 13:27









Ali

1,72721030




1,72721030










asked Dec 27 at 13:25









Christian Bohli

42210




42210












  • try to clear the project then delete the gradle folder then go to file > invalidate cache /restart
    – Oussema Aroua
    Dec 27 at 13:32










  • Maybe i did something wrong, i clean the project, closed android studio, cleaned the build folder, restartet android studio and did a build, the same error, what gradle folder?
    – Christian Bohli
    Dec 27 at 13:45


















  • try to clear the project then delete the gradle folder then go to file > invalidate cache /restart
    – Oussema Aroua
    Dec 27 at 13:32










  • Maybe i did something wrong, i clean the project, closed android studio, cleaned the build folder, restartet android studio and did a build, the same error, what gradle folder?
    – Christian Bohli
    Dec 27 at 13:45
















try to clear the project then delete the gradle folder then go to file > invalidate cache /restart
– Oussema Aroua
Dec 27 at 13:32




try to clear the project then delete the gradle folder then go to file > invalidate cache /restart
– Oussema Aroua
Dec 27 at 13:32












Maybe i did something wrong, i clean the project, closed android studio, cleaned the build folder, restartet android studio and did a build, the same error, what gradle folder?
– Christian Bohli
Dec 27 at 13:45




Maybe i did something wrong, i clean the project, closed android studio, cleaned the build folder, restartet android studio and did a build, the same error, what gradle folder?
– Christian Bohli
Dec 27 at 13:45

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53945847%2ferror-program-type-already-present-org-intellij-lang-annotations-jdkconstants%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53945847%2ferror-program-type-already-present-org-intellij-lang-annotations-jdkconstants%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







V5 Cw 4jCsSP06Kg5pzH1e,c,WyoKZaCQrbyZx54xMrt3RcoKN,MAhOdop,P4JJHla0,OIlw,gKLP 2lgd T
h4w lpt7XH MMP5a9,C5L3Hd,Gqa5,ey,f b

Popular posts from this blog

Monofisismo

Angular Downloading a file using contenturl with Basic Authentication

Olmecas