我在找类似的东西
apply plugin: 'android-library'
dependencies {
flavor1Compile files('utility.aar')
}所有的事情都失败了,因为:
无法为根项目'SampleProject‘上的参数文件集合找到方法flavor1Compile()。
发布于 2013-06-15 05:25:23
库不支持口味。
请注意,这在应用程序项目中是行不通的,因为您还没有首先定义味道。你需要做的是
android {
productFlavors {
flavor1 {}
}
}
dependencies {
flavor1Compile ...
}它不会按照另一个顺序工作,因为声明产品风格是创建其相关依赖配置的原因。
发布于 2021-07-09 07:16:40
flavor1Implementation files('libs/user/xxx.aar')您可以使用这样的aar文件的口味。
https://stackoverflow.com/questions/17107908
复制相似问题