2

Whenever I make new project, android studio does not build colors.xml file completely. colors.xml file is:

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AndroidLayouts">
    <shared>
        <config />
    </shared>
</component>
<component name="CMakeSettings">
    <configuratio

Obviously, android studio is giving the error given below: Error: XML document structures must start and end within the same entity.

burhan sabir
  • 51
  • 1
  • 9
  • Same issue?: https://stackoverflow.com/a/52782150/4409113 reinstalling android studio might help? It uses `UTF-8` format, so check my answer in the provided link. – ʍѳђઽ૯ท Oct 13 '18 at 10:47
  • project encoding is already set to system default. Is reinstalling android studio the only solution? it is so much time taking. – burhan sabir Oct 13 '18 at 13:11
  • Update it or reinstall it. Then it will work fine. Remember **not to import the old configuration**. No, I don't think if that would take much time. – ʍѳђઽ૯ท Oct 13 '18 at 13:12
  • changed global encoding to system default but getting the same error. – burhan sabir Oct 13 '18 at 13:21
  • My internet is too slow.. downloading sdks after installation takes too much time :D – burhan sabir Oct 13 '18 at 13:23
  • No. You don’t need to download the SDK again if they’re seperated (not using bundle) from the Android Studio. – ʍѳђઽ૯ท Oct 13 '18 at 13:28
  • can you please add some links for detailed information about this shifting of sdks? – burhan sabir Oct 13 '18 at 17:42
  • It's simple. There are just Android SDK manager with the Android Studio and both in an installable called bundle. But, it depends which one you're using. Anyhow, you won't need to download the sdk packages for the Android Studio reinstalling. – ʍѳђઽ૯ท Oct 13 '18 at 18:30

1 Answers1

0

Your XML is not well-formed. In general, this error indicates that something is wrong with the range of the start and end tags.

         <?xml version="1.0" encoding="utf-8"?>
            <set xmlns:android="http://schemas.android.com/apk/res/android">

              <component android:name="AndroidLayouts">
                 <shared>
                   <config />
                 </shared>
             </component>

            </set> 
sushant singh
  • 696
  • 1
  • 8
  • 18