Cordova + ReactJs => Android App (full)

I. Install Enviroment

export ANDROID_HOME=$HOME/Android/Sdkexport PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
  • Install java jdk
sudo apt-get update
sudo apt-get install oracle-java8-installer
// check jdk version
javac -version
  • Add path enviroment (~/.bashrc)
  • Install Sdkman
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
// check version
sdk version
  • Install Gradle
sdk install gradle 4.10
  • Append to .bashrc file
export SDKMAN_DIR="/home/user/.sdkman"
source "$HOME/.sdkman/bin/sdkman-init.sh"
  • DONE!!!

II. Cordova + Reactjs

  • Install Cordova
npm install -g cordova
  • Create cordova project and add platform android
cordova create MyApp
cd MyApp
cordova platform add android
  • Install create-react-app, create app in cordova project
npx create-react-app app
  • Build React app to folder www of cordova

III. Build app android release


comments powered by Disqus