当前位置:网站首页>Gradle knowledge points

Gradle knowledge points

2022-06-25 12:17:00 User 9854323

1、applicationVariants Reference resources :https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ApplicationVariant

build.gradle

android.applicationVariants.all { variant ->
    println("applicationVariants")
    println(variant.name)
    println(variant.name.capitalize())
    println(variant.dirName)

    println(project.rootProject.projectDir)
    println(project.projectDir)
}

// Print :
applicationVariants
debug
Debug
debug
/Users/xxx/xxx/MyApplication
/Users/xxx/xxx/MyApplication/app
applicationVariants
release
Release
release
/Users/xxx/xxx/MyApplication
/Users/xxx/xxx/MyApplication/app

2、 Fully understand Gradle - Execution sequence https://blog.csdn.net/u013651026/article/details/79255826

3、moven Of pom https://www.runoob.com/maven/maven-pom.html

4、gradle Plug in debugging https://blog.bihe0832.com/gradle_plugin_debug.html

5、gradle Involved in compilation task https://www.jianshu.com/p/95db795ea026

原网站

版权声明
本文为[User 9854323]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206251146400469.html