我最近将Android Studio更新到0.3.0版本,现在没有可选择的构建变体。我尝试过清理和重建项目,并重新启动Android Studio,但都没有成功。我的build.gradle文件如下:
android {
compileSdkVersion 18
buildToolsVersion "18.0.1"
defaultConfig {
minSdkVersion 9
targetSdkVersion 18
versionCode 10
}
productFlavors {
lite {
packageName "com.lvl.xpbar"
versionCode 11
}
pro {
packageName "com.afewguys.raisethebar"
versionCode 1
}
}
sourceSets {
main {
manifest.srcFile '/src/main/AndroidManifest.xml'
java.srcDirs = ['/src/main/java','.apt_generated']
resources.srcDirs = ['/src/main/java','.apt_generated']
aidl.srcDirs = ['/src/main/java','.apt_generated']
renderscript.srcDirs = ['/src/main/java','.apt_generated']
res.srcDirs = ['/src/main/res']
assets.srcDirs = ['assets']
}
lite {
manifest.srcFile 'src/main/AndroidManifest.xml'
}
pro {
manifest.srcFile 'src/main/AndroidManifest.xml'
}
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
非常感谢任何帮助