mapbox / mapbox/mapbox-maps-android
Could not resolve all files. com.mapbox.maps:android v11.11.0
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 578
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
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.
```
sk.TOKEN_IS_SECRET
```
## Additional links and references
File attached of gradle output and error(s).
[mapbox gradle output.txt.zip](https://github.com/user-attachments/files/19799456/mapbox.gradle.output.txt.zip)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Gradle sync and build with com.mapbox.maps:android:11.11.0, then inspect settings.gradle.kts, libs.versions.toml, and build.gradle.kts alongside the reported dependency chain. Verify the fix by confirming org.chromium.net:cronet-api:119.6045.31 resolves and the composeApp debug build completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100