0

Once again this question. I've already seen this, this and other related threads. But after following this answer I don't know how to deal with following error: 'URI is not registered' for <resources xmlns:android="http://schemas.android.com/apk/res/android"> lines in .xml files that i'd like to store in res/drawables/my-sub-folder. Is there any solution for that or it's just still impossible?

Community
  • 1
  • 1
AlexKost
  • 2,792
  • 4
  • 22
  • 42

1 Answers1

-1

To remove the error in your sub-directory defined in sourceSets 'src/main/res/yourdirectorysystem' you need to ad a folder labeled layout just like in the res folder.

example

res-
    layout-
           horizontal- (defined as 'src/main/res/layout/horizontal')
                      layout-
                             somefile.xml
gofr1
  • 15,741
  • 11
  • 42
  • 52
  • Thanks, I tried to enter it like that but it came out as one line. I'm not sure what I did wrong as it was my first post here. – Windthorn Oct 08 '16 at 23:20