Android Annotations: Annotated class Xyz_ not finding it's original (“cannot find symbol class Xyz”)

I use the latest Android Annotations 2.6 and IntelliJ IDEA.
Sometimes I always keep having problem with the annotations / classpath / compilation order. Seems to occur irregularly. I had the project compile earlier today, then changed a res/layout-xml file later on, then I try to build the project and get an error.

But there are no syntax errors or anything in the xml nor java source files.

  • Map view following user - MyLocationOverlay type functionality for Android Maps API v2
  • overridePendingTransition shows second activity too quickly
  • ffmpeg 10.04 Could Not Find Codec Parameters
  • What is an optimum size for an Android app?
  • Android overlay a view ontop of everything?
  • Eclipse: The specified JRE installation does not exist
  • Problem is that the annotated class doesn’t find it’s original class, getting

    cannot find symbol class Intro


    My project structure:


    My IDEA annotation preferences:

    Processor path:


    Processor FQ Name:


    Source folders in the project’s Android IDEA module:


    enter image description here

    Error login in IDEA when building the project (via IDEA, no ant or maven):

    enter image description here

    (Class “Intro” exists in the src folder and has no errors in it.)

    Update: I have it working now, although not sure what/where I changed something after playing around with settings back and forth. It might actually just be an issue with IDEA and not actually android-annotations related, not sure yet.

    What usually seems to work is: do a Rebuild (might throw compile errors, ignore). Then do a Build (not a complete rebuild). For some reasons, the multiple compilation runs don’t work properly when doing a rebuild, need to do the rebuild+build combination.

  • Android Material Design profile page
  • Disabling Samsung “Auto Network Switch” for WiFi Connection
  • Android Webview - Webpage should fit the device screen
  • Android: Is it possible to have two surfaceview on top of each other?
  • google cloud messaging security
  • Is 'Android+FFMpeg' friendship really available?
  • 4 Solutions collect form web for “Android Annotations: Annotated class Xyz_ not finding it's original (“cannot find symbol class Xyz”)”

    Above mentioned problem was an issue with the new build system that was introduced with IDEA 12, in combination with an issue of AA 2.x, which is meanwhile fixed in AA 3.


    (Anyhow, as @outlying mentioned, maven is a good idea in general to make it independent of the IDE at all.)

    Have you tried this link ?

    It works like a charm for me, I was able to setup few projects with AA on IDEA

    You have to enable android annotation processing on File->Other Settings->Default Settings..

    enter image description here

    goto of your app build.gradle
    and remove 
    apt "org.androidannotations:androidannotations:{xxx}" compile 'org.androidannotations:androidannotations-api:{xxx}'
    then put it again apt "org.androidannotations:androidannotations:{xxx}" compile 'org.androidannotations:androidannotations-api:{xxx}'
    and rebuild
    it worked for me
    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.