0
に属性を使用することはできません。最初は、属性名が変更されたと考えましたが、他の属性(たとえば、mapbox_cameraZoom
)も機能しません。エラーを修正するにはどうすればよいですか?はmapboxがMapbox SDK 5.2.0にアップグレードした後、私は次のエラーを取得するXML
build.gradle:
dependencies {
...
compile ('com.mapbox.mapboxsdk:mapbox-android-sdk:5.2.0') {
transitive=true
}
}
がlayout.xml:
<?xml version="1.0" encoding="utf-8"?>
<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">
<com.mapbox.mapboxsdk.maps.MapView
android:id="@+id/mapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
mapbox:mapbox_styleUrl="@string/mapbox_style_url"/>
</RelativeLayout>