我尝试构建我的 flutter 项目,上个月我在做 flutter build apk
时还好,但是当我现在做 flutter build apk
时.. 我收到这个错误日志
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileReleaseKotlin'.
> Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'.
> 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 21s
这里是 build.gradle:https://gist.github.com/wahyu-handayani/b38f1cc491816c6dcfeb130ab42cdbef
和 android 文件夹中的 build.gradle: https://gist.github.com/wahyu-handayani/2ab88f81869ef9a0e1575a465847e608 有没有办法解决这个问题?