Comments (5)
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.
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.
@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.
@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.
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)
- How config proto src dir when proto files import by path HOT 2
- Java keyword "public" not escaped during proto generation HOT 1
- doc improvement HOT 1
- How can I disable registering the generated Java code as sources? HOT 7
- KSP dependency on generateProto - unable to build project due to KspTaskJvm issue HOT 1
- Fail on protoc warnings HOT 1
- Feature Request: Allow configuration of java executable HOT 2
- Kotlin only generated classes HOT 2
- extractIncludeProto execute so slowly
- protobuf dependency configuration is marked consumable
- Gradle Java project running into many proto related errors "cannot find symbol" randomly on compiling Java srcs HOT 1
- Plugin not compiling java code after migration from 0.8.19 -> 0.9.0 HOT 8
- Update sample to use latest plugin version HOT 1
- How can I compile proto files using Protobuf Editions HOT 1
- Compilation of the generated code fails with protobuf 4.26.0 HOT 3
- Example/documentation for generating kotlin classes with kotlin DSL HOT 1
- Use plural form default output directory 'generated/sources'
- Kotlin only proto Unresolved reference
- Issue compiling protos... HOT 4
- Option to disable/customize `sourceSets` for protoc plugins
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protobuf-gradle-plugin.