Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.7.0
ChinaVolvocars opened this issue · 2 comments
FAILURE: Build failed with an exception.
- What went wrong:
Could not determine the dependencies of task ':MapboxAndroidDemo:lintVitalGlobalRelease'.
Could not resolve all task dependencies for configuration ':MapboxAndroidDemo:globalReleaseRuntimeClasspath'.
Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.7.0.
Required by:
project :MapboxAndroidDemo
> Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.7.0.
> Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-android-sdk/9.7.0/mapbox-android-sdk-9.7.0.pom'.
> Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-android-sdk/9.7.0/mapbox-android-sdk-9.7.0.pom'. Received status code 403 from server: Forbidden
Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.7.0.
Required by:
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-building-v9:0.7.0
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-localization-v9:0.12.0
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-traffic-v9:0.10.0
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-markerview-v9:0.4.0
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-scalebar-v9:0.5.0
> Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.7.0.
> Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-android-sdk/9.7.0/mapbox-android-sdk-9.7.0.pom'.
> Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-android-sdk/9.7.0/mapbox-android-sdk-9.7.0.pom'. Received status code 403 from server: Forbidden
Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.7.0.
Required by:
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-places-v9:0.12.0
> Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.7.0.
> Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-android-sdk/9.7.0/mapbox-android-sdk-9.7.0.pom'.
> Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-android-sdk/9.7.0/mapbox-android-sdk-9.7.0.pom'. Received status code 403 from server: Forbidden
Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.7.0.
Required by:
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0
> Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.7.0.
> Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-android-sdk/9.7.0/mapbox-android-sdk-9.7.0.pom'.
> Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-android-sdk/9.7.0/mapbox-android-sdk-9.7.0.pom'. 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
I have the same problem, have you found a solution?
You get HTTP 403 Forbidden
. You need to pass correct credentials to access these resources.