Ich habe folgendes Layout in Android Studio 2,1Kein Resource Identifier für Attribut 'gefunden' im Paket Android-Layout
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.kea.trimetrail.MainActivityFragment"
tools:showIn="@layout/activity_main">
<com.mapbox.mapboxsdk.maps.MapView
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
mapbox:accessToken="@string/mapbox_access_token"/>
</RelativeLayout>
Es zeigt die folgende Fehlermeldung:
Keine Resource Identifier für Attribut gefunden ' accessToken 'im Paket' com.example.myapp '
In diesem Fall wird der Fehler beim Erstellen einer einfachen Mapbox-Anwendung generiert. Ich entwickle mapbox aus der Quelle (ja, ich brauche die Quell-Build, nicht die vorgefertigten).
See:
https://github.com/mapbox/mapbox-gl-native/blob/master/INSTALL.md
Der Quellbaum für mehrere Plattformen ist, verwende ich:
https://github.com/mapbox/mapbox-gl-native/tree/master/platform/android
Die Quelle Build an als abhängige Bibliothek befindet sich befindet:
myapp/app/libs/mappbox-gl-native/plattform/android
Ich habe versucht, das Modul und andere ähnliche Beiträge zu importieren, aber nichts hilft.
Während eine Lösung für mein spezielles Problem großartig wäre, könnte auch das Verständnis der Ursache der Nachricht helfen. Alles, was ich lese, handelt von spezifischen Lösungen für ähnliche Nachrichten, aber ich kann keine Informationen über die Nachricht selbst finden.
Thx
Hey, hast du es endlich zur Arbeit gebracht? Ich bekomme jetzt die gleichen Fehler. – lidkxx
Gefunden Sie diese https://github.com/mapbox/mapbox-gl-native/wiki/Android-4.x-to-5.0-update#mapbox-access-token in der Dokumentation, vielleicht wird es Ihnen helfen. – lidkxx