Do not install v0.14.0 on Android
In install instruction you say should add this line in android/settings.gradle :
include ':react-native-maps'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/android')
But in the ../node_modules/react-native-maps we don't have android folder I think it's move to lib folder, so I change the path to :
include ':react-native-maps'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
The path error for dependency is fixed but we have Unknown plugin "module-resolver" problem :
TransformError: /home/syd/Work/ignite/TaxiBS/node_modules/react-native-maps/index.js: Unknown plugin "module-resolver" specified in "/home/syd/Work/ignite/TaxiBS/node_modules/react-native-maps/.babelrc" at 0, attempted to resolve relative to "/home/syd/Work/ignite/TaxiBS/node_modules/react-native-maps"
The version 0.13.1 working fine
I have exactly same problem after updating from 0.13.1 to 0.14 :/
Yup I encountered the same problem too, upgrading the same as @henrikra above. I was also looking around and found that it's related to babelrc. For one reason or another. Let me find the issue again.
Sorry if this is messy I'm on my phone. This issue here #1206 references this issue here https://github.com/airbnb/react-native-maps/issues/795#issuecomment-289828439 which makes my project work again but breaks other libraries I'm using.
is there any solution towards this problem please?
i can confirm that version 0.14 is buggy on android:
react-native link react-native-mapsnot working- if i manually set up dependencies (settings.gradle, build.gradle, MainApplication.java) i get this during build:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> Configuration with name 'default' not found.
- after downgrading to version 0.13, works as expected
here is my error
as a workaround you can manually remove .babelrc file in node_modules/react-native-maps hope it will be fixed soon
@hemedani @henrikra @chris-at-translate @zengyanzi
npm install --save-dev babel-plugin-module-resolver
@PARAGJYOTI After downgrading to 0.13.1 react-native run-android seems to work fine but now bundle creation throws the following error
watch /home/parth/Documents/Projects/trash/testmap/node_modules/react-native-maps/android/build/intermediates/res/merged/debug/values-sv ENOSPC
{"code":"ENOSPC","errno":"ENOSPC","syscall":"watch /home/parth/Documents/Projects/trash/testmap/node_modules/react-native-maps/android/build/intermediates/res/merged/debug/values-sv","filename":"/home/parth/Documents/Projects/trash/testmap/node_modules/react-native-maps/android/build/intermediates/res/merged/debug/values-sv"}
Error: watch /home/parth/Documents/Projects/trash/testmap/node_modules/react-native-maps/android/build/intermediates/res/merged/debug/values-sv ENOSPC
at exports._errnoException (util.js:1029:11)
at FSWatcher.start (fs.js:1399:19)
at Object.fs.watch (fs.js:1425:11)
at NodeWatcher.watchdir (/home/parth/Documents/Projects/trash/testmap/node_modules/jest-haste-map/node_modules/sane/src/node_watcher.js:148:20)
at Walker.<anonymous> (/home/parth/Documents/Projects/trash/testmap/node_modules/jest-haste-map/node_modules/sane/src/node_watcher.js:361:12)
at emitTwo (events.js:106:13)
at Walker.emit (events.js:194:7)
at /home/parth/Documents/Projects/trash/testmap/node_modules/walker/lib/walker.js:69:16
at go$readdir$cb (/home/parth/Documents/Projects/trash/testmap/node_modules/graceful-fs/graceful-fs.js:149:14)
at FSReqWrap.oncomplete (fs.js:114:15)
If you've experienced this before can you please help...