美文网首页
开发Flutter常见非代码性错误

开发Flutter常见非代码性错误

作者: 懒惰的王子 | 来源:发表于2020-09-01 14:21 被阅读0次

1、检测不到模拟器

打开Android Studio在Terminal输入:

flutter config --android-studio-dir /Applications/Android\ Studio.app/

后重启

2、报cocoapods错误

flutter clean

rm -Rf ios/Pods

rm -Rf ios/.symlinks

rm -Rf ios/Flutter/Flutter.framework

rm -Rf ios/Flutter/Flutter.podspec

3、Android 手机真机调试报错

flutter doctor --android-licenses

4、安卓模运行报错

Flutter Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:25:5-63:19 to overri

项目application的label属性冲突导致。在项目的Manifest.xml文件里的application中加入

xmlns:tools="http://schemas.android.com/tools"

 tools:replace="label"

在AndroidManifest中最上方加入

xmlns:tools="http://schemas.android.com/tools"

相关文章

网友评论

      本文标题:开发Flutter常见非代码性错误

      本文链接:https://www.haomeiwen.com/subject/ywrvsktx.html