After upgrade gradle : Program type already present: net.jcip.annotations.GuardedByError retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23run common gradle code in android base project gradle fileWhat does mean “specified for property 'resDir' does not exist.”Gradle project sync failed. Basic functionality - failed on Android Studio 2.2Gradle sync failed: Unrecognized SSL message, plaintext connection?Google mobile vision library 11.8.0 is not recognizedAndroid Studio 3.2.1 - New project fails to runAndroid - Kotlin files are present in apk after compilationAll flavors must now belong to a named flavor dimension Android Studio NDKCould not find class 'dalvik.system…'

Is it OK to accept a job opportunity while planning on not taking it?

How often should alkaline batteries be checked when they are in a device?

MITM on HTTPS traffic in Kazakhstan 2019

If hash functions append the length, why does length extension attack work?

Book in which the "mountain" in the distance was a hole in the flat world

Storyboarding Approaches for the Non-Artistic

Does a "melee spell attack" use my spellcasting ability, or my Strength?

How to indicate the lack of sarcasm online

Why is there an extra "t" in Lemmatization?

Should I practice til I "get it" or until I'm sick of it?

What do Unicorns want?

Has Iron Man made any suit for underwater combat?

Source for "everyone has a specific area of Torah that they're naturally drawn to"

Why is the UH-60 tail rotor canted?

Can I use Sitecore's Configuration patching mechanics for my Identity Server configuration?

Importance of moon phases for Apollo missions

90s (or earlier) book in which a human detective is hired by a vampire to find killer of vampires

How can I deal with someone that wants to kill something that isn't supposed to be killed?

Killing a star safely

Function pointer parameter without asterisk

Calculating Fibonacci sequence in several different ways

Found more old paper shares from broken up companies

Is it better to merge "often" or only after completion do a big merge of feature branches?

Recursive search on Node Tree with Linq and Queue



After upgrade gradle : Program type already present: net.jcip.annotations.GuardedBy


Error retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23run common gradle code in android base project gradle fileWhat does mean “specified for property 'resDir' does not exist.”Gradle project sync failed. Basic functionality - failed on Android Studio 2.2Gradle sync failed: Unrecognized SSL message, plaintext connection?Google mobile vision library 11.8.0 is not recognizedAndroid Studio 3.2.1 - New project fails to runAndroid - Kotlin files are present in apk after compilationAll flavors must now belong to a named flavor dimension Android Studio NDKCould not find class 'dalvik.system…'






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















After i upgrade gradle, also gms, i'm having a error



Program type already present: net.jcip.annotations.GuardedBy
Messagekind=ERROR, text=Program type already present: net.jcip.annotations.GuardedBy, sources=[Unknown source file], tool name=Optional.of(D8)



 apply plugin: 'com.android.application'
configurations
all*.exclude group: 'com.android.support', module: 'support-v4'

buildscript
repositories
jcenter()
mavenCentral()



def AAVersion = '4.6.0' // change this to your desired version, for
example the latest stable: 4.1.0


android
signingConfigs
config
keyAlias 'toefl2017'
keyPassword 'sangohan1987'

storePassword 'sangohan1987'


compileSdkVersion 28
buildToolsVersion "28.0.0"
defaultConfig
applicationId "com.ouamassi.widaf"
minSdkVersion 14
targetSdkVersion 28
versionCode 5
versionName "1.03"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
javaCompileOptions
annotationProcessorOptions
includeCompileClasspath = true




compileOptions
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8



buildTypes
release
minifyEnabled false
debuggable false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config

debug


packagingOptions
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'



dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')

implementation 'com.android.support:appcompat-v7:28.0.0'
implementation ('com.android.billingclient:billing:1.2.2')
implementation ("org.androidannotations:androidannotations:$AAVersion")
implementation ("org.androidannotations:androidannotations-api:$AAVersion")
implementation ('com.google.android.gms:play-services:12.0.0')
implementation project(path: ':fivestarslibrary', configuration: 'default')




Where is this GuardedBy thing ? i search for it but i don't found nothing



Generic gradle



// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript
repositories
jcenter()
google()

dependencies

classpath 'com.android.tools.build:gradle:3.1.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.google.gms:google-services:3.1.0'
// 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



any help would be appreciated










share|improve this question






























    0















    After i upgrade gradle, also gms, i'm having a error



    Program type already present: net.jcip.annotations.GuardedBy
    Messagekind=ERROR, text=Program type already present: net.jcip.annotations.GuardedBy, sources=[Unknown source file], tool name=Optional.of(D8)



     apply plugin: 'com.android.application'
    configurations
    all*.exclude group: 'com.android.support', module: 'support-v4'

    buildscript
    repositories
    jcenter()
    mavenCentral()



    def AAVersion = '4.6.0' // change this to your desired version, for
    example the latest stable: 4.1.0


    android
    signingConfigs
    config
    keyAlias 'toefl2017'
    keyPassword 'sangohan1987'

    storePassword 'sangohan1987'


    compileSdkVersion 28
    buildToolsVersion "28.0.0"
    defaultConfig
    applicationId "com.ouamassi.widaf"
    minSdkVersion 14
    targetSdkVersion 28
    versionCode 5
    versionName "1.03"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    vectorDrawables.useSupportLibrary = true
    javaCompileOptions
    annotationProcessorOptions
    includeCompileClasspath = true




    compileOptions
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8



    buildTypes
    release
    minifyEnabled false
    debuggable false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    signingConfig signingConfigs.config

    debug


    packagingOptions
    exclude 'META-INF/DEPENDENCIES.txt'
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/dependencies.txt'
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/license.txt'
    exclude 'META-INF/LGPL2.1'
    exclude 'META-INF/NOTICE.txt'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/notice.txt'
    exclude 'META-INF/ASL2.0'



    dependencies
    implementation fileTree(include: ['*.jar'], dir: 'libs')

    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation ('com.android.billingclient:billing:1.2.2')
    implementation ("org.androidannotations:androidannotations:$AAVersion")
    implementation ("org.androidannotations:androidannotations-api:$AAVersion")
    implementation ('com.google.android.gms:play-services:12.0.0')
    implementation project(path: ':fivestarslibrary', configuration: 'default')




    Where is this GuardedBy thing ? i search for it but i don't found nothing



    Generic gradle



    // Top-level build file where you can add configuration options common to all sub-projects/modules.

    buildscript
    repositories
    jcenter()
    google()

    dependencies

    classpath 'com.android.tools.build:gradle:3.1.1'
    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
    classpath 'com.google.gms:google-services:3.1.0'
    // 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



    any help would be appreciated










    share|improve this question


























      0












      0








      0








      After i upgrade gradle, also gms, i'm having a error



      Program type already present: net.jcip.annotations.GuardedBy
      Messagekind=ERROR, text=Program type already present: net.jcip.annotations.GuardedBy, sources=[Unknown source file], tool name=Optional.of(D8)



       apply plugin: 'com.android.application'
      configurations
      all*.exclude group: 'com.android.support', module: 'support-v4'

      buildscript
      repositories
      jcenter()
      mavenCentral()



      def AAVersion = '4.6.0' // change this to your desired version, for
      example the latest stable: 4.1.0


      android
      signingConfigs
      config
      keyAlias 'toefl2017'
      keyPassword 'sangohan1987'

      storePassword 'sangohan1987'


      compileSdkVersion 28
      buildToolsVersion "28.0.0"
      defaultConfig
      applicationId "com.ouamassi.widaf"
      minSdkVersion 14
      targetSdkVersion 28
      versionCode 5
      versionName "1.03"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      vectorDrawables.useSupportLibrary = true
      javaCompileOptions
      annotationProcessorOptions
      includeCompileClasspath = true




      compileOptions
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8



      buildTypes
      release
      minifyEnabled false
      debuggable false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      signingConfig signingConfigs.config

      debug


      packagingOptions
      exclude 'META-INF/DEPENDENCIES.txt'
      exclude 'META-INF/DEPENDENCIES'
      exclude 'META-INF/dependencies.txt'
      exclude 'META-INF/LICENSE.txt'
      exclude 'META-INF/LICENSE'
      exclude 'META-INF/license.txt'
      exclude 'META-INF/LGPL2.1'
      exclude 'META-INF/NOTICE.txt'
      exclude 'META-INF/NOTICE'
      exclude 'META-INF/notice.txt'
      exclude 'META-INF/ASL2.0'



      dependencies
      implementation fileTree(include: ['*.jar'], dir: 'libs')

      implementation 'com.android.support:appcompat-v7:28.0.0'
      implementation ('com.android.billingclient:billing:1.2.2')
      implementation ("org.androidannotations:androidannotations:$AAVersion")
      implementation ("org.androidannotations:androidannotations-api:$AAVersion")
      implementation ('com.google.android.gms:play-services:12.0.0')
      implementation project(path: ':fivestarslibrary', configuration: 'default')




      Where is this GuardedBy thing ? i search for it but i don't found nothing



      Generic gradle



      // Top-level build file where you can add configuration options common to all sub-projects/modules.

      buildscript
      repositories
      jcenter()
      google()

      dependencies

      classpath 'com.android.tools.build:gradle:3.1.1'
      classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
      classpath 'com.google.gms:google-services:3.1.0'
      // 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



      any help would be appreciated










      share|improve this question
















      After i upgrade gradle, also gms, i'm having a error



      Program type already present: net.jcip.annotations.GuardedBy
      Messagekind=ERROR, text=Program type already present: net.jcip.annotations.GuardedBy, sources=[Unknown source file], tool name=Optional.of(D8)



       apply plugin: 'com.android.application'
      configurations
      all*.exclude group: 'com.android.support', module: 'support-v4'

      buildscript
      repositories
      jcenter()
      mavenCentral()



      def AAVersion = '4.6.0' // change this to your desired version, for
      example the latest stable: 4.1.0


      android
      signingConfigs
      config
      keyAlias 'toefl2017'
      keyPassword 'sangohan1987'

      storePassword 'sangohan1987'


      compileSdkVersion 28
      buildToolsVersion "28.0.0"
      defaultConfig
      applicationId "com.ouamassi.widaf"
      minSdkVersion 14
      targetSdkVersion 28
      versionCode 5
      versionName "1.03"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      vectorDrawables.useSupportLibrary = true
      javaCompileOptions
      annotationProcessorOptions
      includeCompileClasspath = true




      compileOptions
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8



      buildTypes
      release
      minifyEnabled false
      debuggable false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      signingConfig signingConfigs.config

      debug


      packagingOptions
      exclude 'META-INF/DEPENDENCIES.txt'
      exclude 'META-INF/DEPENDENCIES'
      exclude 'META-INF/dependencies.txt'
      exclude 'META-INF/LICENSE.txt'
      exclude 'META-INF/LICENSE'
      exclude 'META-INF/license.txt'
      exclude 'META-INF/LGPL2.1'
      exclude 'META-INF/NOTICE.txt'
      exclude 'META-INF/NOTICE'
      exclude 'META-INF/notice.txt'
      exclude 'META-INF/ASL2.0'



      dependencies
      implementation fileTree(include: ['*.jar'], dir: 'libs')

      implementation 'com.android.support:appcompat-v7:28.0.0'
      implementation ('com.android.billingclient:billing:1.2.2')
      implementation ("org.androidannotations:androidannotations:$AAVersion")
      implementation ("org.androidannotations:androidannotations-api:$AAVersion")
      implementation ('com.google.android.gms:play-services:12.0.0')
      implementation project(path: ':fivestarslibrary', configuration: 'default')




      Where is this GuardedBy thing ? i search for it but i don't found nothing



      Generic gradle



      // Top-level build file where you can add configuration options common to all sub-projects/modules.

      buildscript
      repositories
      jcenter()
      google()

      dependencies

      classpath 'com.android.tools.build:gradle:3.1.1'
      classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
      classpath 'com.google.gms:google-services:3.1.0'
      // 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



      any help would be appreciated







      android gradle dependencies






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 26 at 13:33







      tamtoum1987

















      asked Mar 26 at 13:27









      tamtoum1987tamtoum1987

      9832 gold badges14 silver badges39 bronze badges




      9832 gold badges14 silver badges39 bronze badges






















          1 Answer
          1






          active

          oldest

          votes


















          0














          With this :
          ./gradlew app:dependencies
          I get detail of dependencies so i detect that the problem come from androidannotations



          so instead of :



          implementation ("org.androidannotations:androidannotations:$AAVersion")
          implementation ("org.androidannotations:androidannotations-api:$AAVersion")



          i had to put :



          annotationProcessor ("org.androidannotations:androidannotations:$AAVersion")
          implementation ("org.androidannotations:androidannotations-api:$AAVersion")



          and also add :



          multiDexEnabled true



          implementation 'com.android.support:multidex:1.0.3'






          share|improve this answer






















            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%2f55358360%2fafter-upgrade-gradle-program-type-already-present-net-jcip-annotations-guarde%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            With this :
            ./gradlew app:dependencies
            I get detail of dependencies so i detect that the problem come from androidannotations



            so instead of :



            implementation ("org.androidannotations:androidannotations:$AAVersion")
            implementation ("org.androidannotations:androidannotations-api:$AAVersion")



            i had to put :



            annotationProcessor ("org.androidannotations:androidannotations:$AAVersion")
            implementation ("org.androidannotations:androidannotations-api:$AAVersion")



            and also add :



            multiDexEnabled true



            implementation 'com.android.support:multidex:1.0.3'






            share|improve this answer



























              0














              With this :
              ./gradlew app:dependencies
              I get detail of dependencies so i detect that the problem come from androidannotations



              so instead of :



              implementation ("org.androidannotations:androidannotations:$AAVersion")
              implementation ("org.androidannotations:androidannotations-api:$AAVersion")



              i had to put :



              annotationProcessor ("org.androidannotations:androidannotations:$AAVersion")
              implementation ("org.androidannotations:androidannotations-api:$AAVersion")



              and also add :



              multiDexEnabled true



              implementation 'com.android.support:multidex:1.0.3'






              share|improve this answer

























                0












                0








                0







                With this :
                ./gradlew app:dependencies
                I get detail of dependencies so i detect that the problem come from androidannotations



                so instead of :



                implementation ("org.androidannotations:androidannotations:$AAVersion")
                implementation ("org.androidannotations:androidannotations-api:$AAVersion")



                i had to put :



                annotationProcessor ("org.androidannotations:androidannotations:$AAVersion")
                implementation ("org.androidannotations:androidannotations-api:$AAVersion")



                and also add :



                multiDexEnabled true



                implementation 'com.android.support:multidex:1.0.3'






                share|improve this answer













                With this :
                ./gradlew app:dependencies
                I get detail of dependencies so i detect that the problem come from androidannotations



                so instead of :



                implementation ("org.androidannotations:androidannotations:$AAVersion")
                implementation ("org.androidannotations:androidannotations-api:$AAVersion")



                i had to put :



                annotationProcessor ("org.androidannotations:androidannotations:$AAVersion")
                implementation ("org.androidannotations:androidannotations-api:$AAVersion")



                and also add :



                multiDexEnabled true



                implementation 'com.android.support:multidex:1.0.3'







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 26 at 14:10









                tamtoum1987tamtoum1987

                9832 gold badges14 silver badges39 bronze badges




                9832 gold badges14 silver badges39 bronze badges


















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55358360%2fafter-upgrade-gradle-program-type-already-present-net-jcip-annotations-guarde%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







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript