Eug*_*gen 5 groovy android gradle
正如标题所示,我想在我的build.gradleiff中应用插件,项目文件夹中存在某个属性文件.以下尝试
buildscript {
File c = file('crashlytics.properties')
ext {
crashlytics = c.exists();
}
}
if (crashlytics) {
apply plugin: 'io.fabric'
}
//...
Run Code Online (Sandbox Code Playgroud)
导致以下错误消息
No such property: verboseGradlePlugin for class: java.lang.Boolean
Run Code Online (Sandbox Code Playgroud)
有没有办法实现我想要的?
你可以试试:
if (project.file('crashlytics.properties').exists()) {
apply plugin: 'io.fabric'
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2109 次 |
| 最近记录: |