1、项目编译时出现Caused by: Assertion failed:
解决办法:重新生成android/settings.gradle
rm settings.gradle
flutter create .
2、 Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven5(http://maven.aliyun.com/nexus/content/groups/public)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols.
解决办法:阿里云仓库问题,阿里云的连接http换成https
maven { url "https://maven.aliyun.com/nexus/content/groups/public"}
3、Cause: assert pluginDirectory.exists()
| |
| false
C:\Users\admin\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\audioplayers-0.20.1\android
问题原因:插件未加载到缓存导致。
解决办法:点击put get,重新构建。