将jar包复制到项目的lib文件夹下然后Add as Library后运行出现 附件图片中的错误信息
信息内容是这样的: 先声明肯定不是androidannotations的问题,导入jar之前项目是可以正常运行的 我猜测是gradle编译的问题,但是不知道具体是为什么,也不知如何解决 有没有大神帮忙看一下,或者哪位高人曾经遇到过这种问题出来指点下,
感激不尽!
Error:(109, 1) A problem occurred evaluating project ':youe'.
Could not find method compile() for arguments [org.androidannotations:androidannotations-api:4.0.0] on DefaultExternalModuleDependency{group='org.androidannotations', name='androidannotations', version='4.0.0', configuration='default'}.
http://blog.csdn.net/lirui940403/article/details/52221471
shishikan
可能是你导包出来问题,你可以删除jar包,在build.gradle文件下这样写
dependencies {
compile files('你的jar包名')
}
然后同步一下gradle
http://stackoverflow.com/questions/23627206/could-not-find-method-compile-for-arguments
检查你的build.gradle
检查jar包是否有额外多余的类?
检查jar包的编译级别是否与工程的编译级别兼容。(jar包编译器版本高了)