【发布时间】:2021-02-01 21:48:54
【问题描述】:
我将所有这些包都用于我的颤振项目
dependencies:
flutter:
sdk: flutter
upi_pay: ^0.2.4
google_fonts: ^1.1.0
file_picker: ^2.0.3
image_picker: ^0.6.0+9
qr_code_scanner: ^0.0.13
image_gallery_saver: ^1.5.0
permission_handler: ^5.0.1+1
flutter_full_pdf_viewer: ^1.0.6
fluttertoast: ^7.1.1
flutter_barcode_scanner: ^1.0.1
flutter_google_places: ^0.2.6
google_map_location_picker: ^3.3.5
flutter_local_notifications: ^1.4.4+1
在使用这个时我遇到了这样一个异常
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> File 'com.android.builder.files.ZipCentralDirectory@76fc0a16' was deleted, but previous version not found in cache
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> File 'com.android.builder.files.ZipCentralDirectory@2670b2c8' was deleted, but previous version not found in cache
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
如果我从这个项目中删除了file_picker: ^2.0.3 和flutter_full_pdf_viewer: ^1.0.6,我没有得到任何异常。在同样的情况下,如果在新项目中使用这两个包(仅),则不会出现此类异常。
请给出这个问题的解决方案。提前致谢!
【问题讨论】:
标签: flutter flutter-dependencies