配置arcore_flutter_plugin后,在gradle上遇到了一些问题
尝试了由MTechviral在AR上拍打的演示视频
ProcessException:进程“ D:\ My Files \ flutter-apps \ ar \ android \ gradlew.bat”异常退出:
配置项目:arcore_flutter_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 ':arcore_flutter_plugin'.
> Could not resolve all artifacts for configuration ':arcore_flutter_plugin:classpath'.
> Could not download gradle.jar (com.android.tools.build:gradle:3.4.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.jar'.
> Read timed out
> Could not download kotlin-gradle-plugin.jar (org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.20)
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.20/kotlin-gradle-plugin-1.3.20.jar'.
> Read timed out
> Could not download builder.jar (com.android.tools.build:builder:3.4.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.4.0/builder-3.4.0.jar'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.4.0/builder-3.4.0.jar'.
> Read timed out
> Could not download shared.jar (com.android.tools.analytics-library:shared:26.4.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/shared/26.4.0/shared-26.4.0.jar'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/shared/26.4.0/shared-26.4.0.jar'.
> Read timed out
> Could not download crash.jar (com.android.tools.analytics-library:crash:26.4.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/crash/26.4.0/crash-26.4.0.jar'.
> Read timed out
> Could not download manifest-merger.jar (com.android.tools.build:manifest-merger:26.4.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/manifest-merger/26.4.0/manifest-merger-26.4.0.jar'.
> Read timed out
> Could not download sdk-common.jar (com.android.tools:sdk-common:26.4.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/26.4.0/sdk-common-26.4.0.jar'.
> Read timed out
> Could not download ddmlib.jar (com.android.tools.ddms:ddmlib:26.4.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/26.4.0/ddmlib-26.4.0.jar'.
> Read timed out
> Could not download sdklib.jar (com.android.tools:sdklib:26.4.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/sdklib/26.4.0/sdklib-26.4.0.jar'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/sdklib/26.4.0/sdklib-26.4.0.jar'.
> Read timed out
> Could not download repository.jar (com.android.tools:repository:26.4.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/repository/26.4.0/repository-26.4.0.jar'.
> Read timed out
> Could not download common.jar (com.android.tools:common:26.4.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/common/26.4.0/common-26.4.0.jar'.
> Read timed out
> Could not download bundletool.jar (com.android.tools.build:bundletool:0.7.2)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.7.2/bundletool-0.7.2.jar'.
> Read timed out
> Could not download jetifier-core.jar (com.android.tools.build.jetifier:jetifier-core:1.0.0-beta04)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/jetifier/jetifier-core/1.0.0-beta04/jetifier-core-1.0.0-beta04.jar'.
> Read timed out
> Could not download protos.jar (com.android.tools.analytics-library:protos:26.4.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/protos/26.4.0/protos-26.4.0.jar'.
> Read timed out
> Could not download kotlin-gradle-plugin-api.jar (org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.3.20)
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin-api/1.3.20/kotlin-gradle-plugin-api-1.3.20.jar'.
> Read timed out
> Could not download kotlin-native-utils.jar (org.jetbrains.kotlin:kotlin-native-utils:1.3.20)
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-native-utils/1.3.20/kotlin-native-utils-1.3.20.jar'.
> Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-native-utils/1.3.20/kotlin-native-utils-1.3.20.jar'.
> repo.jfrog.org
> Could not download kotlin-compiler-embeddable.jar (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.20)
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.3.20/kotlin-compiler-embeddable-1.3.20.jar'.
> Read timed out
> Could not download kotlin-build-common.jar (org.jetbrains.kotlin:kotlin-build-common:1.3.20)
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-build-common/1.3.20/kotlin-build-common-1.3.20.jar'.
> Read timed out
> Could not download commons-codec.jar (commons-codec:commons-codec:1.10)
> Could not get resource 'https://jcenter.bintray.com/commons-codec/commons-codec/1.10/commons-codec-1.10.jar'.
> Read timed out
i expect the problem is with gradle file