WAI
Status Update
Comments
es...@gmail.com <es...@gmail.com> #2
It happened to me the moment I created a xml file under the layout folder. Up until that moment I only had 4 other xml layout files that had been generated automatically with the project.
Then all XML layout files under this folder started showing the error. Still couldn't reproduce it in other project though.
Then all XML layout files under this folder started showing the error. Still couldn't reproduce it in other project though.
es...@gmail.com <es...@gmail.com> #3
My bad. I was looking in the build folder. In the src folder everything is fine. Just in case this is what's happening to you.
wi...@gmail.com <wi...@gmail.com> #4
It occurs in every project I create after creating a new layout in one of
the projects, I am pretty inexperienced in android development so can I
create another layout in another folder? Or preferably any way to fix this
problem? Other than reinstalling android studio after creating a new layout
the projects, I am pretty inexperienced in android development so can I
create another layout in another folder? Or preferably any way to fix this
problem? Other than reinstalling android studio after creating a new layout
sb...@google.com <sb...@google.com>
ha...@gmail.com <ha...@gmail.com> #5
For me it occured when I have added a gridlayout inside a scrollview. I have created a new project, copied the files, reinstalled android studio, updated to the most current version but still I got this error that the xml namespaces
xmlns:android="http://schemas.android.com/apk/res/android "
xmlns:tools="http://schemas.android.com/tools "
are red. When building this project following error occurs:
Error: (36,-1) Gradle: Error parsing XML: not well-formed (invalid token)
I have tried to build the project via the console to receive some better error messages but still no increases.
xmlns:android="
xmlns:tools="
are red. When building this project following error occurs:
Error: (36,-1) Gradle: Error parsing XML: not well-formed (invalid token)
I have tried to build the project via the console to receive some better error messages but still no increases.
xx...@hannesstruss.de <xx...@hannesstruss.de> #6
Also occurred for me when I created xml resources in the debug source set of a fresh project. Explicitly naming the build type in build.gradle helped:
...
buildTypes {
release {
...
}
debug {}
}
...
buildTypes {
release {
...
}
debug {}
}
Description
Not sure if a bug but when I first installed Android Studio everything
worked fine then after 1/2 an hour of coding, my xmls tags go red on the
creation of the parent layout of the main activity
<RelativeLayout xmlns:android="
xmlns:tools="
produces the warning URI is not registered when I hover over
or