简体   繁体   English

如何修复错误:“依赖项列表中的无效项 'Flutter for Android'”

[英]how to fix the error: “invalid item 'Flutter for Android' in the dependencies list”

I am using:我在用:

  • IntelliJ IDEA 2020.1.2 , build #IU-201.7846.76 IntelliJ IDEA 2020.1.2 ,构建#IU-201.7846.76
  • Flutter Plugin , version 53.0.1 Flutter 插件,版本53.0.1
  • Dart plugin , version 201.7846.93 Dart 插件,版本201.7846.93

I created a project with the command flutter create --androidx <name_project> by the terminal of above ide.我在上面 ide 的终端使用命令flutter create --androidx <name_project>创建了一个项目。
When I build or run the project I met problems with dependencies of Flutter or something else...当我构建运行项目时,我遇到了 Flutter 或其他依赖项的问题......

在此处输入图像描述 在此处输入图像描述

But I still not understand the problem and what caused that after I tried my best for researching on the internet.但是在我尽力在互联网上进行研究之后,我仍然不明白这个问题以及导致它的原因。 Although I run flutter doctor command and everything is "Ok" but still an error.尽管我运行flutter doctor命令并且一切正常,但仍然是一个错误。 Many thanks for the helping!非常感谢您的帮助!

Simply remove the Module that has the error.只需删除有错误的模块。 somehow IntelliJ Added that as a module but that module shouldn't be there. IntelliJ 以某种方式将其添加为模块,但该模块不应该存在。 click that 'sign_in_flutter_android' module and click the little minus button above单击“sign_in_flutter_android”模块,然后单击上面的小减号按钮

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 依赖项列表中的无效项“Flutter for Android” - invalid item 'Flutter for Android' in the dependencies list 模块 example_android:依赖项列表中的无效项“Flutter for Android” - Module example_android: invalid item 'Flutter for Android' in the dependencies list 从Eclipse导入Android项目后,依赖项列表中的项无效 - Invalid item in the dependencies list after importing Android project from Eclipse 如何修复错误:JAVA_HOME 设置为无效目录(Flutter android 许可证) - How to fix ERROR: JAVA_HOME is set to an invalid directory (Flutter android licenses) 如何修复Android中无效的URL或端口错误? - how to fix invalid url or port error in Android? 如何在 Android Studio 中修复 Flutter 医生错误 - How to fix Flutter doctor error at Android Studio 如何修复 Android Studio 中的 INSTALL_FAILED_INVALID_APK 错误? - How to fix INSTALL_FAILED_INVALID_APK error in Android Studio? 安装flutter时,如何解决“在此位置找不到Android SDK”错误? - How to fix 'Android SDK not found at this location' error while installing flutter? flutter 医生 --android-licenses 错误,如何解决? - flutter doctor --android-licenses Error, how to fix this? 如何在 android 工作室中修复此 flutter 错误? - How can i fix this flutter error in android studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM