URI not registered (IC-138.1283) android layout

I just picked up a project again after a few weeks away.  Updated twice to get to latest.  I believe it also updated gradle. My project uses gradle flavors.  I have a "paid" and "lite" flavor.  I am now getting the above URI not registered error for

<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"


This is happening on all layouts within the \paid\res\layout folder.    (note: the "http...." is in red.

Can someone explain either what has happened or what I need to do to remove this error?

1 comment
Comment actions Permalink

I do not know which of these two "solved" this issue.

I first mapped the

http://schemas.android.com/apk/res/android to the Idea.jar\XML_Schema.dtd in the settings map external resource.  This removed that "error".  I was left with 'cannot find the declaration of element TableLayout'


Ignoring that, I then ran the paid debug build variant
it compiled and loaded ok.

Once that was done, all "errors" in the layout xml file were gone.  I went back and removed the schema mapping and all was still well.

I have no idea what was going on or why.


ADDITIONAL INFO:

Layouts in the flavor/res/layout directory which are NOT used by the currently selected build variant  get errors for both the xxxLayout tag as well as the schema.

This seems to be some type of gradle/ide oddity.
0

Please sign in to leave a comment.