【问题标题】:flutter location plugin repository returns 403颤振位置插件存储库返回 403
【发布时间】:2021-07-07 21:28:52
【问题描述】:

我今天正在开发使用 location 插件的应用程序,当时我的构建开始失败。 这是消息:

Plugin project :location_web not found. Please update settings.gradle.

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 com.google.android.gms:play-services-location:16.+.
     Required by:
         project :app > project :location
      > Failed to list versions for com.google.android.gms:play-services-location.
         > Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml.
            > Could not get resource 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml'.
               > Could not GET 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml'. Received status code 403 from server: Forbidden

* 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.

有什么想法,或者可能是谷歌云的错?我的位置版本是^3.2.4

【问题讨论】:

  • 你能告诉我们你的 android/app/build.gradle 吗?你的 Flutter 版本是什么?
  • 颤振版本。 1.22.5

标签: android flutter gradle location jcenter


【解决方案1】:

目前有一个maintenance on Bintray 可以解释为什么你会突然遇到这个问题。

请注意,如果您使用的是 Flutter > 1.12 版本,则无需在 build.gradle 文件中配置任何内容来设置位置插件,这可能是问题的根本原因。

【讨论】:

    猜你喜欢
    • 2023-03-11
    • 2021-04-21
    • 2018-10-18
    • 1970-01-01
    • 2022-09-27
    • 2018-08-13
    • 2022-10-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多