Android Gradle Plugin (AGP) is android build tools that defined in the settings.gradle (new version)
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.1" apply false // this mean AGP version 7.3.1
id "org.jetbrains.kotlin.android" version "2.1.0" apply false // this is mean the project use kotlin version 2.1.0
...
}*note: you should check the compatibility between AGP, Gradle Wrapper and Kotlin version to build project. Sometime you need to look up into release note of AGP, Gradle or Kotlin for compatibility updates.
Gradle Wrapper is gradle version that defined in the gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip # this mean you will build the project with gradle version 7.6.3You can check the available version in the Gradle Service site
You can find java in the Android Studio folder C:\Program Files\Android\Android Studio\jre\bin or when you installed newer Android Studio it maybe located at jbr directory like C:\Program Files\Android\Android Studio 2024\jbr\bin
In this folder you can use the javac to compile code that written in java. e.g:
// Main.java
public class Main {
public static void main(String[] args) {
System.out.println("Hello");
}
}Complile the java code with the following command and it will produce Main.class:
$ /c/Program\ Files/Android/Android\ Studio\ 2024/jbr/bin/javac Main.javaOnce the Main.class file has been created, you can run the program with the following command:
$ /c/Program\ Files/Android/Android\ Studio\ 2024/jbr/bin/java MainSimilar with the java but the kotlin compiler is located at C:\Program Files\Android\Android Studio 2024\plugins\Kotlin\kotlinc\bin