Skip to content

Commit 78d8d35

Browse files
committed
Add troubleshooting for Gradle sync in CONTRIBUTING.md
1 parent 442cd02 commit 78d8d35

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ git clone --recursive https://github.com/Infomaniak/realm-kotlin.git
2929
Otherwise, you might encounter puzzling CMake compilation or runtime errors,
3030
even if the prerequisites specified above are fulfilled.
3131

32+
#### Troubleshooting Gradle sync issues
33+
34+
If you get weird errors about no cmake found when trying to perform Gradle try these steps:
35+
36+
1. Ensure the `cmake` command is recognized in the terminal (if not add your local cmake to the PATH)
37+
2. Kill all `java` processes on your machine, to have no remaining stale Gradle daemon
38+
3. Run `./gradlew pTML` (will run `publishToMavenLocal`), this will use the local `cmake`
39+
4. Try to perform Gradle sync, this should reuse whatever was done through CLI.
40+
3241
### Windows support
3342

3443
The repository can be built on Windows, although only for the JVM and Android targets. Beware of the following requirements:

0 commit comments

Comments
 (0)