Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be

最近升级了Android Studio 1.0,发现gradle脚本无法运行,想起之前这个错误提示,感觉问题应该出在这个地方

我动态生成product flavor的时候,里面设置了一个属性,这样会报错

91 {

   pkey=''91'

}

修改一下即可

91 {

   ext.pkey=''91'

}

http://stackoverflow.com/questions/22506118/gradle-deprecated-dynamic-property-how-to-reconfigure

http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html

你可能感兴趣的:(Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be)