Setting up FDroid in Android Studio
- Install Java 1.6 or newer
- Get Android Studio, a custom version of IntelliJ: https://developer.android.com/sdk/installing/studio.html
- Get fdroidclient from git: git clone https://gitlab.com/fdroid/fdroidclient.git
- Set up the git submodules: cd fdroidclient && git submodule update --init --recursive
- In Android Studio, select "Import project..." from the main start screen, or from the file menu
- This will ask if you want to use "gradle wrapper". There is no harm in doing this, and it will in fact make sure that the version of Gradle used to build F-Droid is correct. The Android SDK usually doesn't work with the very latest version of Gradle anyway.
Once the project has been imported, it should initiate a gradle build, which is similar to running "gradle assembleDebug" on the command line. It should automatically pick up all required dependencies and 3rd party libraries. Also note that the initial build will take quite a long time to run.