Git Product home page Git Product logo

Comments (5)

donnfelker avatar donnfelker commented on September 1, 2024

To get this bug to show up, simply add the following line to the android config block in the testProjectAndroid

multiDexEnabled true

That will make the testProjectAndroid fail with the following error:

Error:Execution failed for task ':testProjectAndroid:packageAllArmFreeappDebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: com/squareup/okhttp/OkHttpTlsUpgrader$DummyAuthenticator.class

from protobuf-gradle-plugin.

zhangkun83 avatar zhangkun83 commented on September 1, 2024

This is interesting, but it doesn't look related to the protobuf plugin.
I tried to reproduce it with the way you provided, but it builds fine.
Can you try not loading the protobuf plugin and copy the generated files (under build/generated/source/proto/) into your source directory temporarily just to see if you still have the problem?

from protobuf-gradle-plugin.

donnfelker avatar donnfelker commented on September 1, 2024

@zhangkun83 Yeah taking generated proto files and putting them into the src/ directory and then commenting out all the plugin code in the build.gradle allowed a successful build. Thoughts?

See below

from protobuf-gradle-plugin.

donnfelker avatar donnfelker commented on September 1, 2024

@zhangkun83 I was mistaken. Build Project (F9) succeds. But if you attempt to run the Android build configuration I'm getting the following error:

Error:Execution failed for task ':testProjectAndroid:packageAllArmFreeappDebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: com/squareup/okhttp/OkHttpTlsUpgrader$DummyAuthenticator.class

from protobuf-gradle-plugin.

donnfelker avatar donnfelker commented on September 1, 2024

FYI, following the changes made in this commit: 47d1430 I was able to resolve the issues. Not sure exactly what the root cause was (I'd love to know) but I just wanted to let you know that this fixed the issue.

from protobuf-gradle-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.