【发布时间】:2019-07-11 11:34:35
【问题描述】:
我正在尝试为我的应用构建发布 apk。我收到以下错误
flutter build apk --release
$ flutter build apk --release
Initializing gradle... 2.8s
Resolving dependencies... 8.8s
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:dynamicProfileRuntimeClasspath'.
> Could not resolve project :flutter_image_compress.
Required by:
project :app
> Could not select value from candidates [null, debug, release] using AlternateDisambiguationRule.BuildTypeRule.
> java.lang.NullPointerException (no error message)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
关于为什么会发生此问题的任何建议?
【问题讨论】: