2

I upgraded to Android Studio V3. On one of my projects (not all) I am getting this;

<resources xmlns:ns1="urn:oasis:names:tc:xliff:document:1.2">

This is in values.xml (a system therefore uneditable file) and is giving me

Cannot find the declaration of element 'resources'

This is an error that is preventing my project from building. Any ideas on what I can do to remove xliff?

asked Feb 6, 2018 at 15:00
4
  • Looks like you can delete it. See stackoverflow.com/questions/6158157/… for details. Commented Feb 6, 2018 at 15:58
  • That just tells me about xliff. It does not tell me how to get rid of the error. Commented Feb 7, 2018 at 10:40
  • Just remove the namespace declaration form the <resources> element? Commented Feb 7, 2018 at 10:55
  • It is under the build folder which is generated and cannot be edited. If I remove it, studio just puts it back in when it does a rebuild. Commented Feb 7, 2018 at 11:05

1 Answer 1

0

Turns out the problem was not with the resources tag but with a nested item tag. The item tag was set by a colour item in the styles.xml. I removed the item tags from the styles xml and the project built. This was after messing around with the theme editor for a couple of hours.

answered Feb 7, 2018 at 12:37
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.