Flutter SDK 配置后,Android App 无法启动

Using hardware rendering with device sdk gphone x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on sdk gphone x86 in debug mode...
                                                                        
FAILURE: Build failed with an exception.                                
                                                                        
* What went wrong:                                                      
A problem occurred configuring project ':sqflite'.                      
> Could not resolve all artifacts for configuration ':sqflite:classpath'.
   > Could not download guava.jar (com.google.guava:guava:26.0-jre)     
      > Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/26.0-jre/guava-26.0-jre.jar'.
         > Could not GET 'https://jcenter.bintray.com/com/google/guava/guava/26.0-jre/guava-26.0-jre.jar'.
            > Remote host closed connection during handshake            
> Could not get unknown property 'android' for project ':sqflite' of type org.gradle.api.Project.
                                                                        
* 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 15s                                                     
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                        16.9s

你好,想问下这个是什么原因,创建了一个全新的 Flutter 项目,再未添加 SDK 前已经成功运行。

添加后,就出现这个错误,文档里没有写相关配置方法,来论坛求助下,谢谢。

发现是 build.gradle 和 Android 项目中的 gradle 版本号不同造成的。

flutter/.pub-cache/hosted/pub.flutter-io.cn/sqflite-1.3.1/android/build.gradle

您好,请问问题是否已经解决了?

如果还有问题,麻烦再描述下您是怎么安装 SDK 的,提供 SDK 版本信息等。

已经解决了。

顺便想说下,flutter 在pub file安装sdk后,自动导入的 dio 库版本和 leancloud sdk 使用的不一样,会导致所有请求失败。

是的,这个原因是 Dio 发布了小版本,但是却做了 Breaking Changes。
所以,我们更新了 v0.4.3 SDK,这个版本固定了 Dio 在 3.0.8