Gradle DSL method not found: 'zipAlign()'/'runProguard()'/'jniDebugBuild()'/ 'renderscriptDebug()'

来源:互联网 发布:spss mac 23 编辑:程序博客网 时间:2024/05/16 01:24

出现这些个错误,就是说相应的方法找不到了,可能是升级以后版本把以前的方法修改了,首先感谢强大的Google,其次记录下来,遇到以下方法找不到,可做相应替换

If you get one of these errors,

  1. Gradle DSL method not found: 'runProguard()'
  2. Gradle DSL method not found: 'zipAlign()'
  3. Gradle DSL method not found: 'jniDebugBuild()'
  4. Gradle DSL method not found: 'renderscriptDebug()'

You should change those property names to these new ones,

  1. BuildType.runProguard  ->  minifyEnabled
  2. BuildType.zipAlign  -> zipAlignEnabled
  3. BuildType.jniDebugBuild  -> jniDebuggable
  4. BuildType.renderscriptDebug  -> renderscriptDebuggable


0 0
原创粉丝点击