Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Annotations: Annotated class Xyz_ not finding it's original ("cannot find symbol class Xyz")
    primarykey
    data
    text
    <p>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. </p> <p>But there are no syntax errors or anything in the xml nor java source files.</p> <p>Problem is that the annotated class doesn't find it's original class, getting </p> <pre><code>cannot find symbol class Intro </code></pre> <p>error.</p> <p>My project structure:</p> <pre><code>/src/ /app/activity/Intro ... /gen-annotation-processed/ /app/activity/Intro_ ... /gen ... </code></pre> <p>My IDEA annotation preferences:</p> <p>Processor path:</p> <pre><code>/path/to/project/ext-libs/androidannotations-2.6.jar </code></pre> <p>Processor FQ Name:</p> <pre><code>com.googlecode.androidannotations.AndroidAnnotationProcessor </code></pre> <p>Source folders in the project's Android IDEA module:</p> <pre><code>gen gen-annotation-processed src </code></pre> <p><img src="https://i.stack.imgur.com/jtPWi.png" alt="enter image description here"></p> <p>Error login in IDEA when building the project (via IDEA, no ant or maven):</p> <p><img src="https://i.stack.imgur.com/CN59e.png" alt="enter image description here"></p> <p>(Class "Intro" exists in the src folder and has no errors in it.)</p> <p><strong>Update</strong>: 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.</p> <p>What usually seems to work is: do a <strong>Rebuild</strong> (might throw compile errors, ignore). Then do a <strong>Build</strong> (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.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload