Skip to content

Instantly share code, notes, and snippets.

@TheHippo
Last active January 2, 2016 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheHippo/2dfe29da50a7a4fc5c3c to your computer and use it in GitHub Desktop.
Save TheHippo/2dfe29da50a7a4fc5c3c to your computer and use it in GitHub Desktop.
android {
productFlavors {
}
productFlavors['flavor1'] << {
packageName "com.example.flavor1"
}
productFlavors['flavor2'] << {
packageName "com.example.flavor2"
}
}
/*
A problem occurred evaluating root project 'MyProject'.
> GroupableProductFlavorDsl with name 'flavor1' not found.
*/
android {
productFlavors {
}
productFlavors['flavor1'] = {
packageName "com.example.flavor1"
}
productFlavors['flavor2'] = {
packageName "com.example.flavor2"
}
}
/*
no error, but does not work
*/
android {
productFlavors {
}
productFlavors['flavor1'] = [packageName: "com.example.flavor1"]
productFlavors['flavor2'] = [packageName: "com.example.flavor2"]
}
/*
no error, but does not work
*/
android {
productFlavors {
['flavor1'] << {
packageName: "com.example.flavor1"
}
['flavor2'] << {
packageName: "com.example.flavor2"
}
}
}
/*
no error, but does not work
*/
android {
productFlavors {
['flavor1'] << {
packageName: "com.example.flavor1"
}
['flavor2'] << {
packageName: "com.example.flavor2"
}
}
}
/*
no error, but does not work
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment