1. 程式人生 > >Android Gradle : No such property: FOR_RUNTIME for class: org.gradle.api.attributes.Usage

Android Gradle : No such property: FOR_RUNTIME for class: org.gradle.api.attributes.Usage

異常

No such property: FOR_RUNTIME for class: org.gradle.api.attributes.Usage

解決方法

開啟專案根目錄下gradle資料夾 -> wrapper -> gradle-wrapper.properties,修改distributionUrl為根目錄下gradle版本對應的Url

3110861-562ed81df501b408.png 解決方法.png