Skip to content

Commit

Permalink
added a common problems section in CONTRIBUTING.md and a new file lis…
Browse files Browse the repository at this point in the history
…ting common problems
  • Loading branch information
cactusoftheday committed Jan 3, 2024
1 parent c621f16 commit 54b941c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
13 changes: 13 additions & 0 deletions COMMON_ERRORS.md
Original file line number Diff line number Diff line change
@@ -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```
10 changes: 2 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Contributions are welcome and are greatly appreciated!

## <a name="setup">Setting up your environment</a>
## Setting up your environment

After forking to your own github org or account, do the following steps to get started:

Expand All @@ -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

Expand Down

0 comments on commit 54b941c

Please sign in to comment.