2014-10-16 36 views

回答

1

我希望它失敗的身材,一樣的錯誤信息:

Statement labels may not be used in build scripts. 
    In case you tried to configure a property named 'exampleBoolean', replace ':' with '=' or ' ', otherwise it will not have the desired effect. 

至少,那就是如果你想這樣會發生什麼。

+0

我在我的項目中嘗試過,看看我能不能弄明白,它建立的很好! Android Studio似乎也沒有問題。 – 2014-10-16 13:49:07

+0

@FiferSheep:使用Gradle 2.1和Gradle for Android 0.13.2插件時,在將語句添加到[此示例項目的'build.gradle'文件中的'productFlavors'閉包時,會得到我答案中顯示的錯誤( https://github.com/commonsguy/cw-omnibus/tree/master/Gradle/HelloProductFlavors)。 – CommonsWare 2014-10-16 13:52:51

+0

然後它一定是因爲我使用Gradle 1.12和插件0.12.2 這就解釋了爲什麼我在這個在線上找不到任何東西! – 2014-10-16 13:56:03