मैं अपने एंड्रॉइड एप्लिकेशन में मैपबॉक्स का उपयोग करने की कोशिश कर रहा हूं। मैं एंड्रॉइड स्टूडियो 0.8.0 का उपयोग करता हूं। मैं अपने build.gradle में इस लाइन फाइलXML को पार्स करने में त्रुटि: मैपबॉक्स के लिए अनबाउंड उपसर्ग
compile ('com.mapbox.mapboxsdk:mapbox-android-sdk:[email protected]'){
transitive=true
}
compile ('com.cocoahero.android:geojson:[email protected]'){
transitive=true
}
शामिल किया है लेकिन जब मैं अपने xml फ़ाइल में यह उपयोग कर रहा हूँ, यह एक नाम स्थान त्रुटि है। मैपबॉक्स नेमस्पेस का कारण बनता है। कोई विचार क्या कारण हो सकता है?
<?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>
डालने की कोशिश करो केवल mapId = "अपने मानचित्र आईडी कुंजी " – Psypher