Launching lib/main.dart on Android SDK built for x86 in debug mode…
Initializing gradle…
Resolving dependencies…
FAILURE: Build failed with an exception.
Could not resolve all artifacts for configuration ‘:classpath’.
Could not download fastutil.jar (it.unimi.dsi:fastutil:7.2.0)
Could not get resource ‘https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.jar’.
Could not GET ‘https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.jar’.
Connect to 127.0.0.1:1087 [/127.0.0.1] failed: Connection refused (Connection refused)
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 11s
Command: /Users/smatch/repo/dart/flutter_trip/android/gradlew app:properties
Finished with error: Please review your Gradle project setup in the android/ folder.
编译ios 没有问题,编译android 会提示这个错误,在网上找了半天,配置gradle 版本,还是不行,请教老师
解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。
了解课程