Trouble building backend
Steps to reproduce the bug:
- Follow contributing guide
-
- Android studio, sdk, ndk, cmake all installed
-
-
ANDROID_NDK_HOME
set to sdk/ndk-bundle
-
- run
npm build-backend
, this is the step that is failing duringnpm run buld-android-debug
Expected behavior:
Compile application
Actual behavior:
Error:
added 698 packages in 11.677s
Updating package-lock.json
Patch (in preprocessor style) some dependencies...
Done.
Building native modules for armeabi-v7a...
> Configure project :app
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> java.lang.NullPointerException (no error message)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
Unhandled script error 1 at ./tools/minify-backend:20
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! manyverse@0.1901.21-beta build-backend: `./tools/build-backend && ./tools/minify-backend`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the manyverse@0.1901.21-beta build-backend script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/robbie/.npm/_logs/2019-01-22T22_15_23_804Z-debug.log
Technical details
Ubuntu 18.04.1 Node 8.9.4 / npm 5.6
**Non-Technical Details
I remember the contribution docs changing a while back so maybe I'm missing something now. This is all on a fresh system for me.
Some things that stood out were the official react native docs which just instruct to install the expo cli. The nodejs-mobile docs which instruct to install ndk-r18b and point the env var at that.
From the steps in build and run in development only the build-backend
fails. It looks like it is failing to build the nodejs module.