-
Notifications
You must be signed in to change notification settings - Fork 125
Generated source location #9
Comments
When I put the generated sources in demo/igmodel/build/... Android Studio doesn't see it. |
No that's incorrect. The subproject's build directory should be inside the subproject's directory. On Sep 16, 2014, at 12:11 PM, "Jacob Tabak" <notifications@github.commailto:notifications@github.com> wrote: /build should be a sibling of /demo, not a child... here's an example of generated code from another annotation processor... (AndroidAnnotations) — |
Ah yes you're right. And yes, the /build directory under igmodel seems to be invisible to Android Studio. Is that where you had the generated sources before? |
Yup On Sep 16, 2014, at 12:24 PM, "Jacob Tabak" <notifications@github.commailto:notifications@github.com> wrote: Ah yes you're right. And yes, the /build directory under igmodel seems to be invisible to Android Studio. Is that where you had the generated sources before? — |
I have never seen modules containing submodules in AS... maybe that is the On Tue, Sep 16, 2014 at 2:34 PM, ttung notifications@github.com wrote:
|
Making a separate issue from this because it shouldn't be in the documentation issue...
Right now the generated source is in demo/igmodel/gen-src/main/java/com/instagram..., it should probably go in demo/build/generated/source/ig-gson/[variant]/com/instagram...
The current generated source is not flagged by the IDE as generated, so you can edit it and obviously it will be overwritten on next build. If you place the code in build/generated, you get a nice warning like this:
The text was updated successfully, but these errors were encountered: