【发布时间】:2022-07-06 13:49:13
【问题描述】:
我正在尝试在我的 nativesctipt 应用程序中使用 @nativescript-community/ui-mapbox 插件。
将插件添加到我的应用程序后
ns plugin add @nativescript-community/ui-mapbox
<Page xmlns="http://schemas.nativescript.org/tns.xsd" xmlns:map="@nativescript-community/ui-mapbox" navigatingTo="navigatingTo">
<StackLayout>
<Label text="Nice map, huh!" class="title"/>
<ContentView height="240" width="240">
<map:MapboxView
accessToken="your_token"
mapStyle="traffic_night"
latitude="52.3702160"
longitude="4.8951680"
zoomLevel="3"
showUserLocation="true"
mapReady="onMapReady">
</map:MapboxView>
</ContentView>
</StackLayout>
</Page>
运行tns run android 命令时,出现以下错误:
Build file '/Users/Mac/lete/letesell/platforms/android/app/build.gradle' line: 575
A problem occurred configuring project ':app'.
Could not find com.mapbox.mapboxsdk:mapbox-android-accounts:0.7.0.
Required by:
project :app
project :app > com.mapbox.mapboxsdk:mapbox-android-sdk:9.2.0
【问题讨论】:
-
这个运气好吗?我有同样的问题