You shouldn't use generated class on your @ViewById
annotated field. But you still have to use generated one in your layout file :
@EActivity(R.layout.start)
public class MyActivity extends Activity {
@ViewById
MyView myView;
}
<LinearLayout ...>
<my.package.MyView_ .../>
</LinearLayout>
Also, could you confirm you have these dependencies in your pom.xml and you're using Java 6 (as explained on the wiki) ?
<dependencies>
<!-- [...] -->
<dependency>
<groupId>org.androidannotations</groupId>
<artifactId>androidannotations</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.androidannotations</groupId>
<artifactId>androidannotations-api</artifactId>
<version>3.0.1</version>
</dependency>
</dependencies>