mapbox / mapbox/mapbox-navigation-android
Failed at Download Sources in NavigationView.class at Mapbox
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 651
- Forks
- 321
- PR merge metrics
- No merged PRs in 30d
Description
**Android API: 29**
**Mapbox Navigation SDK version: 1.0.0**
I'm developing an Android Studio app with navigation using Mapbox.
My problem is that I cannot have the source of NavigationView. I mean, instead of NavigationView.java I have NavigationView.class with this message on the top:
>Decompiled .class file, bytecode version 52.0(java 8).
>
with the options of **Download Sources** and **Choose Sources**.
When I choose the option of **Download Sources** I have the following error:
```Executing tasks: [DownloadSources] in project /****/****/****/****/****/****
> Task :app:DownloadSources FAILED
1 actionable task: 1 executed
FAILURE: Build failed with an exception.
* Where:
Initialization script '/private/var/folders/8m/x8f28hgx685g1cm7zy_dxbbr0000gn/T/ijmiscinit12.gradle' line: 20
* What went wrong:
Execution failed for task ':app:DownloadSources'.
> Could not resolve all files for configuration ':app:downloadSources_fef929a7-720c-4d1b-b94c-6ee7e6d79f4e'.
> Could not find com.mapbox.navigation:ui:1.1.0@aar.
Required by:
project :app
* 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 2s
09:48:57: Task execution finished 'DownloadSources'.
```
I found a file called *Gradle__com_mapbox_navigation_ui_1_1_0_aar.xml* where it has the following content:
```
```
And I realise that in the line where it says
>library name="Gradle: com.mapbox.navigation:ui:1.1.0@aar"
>
is where it is the problem. How can I solve this?
PD: I have tried **Choose source** and choose the source file but it doesn't make anything.
PD 2: In my build.gradle I am using implementation ```'com.mapbox.navigation:ui:1.1.0'```
Thanks! :)
### Expected behavior
Navigation starting
### Actual behavior
Navigation doesn't start
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 with the app's build.gradle and its com.mapbox.navigation:ui:1.1.0 dependency, then reproduce the :app:DownloadSources task failure. Inspect how NavigationView is resolved as a compiled class and whether the listed sources artifact is available. Done means sources can be attached or downloaded and navigation starts as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100