-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error trying to run sample #1129
Comments
@kdupreez did you create your accesstoken file? and is there any more info than this? it just appears to be failing in the react native cli |
Ok, I so I reverted to installing everything on my Mac and got to a point where looks like everything runs and i can get the app on the simulator.. but now I think I am missing the Android specific setup bits from here: https://github.com/mapbox/react-native-mapbox-gl/blob/master/android/install.md How do I do this, should I create a blank android app project and add these options or something? I am kind of lost on how to get this running on android and what I need to to in order to get the packages registered etc.? I may be missing the point of using React Native to build cross platform mobile apps if I still have to create build and deploy a normal android studio native Java app to get the packages registered or something? Any step by step help to get the sample mapbox react-native app deployed to Android would be super appreciated..
|
Try these steps for creating a blank project. Create Project
Link Project there are only three files you need to update
Add Javascript
Run Project
|
Going to close this out if you're still having issues post back here or join our developer group https://gitter.im/react-native-mapbox-gl/Lobby for help |
I'm pretty sure I followed all the steps, but still no-go.. `Scanning folders for symlinks in /Users/xxxx/Projects/react-native/mapbox/node_modules (10ms) FAILURE: Build failed with an exception.
BUILD FAILED Total time: 1.802 secs |
not sure if its related, but when i tried to install the node package, i got these warnings: ` npm WARN @babel/[email protected] requires a peer of @babel/[email protected] but none was installed. |
You also need to add this to your |
The "example" provided is missing the dependency in the build.gradle file?? is that intentional ? https://github.com/mapbox/react-native-mapbox-gl/blob/master/example/android/build.gradle Missing this: |
you're looking at the wrong gradle file, that's the project level one, you need to look at the one in the app directory https://github.com/mapbox/react-native-mapbox-gl/blob/master/example/android/app/build.gradle |
yaaay! that was it.. it compiles and runs, but the map is blank... i copy and pasted the sample from https://www.mapbox.com/help/first-steps-react-native-sdk and of course using my token. |
You might be running into this #1041 (comment) |
yeah, i was getting similar errors in studio - Let me try the advanced gfx settings..
|
after installing dependencies with "npm i" and i do a "npm start i get the following errors?
[email protected] start /home/xxxx/code/mapbox/react-native-mapbox-gl/example
Scanning folders for symlinks in /home/xxxx/code/mapbox/react-native-mapbox-gl/example/node_modules (4ms)
Loading dependency graph...npm ERR! code ELIFECYCLE
npm ERR! errno 11
npm ERR! [email protected] start:
node node_modules/react-native/local-cli/cli.js start
npm ERR! Exit status 11
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
The text was updated successfully, but these errors were encountered: