Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

a multi-core X86 host with a minimum requirement of 16GB of RAM and a minimum disk size of 512GB.

...

  • Execute gradle and build the apk

Code Block
./gradlew build

Helpful tip: During the process of building an APK using this command, the Gradle installation package will be downloaded first. If the build process is taking a long time, you can follow the four steps below to speed up this step.

Step 1: Execute the command ./gradlew build, which will generate a directory. In the example given below, it is /root/.gradle/wrapper/dists/gradle-7.6-bin/9l9tetv7ltxvx3i8an4pb86ye/. Please locate the folder generated in your own gradle-7.6-bin directory.

...

Step 2: Manually download the Gradle installation package.
9l9tetv7ltxvx3i8an4pb86ye with your own directory name.

Code Block
wget https://services.gradle.org/distributions/gradle-7.6-bin.zip

...

Step 3: Copy the Gradle archive to the generated directory. Make sure to replace 9l9tetv7ltxvx3i8an4pb86ye with your own directory name.

Code Block
cp gradle-7.6-bin.zip /root/.gradle/wrapper/dists/gradle-7.6-bin/9l9tetv7ltxvx3i8an4pb86ye/

Step 4: Execute the build process again. This time, the build process will be much faster!

Code Block
./gradlew build

...