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 .
Please check your Android system log. Usually it located at:
For Windows:
C:\User\yourusername\\.AndroidStudio3.1\system\log\idea.log
I encounter the same issue, and I got this error log:
Caused by: groovy.lang.MissingPropertyException: No such property: FOR_RUNTIME for class: org.gradle.api.attributes.Usage
It means you have to upgrade the com.novoda.bintray-release to the latest version
dependencies {
classpath 'com.novoda:bintray-release:0.8.0'
}
Just remove this line: apply from: '../api.attributes
in your library's build gradle of your android project
Finally, I have solved it. In my case, I was using Gradle local distribution so I changed it to use default gradle wrapper. And update your gradle to latest version in your project by simply copy the latest version and paste it to your project file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With