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

Viewed 6340

Android Studio compile error:

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

Can`t fix this problem for 2 days .

5 Answers

Just remove this line: apply from: '../api.attributes

in your library's build gradle of your android project

You must use older version of gradle. example:

distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
Related