【发布时间】:2022-07-13 00:04:54
【问题描述】:
我已尝试使用 react-native-mapbox-gl's README.md 中的博览会说明精确地按照说明为带有 typescript 模板的新博览会安装 Mapbox。
然而,运行 expo run:android 会产生以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Cannot query the value of this provider because it has no value available.
或
* What went wrong:
A problem occurred configuring project ':app'.
> Could not create task ':app:lint'.
> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/home/matias/codeprojects/expo-apps/blank-mapbox/android/local.properties'.
我已经安装了 android studio 和 android SDK。 sdk.dir 在 expo 应用程序的 local.properties 中设置。
我无法通过谷歌搜索或搜索网络来解决此问题。根本问题是,如何将 Mapbox 与 Expo 结合使用?
【问题讨论】:
标签: react-native expo mapbox native