Flutter开发常见问题,解决小技巧
Posted 怀君
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Flutter开发常见问题,解决小技巧相关的知识,希望对你有一定的参考价值。
1.android Studio 4.0 以上打包编译报错;
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.
> Failed to transform libs.jar to match attributes {artifactType=processed-jar, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: E:\\FlutterSpace\\xxxx\\build\\app\\intermediates\\flutter\\debug\\libs.jar.
> Transform's input file does not exist: E:\\FlutterSpace\\xxxx\\build\\app\\intermediates\\flutter\\debug\\libs.jar. (See https://issuetracker.google.com/
issues/158753935)
* 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.
* Get more help at https://help.gradle.org
1.在子build.gradle添加以下代码:
android{
lintOptions { checkReleaseBuilds false }
}
以上是关于Flutter开发常见问题,解决小技巧的主要内容,如果未能解决你的问题,请参考以下文章
Android课程---Android Studio使用小技巧:提取方法代码片段
错误记录Flutter 混合开发获取 BinaryMessenger 报错 ( FlutterActivityAndFragmentDelegate.getFlutterEngine() )(代码片段
Flutterflutter doctor 报错Android license status unknown. Run `flutter doctor --android-licenses‘(代码片段