我正在尝试使用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) 在向我的项目添加一些依赖项+将camerax依赖项本机添加到Flutter项目的android部分之后(我想创建本机Android视图,然后在Flutter中显示它)。构建项目时,我\xe2\x80\x99ve遇到错误:
\ne: 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) 我在尝试在 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)