Note: The gradle part of course only worked when using the local installed maven repo that i built from the studio-1.1-dev source.
On Tuesday, January 13, 2015 at 5:02:24 PM UTC+1, Patrick Boos wrote: > > I tried it out and it seems to work fine inside gradle (but no difference > in Android Studio). The folder gets picked up correctly and put into the > build. Thanks to that one does not need to put his resources into the > generated/res/generated folder, but can put them in generated/res/svg for > example. That makes things nicer. > > *But it does not get picked up in Android Studio 1.0.2 yet*. The problem > above still exists in Android Studio. Or is there a fix for that in the > next version of Android Studio? > > On Tuesday, January 13, 2015 at 10:16:50 AM UTC+1, Patrick Boos wrote: >> >> Thanks a lot! Will be looking forward to seeing this released. I guess it >> will be in 1.1, correct? >> >> On Friday, January 9, 2015 at 7:22:22 PM UTC+1, Xavier Ducrohet wrote: >>> >>> https://android-review.googlesource.com/#/c/122491 >>> >>> On Wed, Jan 7, 2015 at 11:09 AM, Xavier Ducrohet <x...@android.com> >>> wrote: >>> >>>> Actually Studio doesn't know about your generated res folder so it >>>> doesn't parse them for editing support. >>>> >>>> We have an API to add additional generated java source folders but not >>>> resource folders. We'll have to add that to the API. >>>> >>>> On Tue, Jan 6, 2015 at 10:20 PM, Patrick Boos <patric...@gmail.com> >>>> wrote: >>>> >>>>> Additional info: >>>>> >>>>> example is correctly generated in the R.java and R.drawable.example >>>>> works fine in the code. >>>>> >>>>> On Wednesday, January 7, 2015 7:16:35 AM UTC+1, Patrick Boos wrote: >>>>>> >>>>>> I am currently writing a android plugin that converts svgs to pngs. >>>>>> The svgs are in src/main/svg (or in the flavor folders) and get placed >>>>>> in >>>>>> build/generated/res/generated/flavor1/debug/drawable-hdpi and so on. >>>>>> >>>>>> Now there is one main problem in Android Studio. In the image below >>>>>> you can see that the folder gets marked correctly by Android Studio. But >>>>>> on >>>>>> the right it does not show the drawable for auto completion and even >>>>>> shows >>>>>> the drawable does not exist. Even though it should according to the >>>>>> project >>>>>> structure. When building there are no errors and the example.png >>>>>> correctly >>>>>> makes it into the apk. >>>>>> >>>>>> >>>>>> <https://lh4.googleusercontent.com/-_FDOVq57Fwc/VKzNcN_XA2I/AAAAAAAALnU/2j4azSeC6mw/s1600/Screen%2BShot%2B2015-01-07%2Bat%2B07.07.48.png> >>>>>> One guess is, that build/generated/res/generated might be the wrong >>>>>> folder? That one is used for generated strings normally. But when I try >>>>>> to >>>>>> use another folder like build/generated/res/svg then the folder does not >>>>>> get picked up by gradle at all and the files are not added to the apk. >>>>>> >>>>>> Any pointers would be great. >>>>>> >>>>>> Cheers, >>>>>> Patrick >>>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "adt-dev" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to adt-dev+u...@googlegroups.com. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> >>>> >>>> -- >>>> Xavier Ducrohet >>>> Android SDK Tech Lead >>>> Google Inc. >>>> http://developer.android.com | http://tools.android.com >>>> >>>> Please do not send me questions directly. Thanks! >>>> >>> >>> >>> >>> -- >>> Xavier Ducrohet >>> Android SDK Tech Lead >>> Google Inc. >>> http://developer.android.com | http://tools.android.com >>> >>> Please do not send me questions directly. Thanks! >>> >> -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.