相关疑难解决方法(0)

如何解决已存在的程序类型:com.google.common.util.concurrent.ListenableFuture?

我正在尝试使用WorkManager 1.0.0-alpha09.我收到此错误:

Program type already present: 
com.google.common.util.concurrent.ListenableFuture

Message{kind=ERROR, text=Program type already present: 
com.google.common.util.concurrent.ListenableFuture, sources=[Unknown source 
file], tool name=Optional.of(D8)}
Run Code Online (Sandbox Code Playgroud)

如果我使用版本1.0.0-alpha08或更少.我没有得到这个错误,但我需要公共构造函数

public Worker(Context context, WorkerParameters workerParams)
Run Code Online (Sandbox Code Playgroud)

java android guava android-workmanager

46
推荐指数
3
解决办法
1万
查看次数

无法访问 Flutter 项目中的类“com.google.common.util.concurrent.ListenableFuture”

在向我的项目添加一些依赖项+将camerax依赖项本机添加Flutter项目的android部分之后(我想创建本机Android视图,然后在Flutter中显示它)。构建项目时,我\xe2\x80\x99ve遇到错误:

\n
e: pathandroid/camera/AndroidCameraView.kt: (35, 58): Cannot access class \'com.google.common.util.concurrent.ListenableFuture\'. Check your module classpath for missing or conflicting dependencies\n        e: pathandroid/camera/AndroidCameraView.kt: (36, 9): Cannot access class \'com.google.common.util.concurrent.ListenableFuture\'. Check your module classpath for missing or conflicting dependencies\n        e: pathandroid/camera/AndroidCameraView.kt: (36, 30): Unresolved reference: addListener\n        e: pathandroid/camera/AndroidCameraView.kt: (37, 30): Cannot access class \'com.google.common.util.concurrent.ListenableFuture\'. Check your module classpath for missing or conflicting dependencies\n        e: pathandroid/camera/AndroidCameraView.kt: (37, 51): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:\npublic …
Run Code Online (Sandbox Code Playgroud)

android gradle guava flutter flutter-dependencies

15
推荐指数
1
解决办法
7222
查看次数

Flutter 构建 apk:在模块 guava-26.0-android.jar 和 listenablefuture-1.0.jar 中发现重复类

我在尝试在 Flutter 上构建 apk 时遇到了一个奇怪的错误:

% flutter build apk --no-shrink
You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64.
If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size.
    To generate an app bundle, run:
        flutter build appbundle --target-platform android-arm,android-arm64,android-x64
        Learn more on: https://developer.android.com/guide/app-bundle
    To split the APKs per ABI, run:
        flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
        Learn more on:  https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split …
Run Code Online (Sandbox Code Playgroud)

android gradle android-studio flutter

3
推荐指数
1
解决办法
1338
查看次数