【问题标题】:Mapbox not installing properly withMapbox 无法正确安装
【发布时间】: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


    【解决方案1】:

    请您检查一下这个问题吗here

    它可能会解决你的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-12-13
      • 2020-09-23
      • 2020-01-29
      • 2020-08-20
      • 2012-12-02
      • 2020-07-19
      • 2015-09-18
      相关资源
      最近更新 更多