map-ir / mapir-react-native-sdk

MIT License
14 stars 3 forks source link

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

Closed Ashkan-Oliaie closed 4 years ago

Ashkan-Oliaie commented 5 years ago

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.
Ashkan-Oliaie commented 5 years ago

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')