我想在我的android應用程序中使用mapbox。我使用android studio 0.8.0。我已經包括這條線在我的build.gradle文件解析XML時出錯:mapbox的未綁定前綴
compile ('com.mapbox.mapboxsdk:mapbox-android-sdk:[email protected]'){
transitive=true
}
compile ('com.cocoahero.android:geojson:[email protected]'){
transitive=true
}
但是當我在我的XML文件中使用它,它有一個命名空間的錯誤。 mapbox命名空間會導致這種情況。任何想法可能會導致什麼?
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/parent_layout">
<LinearLayout
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="15sp"
android:text="this is the general tab"/>
<com.mapbox.mapboxsdk.views.MapView -->not causing error
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
mapbox:mapid="Your MapBox mapid" /> -->causing error
</LinearLayout>
</ScrollView>
嘗試把唯一的azazaz =「你的地圖ID密鑰「 – Psypher 2014-09-24 04:31:46