Skip to content

Android installation

Max Franke edited this page Nov 24, 2023 · 3 revisions

Android install

You will need

$ node -v
v18.15.0

$ npm -v
v9.5.0

$ java -version
openjdk version "11.0.16.1" 2022-08-12
OpenJDK Runtime Environment (build 11.0.16.1+1)
OpenJDK 64-Bit Server VM (build 11.0.16.1+1, mixed mode)

If you want to run a simulator:

Install Android Studio and setup a device with google play store
    Device info in android studio:
        Pixel 7, API 33, android 13 (recommended)
				any other device...

If you want to run in an external device:

TODO

Install eas-cli globally (with npm) to build

$ npx expo

Install modules

$ npm install

Go to settings.json and flip the flag dev to 'true'

// settings.json

dev: true

And then run:

$ npx expo run:android

Android troubleshoot

If it crashes with an error message with something like: ANDROID_SDK_ENVIRONMENT missing...

$ export ANDROID_HOME=$HOME/Android/Sdk
$ export PATH=$PATH:$ANDROID_HOME/tools

If it results in a error with gradle:

$ cd android && ./gradlew clean
Clone this wiki locally