Fix the error in XML

0

My apps made in Android Studio 2.2.2 give XML error. The classes become unreported. I already asked such a question here but did not have the specified error. the error that appears in Logcat is this:

  

Invalid ranges during formatting in Language: XML

    
asked by anonymous 16.11.2016 / 01:51

2 answers

1

It's hard to pinpoint exactly what is happening with the little information that is available, but looking at an example I had, what I can suggest is to change the name of the activity there within Manifest to:

<activity android:name=".MainActivity" 

You do not need the name of the package, perhaps this is giving a stick. Maybe this response would be more appropriate for a comment but I do not have enough reputation.

I hope I have helped.

    
16.11.2016 / 04:26
0

The answer from the leofontes is correct. The way you are declaring this "too complete" when it becomes redundant android studio refuses as error, because this complete statement does it alone. Another thing that happens a lot to me is the need to rewrite the classes or tags when I copy and paste the code from one place to another, I do not understand why but even being correct the android accuses error and after I rewrite some. Try this too, rewrite, close Android Studio and see if there is an error. Anyway, the placement of the activity given by the leofontes is correct, use it and test.

    
16.11.2016 / 04:38