最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

rnmapboxmaps Error: @rnmapboxmaps native code not available. App Entry not found for react native expo app android platform - St

programmeradmin0浏览0评论

@rnmapbox/maps library is not working with a React Native Expo app on the Android platform.
Plugin versions:

  • @rnmapbox/maps: "^10.1.33"
  • react-native: "0.76.5"
  • expo: "~52.0.24"

Error: @rnmapbox/maps native code not available. Make sure you have linked the library and rebuild your app. See this link.

On the emulator, the error displayed is: "App entry not found."
If I try running with CLI using 'npm run android', it throws the following error:

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all dependencies for configuration ':app:debugCompileClasspath'.
   > Could not resolve com.mapbox.maps:android:10.18.4.
     Required by:
         project :app
      > Could not resolve com.mapbox.maps:android:10.18.4.
         > Could not get resource '.18.4/android-10.18.4.pom'.
            > Could not GET '.18.4/android-10.18.4.pom'. Received status code 403 from server: Forbidden

I have followed the Android configuration instructions at this link, but it didn't work.

@rnmapbox/maps library is not working with a React Native Expo app on the Android platform.
Plugin versions:

  • @rnmapbox/maps: "^10.1.33"
  • react-native: "0.76.5"
  • expo: "~52.0.24"

Error: @rnmapbox/maps native code not available. Make sure you have linked the library and rebuild your app. See this link.

On the emulator, the error displayed is: "App entry not found."
If I try running with CLI using 'npm run android', it throws the following error:

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all dependencies for configuration ':app:debugCompileClasspath'.
   > Could not resolve com.mapbox.maps:android:10.18.4.
     Required by:
         project :app
      > Could not resolve com.mapbox.maps:android:10.18.4.
         > Could not get resource 'https://api.mapbox/downloads/v2/releases/maven/com/mapbox/maps/android/10.18.4/android-10.18.4.pom'.
            > Could not GET 'https://api.mapbox/downloads/v2/releases/maven/com/mapbox/maps/android/10.18.4/android-10.18.4.pom'. Received status code 403 from server: Forbidden

I have followed the Android configuration instructions at this link, but it didn't work.

Share Improve this question edited Jan 18 at 15:29 aitchdot 5032 silver badges13 bronze badges asked Jan 18 at 13:08 jyotijyoti 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

That error is usually caused by a missing / misconfigured sk.. key in your app.{json,config.js,config.ts}'s plugins.

Double check it's properly added to the config plugins:

{
  "expo": {
    "plugins": [
      [
        "@rnmapbox/maps",
        {
          "RNMapboxMapsDownloadToken": "sk.ey.."
        }
      ]
    ]
  }
}

Make sure it has the scope for "DOWNLOADS:READ"

and then rebuild your development client(s)

eas build --profile development --platform android

eas build --profile development-simulator --platform ios

发布评论

评论列表(0)

  1. 暂无评论