打包apk的时候报错
flutter build apk --release --target-platform android-arm64
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'flutter_bugly'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 971ms
The plugin flutter_bugly could not be built due to the issue above.
之前使用的是
flutter_bugly:
git:
url: git://github.com/crazecoder/flutter_bugly.git
ref: dev
改为
flutter_bugly: ^0.3.0+2
再build 就ok 了
网友评论