mapbox / mapbox/mapbox-navigation-android
Failed at Download Sources in NavigationView.class at Mapbox
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Kotlin
- Sterne
- 651
- Forks
- 321
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der build.gradle der App und ihrer Abhängigkeit com.mapbox.navigation:ui:1.1.0 und reproduziere anschließend den Fehler der Aufgabe :app:DownloadSources. Untersuche, wie NavigationView als kompilierte Klasse aufgelöst wird und ob das aufgeführte Sources-Artefakt verfügbar ist. Erledigt ist die Aufgabe, wenn Quellen angehängt oder heruntergeladen werden können und die Navigation wie erwartet startet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, kotlin
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100