Android 颤振不适用于1.10版或更高版本

Android 颤振不适用于1.10版或更高版本,android,gradle,flutter,android-gradle-plugin,Android,Gradle,Flutter,Android Gradle Plugin,最近,我将颤振版本更新为最新版本,然后出现以下错误: Launching lib/main.dart on Android SDK built for x86 in debug mode... Running Gradle task 'assembleDebug'... Warning: Failed to parse host [PROXY SERVER] systemProp.http.proxyPort=[PROXY PORT] Warning: Failed to parse host

最近,我将颤振版本更新为最新版本,然后出现以下错误:

Launching lib/main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
Warning: Failed to parse host [PROXY SERVER] systemProp.http.proxyPort=[PROXY PORT]
Warning: Failed to parse host [PROXY SERVER] systemProp.http.proxyPort=[PROXY PORT]

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
   > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.
     Required by:
         project :app
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.
         > Could not get resource 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695/flutter_embedding_debug-1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.pom'.
            > Host name may not contain blanks
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.
         > Could not get resource 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695/flutter_embedding_debug-1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.pom'.
            > Host name may not contain blanks
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.
         > Could not get resource 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695/flutter_embedding_debug-1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.pom'.
            > Host name may not contain blanks
   > Could not resolve io.flutter:x86_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.
     Required by:
         project :app
      > Could not resolve io.flutter:x86_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.
         > Could not get resource 'http://download.flutter.io/io/flutter/x86_debug/1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695/x86_debug-1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.pom'.
            > Host name may not contain blanks
      > Could not resolve io.flutter:x86_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.
         > Could not get resource 'http://download.flutter.io/io/flutter/x86_debug/1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695/x86_debug-1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.pom'.
            > Host name may not contain blanks
      > Could not resolve io.flutter:x86_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.
         > Could not get resource 'http://download.flutter.io/io/flutter/x86_debug/1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695/x86_debug-1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.pom'.
            > Host name may not contain blanks
   > Could not resolve io.flutter:x86_64_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.
     Required by:
         project :app
      > Could not resolve io.flutter:x86_64_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.
         > Could not get resource 'http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695/x86_64_debug-1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.pom'.
            > Host name may not contain blanks
      > Could not resolve io.flutter:x86_64_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.
         > Could not get resource 'http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695/x86_64_debug-1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.pom'.
            > Host name may not contain blanks
      > Could not resolve io.flutter:x86_64_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.
         > Could not get resource 'http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695/x86_64_debug-1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.pom'.
            > Host name may not contain blanks

* 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 5s
Finished with error: Gradle task assembleDebug failed with exit code 1
当我创建一个新项目时,它也会产生这个错误。我尝试了不同版本的颤振和版本1.9.7的作品。更高版本会产生相同的错误。
这似乎是格雷德的问题。gradle 3.2.1一切正常。

我认为这与您的代理配置有关,如前5行的警告所示


查看gradle.properties中的代理配置

我认为这与前5行警告中所示的代理配置有关


查看gradle.properties中的代理配置

您应该使用
AndroidStudio
打开项目,然后打开
gradle.properties

并清除您的
代理

这种方法对我有效


如果您的国家像制裁伊朗一样,请使用vpn

您应该使用
AndroidStudio
和打开
gradle.properties

并清除您的
代理

这种方法对我有效


如果您的国家像制裁伊朗一样,请使用vpn

我不使用任何代理,也没有在gradle.properties中配置任何代理设置。@RaphaelThurnherr您检查过项目android文件夹中的gradle.properties和用户目录中的gradle.properties了吗?(在windows中是C:\Users\\\.gradle\gradle.properties)是的,这就是问题所在。非常感谢你。我浪费了这么多时间,不知道用户目录中还有其他gradle.properties。在Linux中是~/.gradle。@raphaelthurner不客气,当您对所有项目使用相同的代理配置时,用户目录中的gradle.properties会派上用场。我不使用任何代理,也没有在gradle.properties中配置任何代理设置。@Raphaelthurner您检查过项目android文件夹中的gradle.properties和用户目录中的gradle.properties吗?(在windows中是C:\Users\\\.gradle\gradle.properties)是的,这就是问题所在。非常感谢你。我浪费了这么多时间,不知道用户目录中还有其他gradle.properties。在Linux中是~/.gradle@raphaelthurner不客气,当您对所有项目使用相同的代理配置时,用户目录中的gradle.properties可以派上用场。