-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Android Studio + Gradle issues #899
Comments
On Android Studio, it seems you have to do it with gradle. Change your config for something like this : android {
compileSdkVersion 18
buildToolsVersion "18.0.1"
defaultConfig {
minSdkVersion 7
targetSdkVersion 18
}
sourceSets {
main {
manifest.srcFile 'src/main/AndroidManifest.xml'
java.srcDirs = ['src/main/java', 'YOUR_OTHER_PRODUCTION_SOURCE_FOLDER']
resources.srcDirs = ['src/main/res']
res.srcDirs = ['src/main/res']
}
}
} |
Finally, it recognized the MainActivity_. Thanks a lot! |
You're welcome. I should update the wiki to explain how to configure AA on Android Studio.. |
Yeah, that would help a lot since most guides are outdated |
I have the same problem with android-studio 0.4.3. My MainActivity_ is not recognized. I've followed this link https://github.com/excilys/androidannotations/wiki/Building-Project-Gradle but i don't understand where is the problem. @C0nnector Is there something to configure in android-studio ? |
Ok, this is how i did it:
Here you add the android-apt plugin, it will do all the work for you and help you install annotations
|
Thx a lot ! Now it works by unchecking ''enable annotation proccessing |
Hi there. |
nevermind |
I've followed every guide out there for installing android annotations in intellij(Android Studio 0.4.2) with gradle.
I did all the basic steps and i can call annotations in my activities but androidManifest.xml can't find MainActivity_
*I can't mark the production source directory as 'Source' , like most guides state since android studio has removed that capability
Any workaround?
The text was updated successfully, but these errors were encountered: