-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Labels
bug 🪲Something isn't workingSomething isn't working
Description
Environment
- Android OS version: N/A
- Devices affected: N/A
- Maps SDK Version: 11.11.0
Observed behavior and steps to reproduce
Gradle build fails with errors, below, and file attached.
To reproduce, add the mapbox dependency, sync gradle, and attempt to build for the first time with the new mapbox dependency. Observe 8 errors. (Using Android Studio Meerkat | 2024.3.1 Patch 1)
FAILURE: Build completed with 8 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':composeApp:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':composeApp:debugRuntimeClasspath'.
> Could not find org.chromium.net:cronet-api:119.6045.31.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/chromium/net/cronet-api/119.6045.31/cronet-api-119.6045.31.pom
- https://api.mapbox.com/downloads/v2/releases/maven/org/chromium/net/cronet-api/119.6045.31/cronet-api-119.6045.31.pom
Required by:
project :composeApp > com.mapbox.maps:android:11.11.0 > com.mapbox.maps:base:11.11.0 > com.mapbox.common:common:24.11.0
> Could not find org.chromium.net:cronet-api:119.6045.31.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/chromium/net/cronet-api/119.6045.31/cronet-api-119.6045.31.pom
- https://api.mapbox.com/downloads/v2/releases/maven/org/chromium/net/cronet-api/119.6045.31/cronet-api-119.6045.31.pom
Required by:
project :composeApp > com.mapbox.maps:android:11.11.0 > com.mapbox.maps:base:11.11.0 > com.mapbox.common:common:24.11.0 > com.google.android.gms:play-services-cronet:18.1.0
* Try:
> 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.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':composeApp:checkDebugAarMetadata'.
...
Caused by: org.gradle.api.internal.artifacts.ivyservice.TypedResolveException: Could not resolve all files for configuration ':composeApp:debugRuntimeClasspath'.
at org.gradle.api.internal.artifacts.ResolveExceptionMapper.mapFailures(ResolveExceptionMapper.java:56)
...
Cause 1: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.chromium.net:cronet-api:119.6045.31.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/chromium/net/cronet-api/119.6045.31/cronet-api-119.6045.31.pom
- https://api.mapbox.com/downloads/v2/releases/maven/org/chromium/net/cronet-api/119.6045.31/cronet-api-119.6045.31.pom
Required by:
project :composeApp > com.mapbox.maps:android:11.11.0 > com.mapbox.maps:base:11.11.0 > com.mapbox.common:common:24.11.0
Cause 2: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.chromium.net:cronet-api:119.6045.31.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/chromium/net/cronet-api/119.6045.31/cronet-api-119.6045.31.pom
- https://api.mapbox.com/downloads/v2/releases/maven/org/chromium/net/cronet-api/119.6045.31/cronet-api-119.6045.31.pom
Required by:
project :composeApp > com.mapbox.maps:android:11.11.0 > com.mapbox.maps:base:11.11.0 > com.mapbox.common:common:24.11.0 > com.google.android.gms:play-services-cronet:18.1.0
With the caused by exception being:
Caused by: org.gradle.api.internal.artifacts.ivyservice.TypedResolveException: Could not resolve all files for configuration ...
Expected behavior
Gradle should be able to download the files for the mapbox dependency and build successfully.
Notes / preliminary analysis
Relevant files noted:
settings.gradle.kts:
// Mapbox Maven repository
maven {
url = uri("https://api.mapbox.com/downloads/v2/releases/maven")
}
libs.versions.toml:
[versions]
mapbox = "11.11.0"
...
[libraries]
com-mapbox-maps = { group = "com.mapbox.maps", name = "android", version.ref = "mapbox" }
...
build.gradle.kts:
implementation(libs.com.mapbox.maps)
And mapbox_access_token.xml
is present and populated with a freshly-generated token.
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="mapbox_access_token" translatable="false" tools:ignore="UnusedResources">sk.TOKEN_IS_SECRET</string>
</resources>
Additional links and references
File attached of gradle output and error(s).
Metadata
Metadata
Assignees
Labels
bug 🪲Something isn't workingSomething isn't working