React Native Pre Settitng

npm install -g react-native-cli
genymotion

https://schier.co/blog/2013/11/13/install-genymotion-20-in-ubuntu.html

android studio
yarn start
react-native link
react-native run-android
https://medium.com/@vonchristian/how-to-setup-watchman-on-ubuntu-16-04-53196cc0227c
https://github.com/facebook/watchman/issues/542

https://medium.com/@_illusionist_/installing-android-sdk-without-android-studio-in-ubuntu-for-reactnative-f4a4d1a2ee96

.profile export ANDROID_HOME=${HOME}/Android/Sdk

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

sudo apt-get install adb
sudo apt-get install android-tools-adb


adb reverse tcp:8081 tcp:8081

adb reverse tcp:9091 tcp:9091

// Google play for genymotion http://opengapps.org/

//
https://medium.com/@bilalbayasut/adb-is-server-is-out-of-date-killing-fbfbdc32707a
https://stackoverflow.com/questions/47299004/react-native-error-when-run-android?rq=1



// clean cache
https://stackoverflow.com/questions/22835372/clean-genymotion-virtual-devices-local-cache

// install google map sdk
https://developers.google.com/maps/documentation/android-api/signup#key-std-details

===== history ====

   npm install -g react-native-cli
   sudo npm i -g npm
   npm -v
   sudo npm install -g react-native-cli
   echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
   sudo apt-get update
   sudo apt-get upgrade
   sudo curl -o- -L https://yarnpkg.com/install.sh | bash
   sudo apt-get install adb
   sudo apt-get install android-tools-adb
  sudo apt-get install libssl-dev libmd-dev
   sudo apt-get install libtoolize
   cd ~
   git clone https://github.com/facebook/watchman.git
   sudo apt-get install -y autoconf automake build-essential python-dev
   cd watchman/
   git checkout v4.7.0
   git clean -dfx
   ./autogen.sh
   ./configure
   make
   sudo make install
   watchman --version
   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
   chmod +x genymotion-2.12.1-linux_x64
   ./genymotion-2.12.1-linux_x64
   chmod +x genymotion-2.12.1-linux_x64.bin
   ./genymotion-2.12.1-linux_x64.bin
   mv genymotion ~/.genymotion
   echo 'export PATH="/home/$USER/.genymotion:$PATH"' >> ~/.bashrc
   genymotion
   export ANDROID_HOME=${HOME}/Android/Sdk
   echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
   cp ~/Android/Sdk/platform-tools/adb /usr/bin/adb
   sudo cp ~/Android/Sdk/platform-tools/adb /usr/bin/adb
   chmod +x /usr/bin/adb
   sudo apt-get install lib32stdc++6 lib32z1
   find ~ -name ".android"


No comments:

Post a Comment