react-native-maps icon indicating copy to clipboard operation
react-native-maps copied to clipboard

Do not install v0.14.0 on Android

Open hemedani opened this issue 9 years ago • 10 comments

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"

hemedani avatar Apr 08 '17 10:04 hemedani

The version 0.13.1 working fine

hemedani avatar Apr 08 '17 10:04 hemedani

I have exactly same problem after updating from 0.13.1 to 0.14 :/

henrikra avatar Apr 08 '17 20:04 henrikra

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.

ghost avatar Apr 08 '17 23:04 ghost

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.

ghost avatar Apr 08 '17 23:04 ghost

is there any solution towards this problem please?

zengyanzi avatar Apr 12 '17 10:04 zengyanzi

i can confirm that version 0.14 is buggy on android:

  1. react-native link react-native-maps not working
  2. 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.
  1. after downgrading to version 0.13, works as expected

iztokf avatar Apr 12 '17 10:04 iztokf

image here is my error

zengyanzi avatar Apr 12 '17 11:04 zengyanzi

as a workaround you can manually remove .babelrc file in node_modules/react-native-maps hope it will be fixed soon

karpoff avatar Apr 13 '17 07:04 karpoff

@hemedani @henrikra @chris-at-translate @zengyanzi

        npm install --save-dev babel-plugin-module-resolver

PARAGJYOTI avatar Apr 17 '17 14:04 PARAGJYOTI

@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...

prajapati-parth avatar May 03 '17 02:05 prajapati-parth