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 }
}
  

解决方案:原文地址:https://my.oschina.net/u/4364921/blog/4725237

以上是关于Flutter开发常见问题,解决小技巧的主要内容,如果未能解决你的问题,请参考以下文章

Flutter 小技巧之玩转字体渲染和问题修复

Android课程---Android Studio使用小技巧:提取方法代码片段

错误记录Flutter 混合开发获取 BinaryMessenger 报错 ( FlutterActivityAndFragmentDelegate.getFlutterEngine() )(代码片段

VS中添加自定义代码片段——偷懒小技巧

Flutterflutter doctor 报错Android license status unknown. Run `flutter doctor --android-licenses‘(代码片段

Xcode开发中的6个小技巧