maps: Android build fails on RN0.73 - :rnmapbox_maps:compileDebugKotlin

Environment

  • Dev OS: Mac/Android
  • @rnmapbox/maps version: 10.0.15
  • React Native version: 0.73

Steps to reproduce

Create a new RN 0.73 project via:

npx react-native@latest init AwesomeProject

Install @rnmapbox/maps

Build on Android.

Screenshot 2023-12-08 at 08 30 41

buildscript {
    ext {
        buildToolsVersion = "34.0.0"
        minSdkVersion = 21
        compileSdkVersion = 34
        targetSdkVersion = 34
        ndkVersion = "25.1.8937393"
        kotlinVersion = "1.8.0"
        RNMapboxMapsImpl = "mapbox"
    }
    ...
}

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

“react-native”: “0.73.6”, kotlinVersion = “1.8.0”

@tdavis10 above are mine versions I don’t use ndk, I would suggest you to change kotlinVersion to mine version and try.

I got it working downgrading to rnmapbox/maps: 10.1.29, keeping my same versions

Nope. I am not setting RNMapboxMapsVersion. I do set RNMapboxMapsImpl = ‘mapbox’.

I’m wondering if it is because of the Kotlin version change in the latest RN? (It is now set to 1.8)

However, I can confirm that by using @rnmapbox/maps@10.1.0-rc.4 it works OK.