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 <patrickboo...@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+unsubscr...@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.

Reply via email to