[英]error: No resource identifier found for attribute 'layout_alignStart' in package 'android'
[英]No resource identifier found for attribute '' in package Android Layout
我在Android Studio 2.1中具有以下布局
<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>
它顯示以下錯誤:
在包'com.example.myapp'中找不到屬性'accessToken'的資源標識符
在這種情況下,生成一個簡單的Mapbox應用程序會產生錯誤。 我正在從源代碼開發mapbox(是的,我需要源代碼構建,而不是預構建)。
看到:
https://github.com/mapbox/mapbox-gl-native/blob/master/INSTALL.md
源樹用於多個平台,我正在使用:
https://github.com/mapbox/mapbox-gl-native/tree/master/platform/android
源代碼版本作為依賴庫位於:
myapp / app / libs / mapbox-gl-native / platform / android
我嘗試使用其他類似的文章導入模塊以及更多內容,但是沒有幫助。
盡管對我的特定問題的解決方案非常棒,但僅了解消息的原因也可能有所幫助。 我讀到的所有內容都是針對類似消息的特定解決方案,但是我找不到有關消息本身的任何信息。
謝謝
不確定,但看起來他們將名稱從accessToken更改為access_token。 我不能確定,因為這只會帶來一個新的錯誤。 我假設新錯誤不是舊錯誤,而是舊錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.