I'm trying to create a ndk project with android studio according this tutorial and I get this error when I try to sync my gradle:
Gradle DSL method not found: 'flavorGroups()'
I'm using gradle 2.2.1, with android studio 1.0.2. Here is a part of my gradle file:
defaultConfig.versionCode = 1
flavorGroups "abi"
productFlavors {
x86 {
flavorGroup "abi"
ndk {
abiFilter "x86"
}
versionCode = 3
}
arm {
flavorGroup "abi"
ndk {
abiFilter "armeabi-v7a"
}
versionCode = 1
}
mips {
flavorGroup "abi"
ndk {
abiFilter "mips"
}
versionCode = 2
}
fat {
flavorGroup "abi"
versionCode = 0
}
}
applicationVariants.all { variant ->
def abiVersion = variant.productFlavors.get(1).versionCode
variant.mergedFlavor.versionCode = abiVersion * 100000 + defaultConfig.versionCode
}
Thank you for your answers.
0 comments:
Post a Comment