I am trying to use mapbox in my android app. I am using android studio 0.8.0. I included this line in the build.gradle file
compile ('com.mapbox.mapboxsdk:mapbox-android-sdk: 0.4.0@aar '){ transitive=true } compile ('com.cocoahero.android:geojson: 1.0.0@aar '){ transitive=true }
But when I use it in my XML file, it has a namespace error. The mapbox namespace calls this. any idea what might cause this?
<?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>
source share