Flutter开发遇到:No signature of method...的问题
A problem occurred evaluating project ':app'. > No signature of method: build_eks0uecnbo0o3g3yedoatk0y.android() is applicable
原因分析:从错误信息来看,其实是说你的build.gradle 脚本内容错误,一般是在各个闭包中,添加了不正确的已知闭包实现。
例如 android{} 闭包中增加大小写不正确的 DefaultConfig 等。
解决措施:
检查最近添加到build.gradle脚本,是否添加的层次结构不正确, 例如 ndk 应该在 defaultConfig 闭包中是否有大小写不正确的,拼写错误的,例如 defaultConfig 写成 DefaultConfig.
文章评论