**Gradle build failed to produce an .apk file. It’s likely that this file was generated under D:\codeMaster\huibobo_iphone\huibobo\build, but the tool couldn’t find it. **
原因:flavor渠道错误,如果在buildle.gradle中声明了渠道,那么在执行flutter run --profile 的时候添加上渠道就好。
解决:如图,若渠道是这样声明的
那么执行的时候 android端执行
flutter run --flavor banana --profile
即可
ios 端执行
flutter run --flavor apple --profile