forked from androidannotations/androidannotations
-
Notifications
You must be signed in to change notification settings - Fork 0
IntelliJIDEA
WonderCsabo edited this page Oct 18, 2014
·
7 revisions
Please note that there are two important JARs in AndroidAnnotations:
-
androidannotations-X.X.X-api.jaris the API JAR, it must be in your build path and will be part of the final APK -
androidannotations-X.X.X.jaris the processor JAR, it is only needed at compile time, and must be in the compiler classpath.
- Put
androidannotations-X.X.X-api.jarin thelibsfolder - Put
androidannotations-X.X.X.jarin a different folder, such ascompile-libs.androidannotations-X.X.X.jarmust not go in thelibsfolder.
- Go to File -> Open...
- In the dialog window, select your project folder and click OK
- If the Framework detected popup shows up, click on the Configure link on it, then select the desired Android SDK and click OK
- Open File -> Project structure -> Modules -> Dependencies and add the dependencies from the
libsfolder- Click on the green + button
- Select JARs or directories...
- Select the
libsfolder -> OK - Toggle the first checkmark so the jar is exported
- Open File -> Settings -> Build, Execution, Deployment -> Compiler -> Annotation processing and add the AndrodidAnnotations processor
- Select your project in the left pane
- Toggle Enable annotation processing
- Select Processor path
- Click ... right to Processor path and browse
androidannotations-X.X.X.jarfrom thecompile-libsfolder - Switch the Store generated sources relative to to Module content root
- Close the window by clicking OK
- Make the project, this will also launch annotation processing
- Open File -> Project structure -> Modules -> Sources, then right click the
generatedfolder and select Source
- Start using AndroidAnnotations
AndroidAnnotations was created by Pierre-Yves Ricau and is sponsored by eBusinessInformations.
09/11/2014 The 3.2 release is out !
- Get started!
- Download
- Cookbook, full of recipes
- Customize annotation processing
- List of all available annotations
- Release Notes
- Examples
- Read the FAQ
- Join the Mailing list
- Create an issue
- Tag on Stack Overflow