Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Bernd edited this page Feb 7, 2025 · 6 revisions

The core of the development environment for c:geo is Android Studio.

Preparation

Install git. Windows users may want to look here: https://gitforwindows.org/.

Android Studio (or IntelliJ IDEA)

  • Install Android Studio from https://developer.android.com/sdk/index.html.

  • On first start, follow the setup wizard using default options.

  • When asked what project to start with, configure git first (set path to git executable), then choose to clone a project from version control, and choose github afterwards. Enter https://github.com/cgeo/cgeo as base URL and supply your credentials. If you plan to actively contribute, use the path to your fork of c:geo instead.

  • Android Studio should detect that gradle is used for building cgeo. If it complains that this is not a gradle project, then close the project. Choose "Import project" and select the build.gradle or settings.gradle in the root directory of the git repository.

  • Make sure to use JDK 17 in your IDE.
    Android Studio will integrate a OpenJDK 21 installation automatically during setup. You have to change the JDK version in the AS settings - Gradle JDK - Download JDK. We suggest to use the "JetBrains Runtime".

  • c:geo uses Checkstyle to verify that coding standards are followed throughout the project. To see violations directly in Android Studio you need to install the CheckStyle-IDEA Plugin and configure the Java Code Style by importing the checkstyle.xml file available in the project root directory.

Clone this wiki locally