Gradle build not resolving generated classes

若如初见. 提交于 2019-12-10 10:17:07

问题


I've just updated Android Studio from 1.5 to 2.2.1 and same for Gradle. I have a project which uses an annotation processor framework (made by me) to do Dagger like Dependency Injection.

This used to work just fine before the update, but now Gradle is not able to resolve the generated classes (although they are generated and the Android Studio editor links them correctly) and thus I'm not able to build the project.

I've tried to Google and found lots of similar problems but none solved mine.

Can anyone tell me if this is a known bug or if something had changed? Thank you very much.

EDIT

Here's a screenshot:

As you can see, the error is the class co.aurasphere.revolver.Revolver not found, but you can see the class on the left (under build/generated/source/apt/debug) and the editor is linking it correctly (if I over on it pressing CTRL the link points to the generated class).

The precise error I get is "error: cannot find symbol".

来源:https://stackoverflow.com/questions/39984930/gradle-build-not-resolving-generated-classes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!