这是错误的全文: -错误:(21,0)未找到摇篮DSL方法:
Error:(21, 0) Gradle DSL method not found: 'buildConfigField()'
可能的原因:
The project 'Sunshine2' may be using a version of Gradle that does not contain the method. Gradle settings The build file may be missing a Gradle plugin. Apply Gradle plugin
我使用gradle这个2.4 Android Studio 1.4。我不知道是什么导致问题或如何解决它。请稍微帮忙。
你检查这http://stackoverflow.com/questions/23267365/cannot-add-buildconfigfield-in-productflavors – GMB
你要提供你的build.script内容。看起来,你有一些语法问题 – Stanislav
专线小巴 - 我错过了一个逗号。谢谢。 – Alex