diff --git a/COMMON_ERRORS.md b/COMMON_ERRORS.md new file mode 100644 index 000000000..4474f09fc --- /dev/null +++ b/COMMON_ERRORS.md @@ -0,0 +1,13 @@ +## Common Problems with First Setup + +#### SDK Location not found. Define location with an ANDROID_SDK_ROOT environment variable. (expo modules error) + +If you're on windows, you'll need to edit your system (system wide)/user (just you) environment variables. You'll want to add an environment variable named **ANDROID_SDK_ROOT** (legacy env variable name) and **ANDROID_HOME** that points to your android studio's sdk location. It'll most likely look something like this: + +C:\Users\\**Username**\AppData\Local\Android\Sdk (copy paste this into the box) + +Delete your node_modules folder, invalidate caches and restart in android studio and restart your machine. Follow the steps again in the [setup section](./CONTRIBUTING.md#setup). + +#### '.' is not recognized as an internal or external command, operable program or batch file. (npm run buildRelease error) + +Run this line in the terminal instead: ```cd android ; ./gradlew clean ; ./gradlew assembleRelease``` \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3152c2224..3250d1b8f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ Contributions are welcome and are greatly appreciated! -## Setting up your environment +## Setting up your environment After forking to your own github org or account, do the following steps to get started: @@ -27,13 +27,7 @@ npm run buildRelease ### Common Problems with First Setup -##### SDK Location not found. Define location with an ANDROID_SDK_ROOT environment variable. (expo modules error) - -If you're on windows, you'll need to edit your system (system wide)/user (just you) environment variables. You'll want to add an environment variable named **ANDROID_SDK_ROOT** (legacy env variable name) and **ANDROID_HOME** that points to your android studio's sdk location. It'll most likely look something like this: - -C:\Users\\**Username**\AppData\Local\Android\Sdk (copy paste this into the box) - -Delete your node_modules folder, invalidate caches and restart in android studio and restart your machine. Follow the steps again in the [setup section](#setup). +Please refer to this [file](./COMMON_ERRORS.md) ### Developing on Android