gpt4 book ai didi

android - 如何在Android Studio中找到gradle插件的所有可用属性和方法?

转载 作者:行者123 更新时间:2023-12-03 05:24:18 26 4
gpt4 key购买 nike

有没有办法找到Gradle插件的所有可用属性和方法,还是纯粹依赖于文档?

我是否缺少Android Studio中显示所有可用选项的Gradle命令或窗口?没有它,我几乎不得不猜测...

在这种特殊情况下,我正在寻找有关Firebase Crashlytics Gradle插件的更多信息。

com.google.firebase:firebase-crashlytics-gradle

编辑

为了使自己更加清楚,在下面的示例中,我从 Firebase docs中获取如何在 firebaseCrashlytics块中使用哪些方法。
apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.google.gms.google-services'

android {
// ...

buildTypes {
debug {
minifyEnabled true
firebaseCrashlytics {
// If you don't need crash reporting for your debug build,
// you can speed up your build by disabling mapping file uploading.
mappingFileUploadEnabled false
}
}

release {
minifyEnabled true
// When minifyEnabled is set to true, Crashlytics automatically
// uploads mapping files because the plugin detects that obfuscation
// is enabled. mappingFileUploadEnabled defaults to true if
// minifyEnabled is true.
}
}
}

最佳答案

如果您运行:

./gradlew tasks

它应该为您提供不同任务的列表。

关于android - 如何在Android Studio中找到gradle插件的所有可用属性和方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62080307/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com