自从Android studio升级到3.1版本,谷歌又折腾出让你意想不到的错误。。。。
从github上下了个项目用来学习,却出现了如下错误:
No such property: FOR_RUNTIME for class: org.gradle.api.attributes.Usage在网上搜索到的解决方法大都是让把Gradle降级,但是新版本的AS最低Gradle版本是4.4,没有办法降级,这就让人头疼了。
查了很久,才找到解决办法:
产生这个问题的原因是项目中导入的一个module使用了bintray插件导致的,在module的build.gradle文件中将bintray相关代码注释掉,之后进行编译,有可能会报其他错误,这个时候就继续删错误指向的语句,之后便能正常运行。
相关文章
- mybatis 异常 There is no getter for property named 'bizId' in 'class java.lang.Long'
- JSON: property "xxx" has no getter method in class "..."
- There is no getter for property named 'userSpAndSp' in 'class com.uauth.beans.UserSpAndSp'
- The class has no identifier property
- mybatis使用动态sql时报错:There is no getter for property named '*' in 'class java.lang.String
- 【Mybatis】mybatis查询报错org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'areaName' in 'class java.lang.String'
- mybatis问题: There is no getter for property named 'equipmentId' in 'class java.lang.String'
- MongoDB查询转对象是出错Element '_id' does not match any field or property of class
- mongodb "Element '{0}' does not match any field or property of class" 异常的解决方法
- mybaits错误解决:There is no getter for property named 'id' in class 'java.lang.String'