
正文
flutter失败的简单介绍
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
flutter从WIN10转移到MAC生成APK失败
项目在WIN10上生成apk没问题,到mac出问题了,可是android sdk也安装完成的。
运行flutter build apk
提示以下错误
解决:
只需输入flutter clean
清理干净之后,再build就行了,成功
flutter build apk
相关问答
Q1: flutter 使用Getx提示错误
新手最近在使用Getx做状态管理, 在使用中遇到问题, 随手记录下,
提示错误:
GET the improper use of a getx has been detected you should only use getx or obx for the specific widget that will be updated. if you are seeing this error, you probabaly did not insert any observable variables into GetX/Obx...
其实提示很明显, 就是Obx()中组件没用到controller内容, 比如Obx(()=Text("123")), 这里面Obx没有用到GetxController的对象, 就会报这个错误,如果改成Obx(()=Text(controller.content)), 就可以了
Q2: flutter运行时提示下面错误,请问如何解决?
一般这样的问题都是Flutter内部导致的问题,所以优先建议命令执行:flutter clean,然后再次执行操作。







