Wire: D8: Program type already present: com.squareup.wire.package-info

Created on 25 Mar 2019  Â·  5Comments  Â·  Source: square/wire

Similar to https://github.com/square/okhttp/issues/4395. wire-runtime, wire-moshi-adapter and wire-gson-support all include a package-info.java file under the com.squareup.wire package, and these files clash when being packaged into a single APK.

It should be easy to fix following the OkHttp PR: https://github.com/square/okhttp/pull/4438

bug

Most helpful comment

Convert those artifacts to Kotlin and the problem goes away!

On Wed, Mar 27, 2019 at 10:55 AM Egor Andreevich notifications@github.com
wrote:

I don't think it's Google's fault in our case, we're just packaging two
classes with the same name. This might be solvable by Gradle configuration,
in which case it might be something to mention in README.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/square/wire/issues/882#issuecomment-477193530, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEEESeX3uTNE4a-gwuGL8T_L_MtQLO8ks5va4Z-gaJpZM4cHf17
.

All 5 comments

Should we instead file an issue on Google's tracker? D8 is part of the Android toolchain and it looks like they've fixed bugs in the recent past of a similar nature:

https://issuetracker.google.com/issues/118569372
https://issuetracker.google.com/issues/122715929
https://issuetracker.google.com/issues/120102996

I don't think it's Google's fault in our case, we're just packaging two classes with the same name. This might be solvable by Gradle configuration, in which case it might be something to mention in README.

Convert those artifacts to Kotlin and the problem goes away!

On Wed, Mar 27, 2019 at 10:55 AM Egor Andreevich notifications@github.com
wrote:

I don't think it's Google's fault in our case, we're just packaging two
classes with the same name. This might be solvable by Gradle configuration,
in which case it might be something to mention in README.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/square/wire/issues/882#issuecomment-477193530, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEEESeX3uTNE4a-gwuGL8T_L_MtQLO8ks5va4Z-gaJpZM4cHf17
.

:thinkaboutit:

Artifacts converted to Kotlin!

Was this page helpful?
0 / 5 - 0 ratings