Android Studio Error: Program type already present: org.objectweb.asm.Edge











up vote
0
down vote

favorite












I can't build my project because of this: "Program type already present: org.objectweb.asm.Edge"
There also was error before: "Program type already present:org.objectweb.asm.ByteVector"
Here's gradle dependencies:



dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'

implementation 'com.squareup.picasso:picasso:2.5.2'
implementation group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
implementation group: 'com.jayway.jsonpath', name: 'json-path', version: '2.0.0'

// Rx dependencies
implementation 'io.reactivex.rxjava2:rxjava:2.0.7'

// Because RxAndroid releases are few and far between, it is recommended you also
// explicitly depend on RxJava's latest version for bug fixes and new features.
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'

//Retrofit
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
//OkHttp
implementation 'com.squareup.okhttp3:logging-interceptor:3.5.0'
implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.5.0'

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.android.support:recyclerview-v7:28.0.0'
}


Update



Looks like the problem is in JsonPath. I tried to exclude dependencies but nothing changed:



implementation (group: 'com.jayway.jsonpath', name: 'json-path', version: '2.0.0'){
exclude group: 'org.ow2.asm', module: 'asm'
exclude group: 'com.google.code.gson'
exclude group: 'com.fasterxml.jackson.core'
exclude group: 'org.objectweb.asm'
}









share|improve this question




























    up vote
    0
    down vote

    favorite












    I can't build my project because of this: "Program type already present: org.objectweb.asm.Edge"
    There also was error before: "Program type already present:org.objectweb.asm.ByteVector"
    Here's gradle dependencies:



    dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'

    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
    implementation group: 'com.jayway.jsonpath', name: 'json-path', version: '2.0.0'

    // Rx dependencies
    implementation 'io.reactivex.rxjava2:rxjava:2.0.7'

    // Because RxAndroid releases are few and far between, it is recommended you also
    // explicitly depend on RxJava's latest version for bug fixes and new features.
    implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'

    //Retrofit
    implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
    implementation 'com.squareup.retrofit2:retrofit:2.3.0'
    implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
    //OkHttp
    implementation 'com.squareup.okhttp3:logging-interceptor:3.5.0'
    implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.5.0'

    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.android.support:recyclerview-v7:28.0.0'
    }


    Update



    Looks like the problem is in JsonPath. I tried to exclude dependencies but nothing changed:



    implementation (group: 'com.jayway.jsonpath', name: 'json-path', version: '2.0.0'){
    exclude group: 'org.ow2.asm', module: 'asm'
    exclude group: 'com.google.code.gson'
    exclude group: 'com.fasterxml.jackson.core'
    exclude group: 'org.objectweb.asm'
    }









    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I can't build my project because of this: "Program type already present: org.objectweb.asm.Edge"
      There also was error before: "Program type already present:org.objectweb.asm.ByteVector"
      Here's gradle dependencies:



      dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:28.0.0'
      implementation 'com.android.support.constraint:constraint-layout:1.1.3'

      implementation 'com.squareup.picasso:picasso:2.5.2'
      implementation group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
      implementation group: 'com.jayway.jsonpath', name: 'json-path', version: '2.0.0'

      // Rx dependencies
      implementation 'io.reactivex.rxjava2:rxjava:2.0.7'

      // Because RxAndroid releases are few and far between, it is recommended you also
      // explicitly depend on RxJava's latest version for bug fixes and new features.
      implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'

      //Retrofit
      implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
      implementation 'com.squareup.retrofit2:retrofit:2.3.0'
      implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
      //OkHttp
      implementation 'com.squareup.okhttp3:logging-interceptor:3.5.0'
      implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.5.0'

      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.android.support:recyclerview-v7:28.0.0'
      }


      Update



      Looks like the problem is in JsonPath. I tried to exclude dependencies but nothing changed:



      implementation (group: 'com.jayway.jsonpath', name: 'json-path', version: '2.0.0'){
      exclude group: 'org.ow2.asm', module: 'asm'
      exclude group: 'com.google.code.gson'
      exclude group: 'com.fasterxml.jackson.core'
      exclude group: 'org.objectweb.asm'
      }









      share|improve this question















      I can't build my project because of this: "Program type already present: org.objectweb.asm.Edge"
      There also was error before: "Program type already present:org.objectweb.asm.ByteVector"
      Here's gradle dependencies:



      dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:28.0.0'
      implementation 'com.android.support.constraint:constraint-layout:1.1.3'

      implementation 'com.squareup.picasso:picasso:2.5.2'
      implementation group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
      implementation group: 'com.jayway.jsonpath', name: 'json-path', version: '2.0.0'

      // Rx dependencies
      implementation 'io.reactivex.rxjava2:rxjava:2.0.7'

      // Because RxAndroid releases are few and far between, it is recommended you also
      // explicitly depend on RxJava's latest version for bug fixes and new features.
      implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'

      //Retrofit
      implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
      implementation 'com.squareup.retrofit2:retrofit:2.3.0'
      implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
      //OkHttp
      implementation 'com.squareup.okhttp3:logging-interceptor:3.5.0'
      implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.5.0'

      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.android.support:recyclerview-v7:28.0.0'
      }


      Update



      Looks like the problem is in JsonPath. I tried to exclude dependencies but nothing changed:



      implementation (group: 'com.jayway.jsonpath', name: 'json-path', version: '2.0.0'){
      exclude group: 'org.ow2.asm', module: 'asm'
      exclude group: 'com.google.code.gson'
      exclude group: 'com.fasterxml.jackson.core'
      exclude group: 'org.objectweb.asm'
      }






      android android-studio gradle






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 19 at 18:01

























      asked Nov 19 at 17:14









      Evgeniy

      6019




      6019
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Hard to know for sure what's going on without a stack trace, but I'm inclined to think that one of your dependencies has some duplicate import...



          Have you had a look at this thread?
          Android Studio - Error:Program type already present






          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',
            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%2f53379633%2fandroid-studio-error-program-type-already-present-org-objectweb-asm-edge%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








            up vote
            0
            down vote













            Hard to know for sure what's going on without a stack trace, but I'm inclined to think that one of your dependencies has some duplicate import...



            Have you had a look at this thread?
            Android Studio - Error:Program type already present






            share|improve this answer

























              up vote
              0
              down vote













              Hard to know for sure what's going on without a stack trace, but I'm inclined to think that one of your dependencies has some duplicate import...



              Have you had a look at this thread?
              Android Studio - Error:Program type already present






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Hard to know for sure what's going on without a stack trace, but I'm inclined to think that one of your dependencies has some duplicate import...



                Have you had a look at this thread?
                Android Studio - Error:Program type already present






                share|improve this answer












                Hard to know for sure what's going on without a stack trace, but I'm inclined to think that one of your dependencies has some duplicate import...



                Have you had a look at this thread?
                Android Studio - Error:Program type already present







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 19 at 17:21









                davy307

                80110




                80110






























                    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%2f53379633%2fandroid-studio-error-program-type-already-present-org-objectweb-asm-edge%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

                    Costa Masnaga

                    Fotorealismo

                    Sidney Franklin