Error solution

react native syntaxerror unexpected reserved word

Solution:

sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo ln -sf /usr/local/n/versions/node//bin/node /usr/bin/node

/usr/bin/env: node: No such file or directory

Solution:

ln -s /usr/bin/nodejs /usr/bin/node

Ref: https://github.com/nodejs/node-v0.x-archive/issues/3911

Couldn't get the native call queue: bridge configuration isn't available

picture

Solution: Create an another terminal and type this command

react-native start

ERROR A non-recoverable condition has triggered. Watchman needs your help!

Solution: you can fix it by this command

echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_watches && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_queued_events && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_instances && watchman shutdown-server

pywatchman/bser.c:31:20: fatal error: Python.h: No such file or directory

Solution: You need to install Python development files. You can install it by these command.

sudo apt-get install python-dev

ndk-build arm-linux-androideabi-gcc: Command not found

Solution: Maybe it's bug about NDK. You can change your ndk version (ex: Android NDK, Revision 10e) from google web site

Failed to build DependencyGraph: Naming collision detected:

Solution: Please check your nodeJS and NPM package version. If the nodeJS is small than 5.x, then upgrade to 5.X up.

upgrade command

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs

Super expression must either be null or a function, not undefined

Solution: upgrade your react-native version to 0.27 up

upgrade command

npm install --save [email protected]

could not connect development server react native

Soution: Set your server ip in android code.

String name = $packagename + "_preferences" SharedPreferences settings = getSharedPreferences(name, 0); SharedPreferences.Editor editor = settings.edit(); editor.putString("debug_http_host", $YOUR_SERVER_IP); editor.commit();

SharedPreferences settings = getSharedPreferences("com.homeplus_preferences", 0);
SharedPreferences.Editor editor = settings.edit();
editor.putString("debug_http_host", "192.168.1.54:8081");
editor.commit();

libgnustl_shared.so" is 32-bit instead of 64-bit

Solution: android { defaultConfig { ndk { abiFilters "armeabi-v7a", "x86" } } packagingOptions { exclude "lib/arm64-v8a/librealm-jni.so" } }

results matching ""

    No results matching ""