A problem occurred configuring project ‘:flutter_webview_plugin’.

来源:12-10 基于自定义WebView实现H5混合开发-3【H5混合实战】

慕码人8953351

2020-02-16

Launching lib\main.dart on Android SDK built for x86 in debug mode…
Initializing gradle…
Resolving dependencies…

  • Error running Gradle:
    ProcessException: Process “D:\FlutterProject\flutter_trip\flutter_trip\android\gradlew.bat” exited abnormally:

Configure project :flutter_webview_plugin

Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:flutter_webview_plugin’.

Could not resolve all artifacts for configuration ‘:flutter_webview_plugin:classpath’.
Could not resolve org.jetbrains.kotlin:kotlin-stdlib-common:1.3.50.
Required by:
project :flutter_webview_plugin > com.android.tools.build:gradle:3.5.3 > org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.50 > org.jetbrains.kotlin:kotlin-stdlib:1.3.50
Could not resolve org.jetbrains.kotlin:kotlin-stdlib-common:1.3.50.
Could not get resource ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.pom’.
Could not GET ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.pom’.
Read timed out

  • 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 2m 19s
Command: D:\FlutterProject\flutter_trip\flutter_trip\android\gradlew.bat app:properties

Finished with error: Please review your Gradle project setup in the android/ folder.

写回答

1回答

CrazyCodeBoy

2020-02-16

  • 用AS 打开项目:flutter_trip\android 

  • 然后clean下之后用AS运行下项目看看

0
0

Flutter从入门到进阶 实战携程网App 一网打尽核心技术

解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。

4788 学习 · 3274 问题

查看课程