map-ir/mapir-react-native-sdk

Could not resolve project :@react-native-mapbox-gl_maps.

Ashkan-Oliaie opened this issue · 1 comments

After linking manually in both 0.60.4 and 0.59.5 I got this error on build.
I guess there must be something wrong with the linking process or setting.gradle.

Could not determine the dependencies of task ':app:preDebugBuild'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not resolve project :@react-native-mapbox-gl_maps.
Required by:
project :app
> Unable to find a matching configuration of project :@react-native-mapbox-gl_maps:
- None of the consumable configurations have attributes.

All right, after hours of trying to fix this ,
I found the problem ,
It's still unknown to me but
the implementation for setting.gradle that you provided are not proper,

+project(':@react-native-mapbox-gl_maps').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-mapbox-gl/maps/android/rctmgl')

simply for me the folder doesn't exist at all,
instead I changed it to :

project(':@react-native-mapbox-gl_maps').projectDir = new File(rootProject.projectDir, '../node_modules/mapir-mapbox/android/rctmgl')