android-guava

Guava library duplicate entry error

淺唱寂寞╮ 提交于 2019-12-12 13:55:15
问题 I am trying to use guava library in my application. But I am also using chromium_webview project from github. This webview project contains guava library. And I get the following error: Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. java.util.zip.ZipException: duplicate entry: com/google/common/annotations/GwtIncompatible.class I've looked at this and this answers already and nothing seems to work. Here's my module's build.gradle : apply plugin: 'com.android

How to remedy error caused by guava: Program type already present: com.google.common.util.concurrent.internal.InternalFutures

◇◆丶佛笑我妖孽 提交于 2019-12-12 09:43:53
问题 An AAR library already uses com.google.guava. If an app includes the following in its build.gradle: api 'com.google.guava:guava:27.0-android' Building the app generates the following error: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: ... Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. Program type

How to remedy error caused by guava: Program type already present: com.google.common.util.concurrent.internal.InternalFutures

ぃ、小莉子 提交于 2019-12-05 14:37:56
An AAR library already uses com.google.guava. If an app includes the following in its build.gradle: api 'com.google.guava:guava:27.0-android' Building the app generates the following error: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: ... Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. Program type already present: com.google.common.util.concurrent.internal.InternalFutures If I do not include "api 'com

Guava Dependency Breaking Jar Built With Kotlin

寵の児 提交于 2019-12-02 04:03:44
问题 Issue The Java/Kotlin application runs as expected in from the Main Class in IntelliJ's IDE. However, when the app is built into a .Jar file the following error occurs: java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors . This is an issue with refactoring the directory, module, root project, and/or group names. Reproducing Error I've moved the project to a new directory path and everything runs as expected. However, after I attempt to modify the directory, and/or

Guava Dependency Breaking Jar Built With Kotlin

时间秒杀一切 提交于 2019-12-02 01:19:58
Issue The Java/Kotlin application runs as expected in from the Main Class in IntelliJ's IDE. However, when the app is built into a .Jar file the following error occurs: java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors . This is an issue with refactoring the directory, module, root project, and/or group names. Reproducing Error I've moved the project to a new directory path and everything runs as expected. However, after I attempt to modify the directory, and/or module names and refactor the rootProject.name in settings.gradle and the group in the build.gradle is