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.