【发布时间】:2013-06-11 01:38:59
【问题描述】:
我正在寻找类似的东西
apply plugin: 'android-library'
dependencies {
flavor1Compile files('utility.aar')
}
一切都失败了:
在根项目“SampleProject”上找不到参数 [文件集合] 的方法 flavor1Compile()。
【问题讨论】:
标签: java android build-process gradle
我正在寻找类似的东西
apply plugin: 'android-library'
dependencies {
flavor1Compile files('utility.aar')
}
一切都失败了:
在根项目“SampleProject”上找不到参数 [文件集合] 的方法 flavor1Compile()。
【问题讨论】:
标签: java android build-process gradle
flavor1Implementation files('libs/user/xxx.aar')
您可以在风味中使用这样的 aar 文件。
【讨论】:
库不支持风格。
请注意,这在应用项目中不起作用,因为您尚未先定义风味。你需要这样做
android {
productFlavors {
flavor1 {}
}
}
dependencies {
flavor1Compile ...
}
它不会以其他顺序工作,因为声明产品风味是创建其关联依赖配置的原因。
【讨论】:
No resource found that matches the name (at 'theme' with value '@style/MyStyle').