I recently changed my project to a Compose app. I safely deleted my now redundant fragments and their XML files, and removed all references to them.
Now when I try and build my file, it crashes with the error:
The only XML file I changed that still exists is my main acitivity XML, and it is correct. I opened it in a basic text editor and there are no invisible characters. I manually deleted the caches from the .android and .gradle folders, and deleted my build folder. I'm still getting this error. What are other possible reasons for it? Here is my XML file:
And here are the first of hundreds of lines of stack trace:
I can only assume that perhaps some kind of reference remains to my deleted XML files, but I can't find any. Are there hidden files, and if so, how do I access them?
Now when I try and build my file, it crashes with the error:
Code:
Execution failed for task ':app:extractDeepLinksDebug'.
> org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
The only XML file I changed that still exists is my main acitivity XML, and it is correct. I opened it in a basic text editor and there are no invisible characters. I manually deleted the caches from the .android and .gradle folders, and deleted my build folder. I'm still getting this error. What are other possible reasons for it? Here is my XML file:
Code:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="?android:attr/actionBarSize"
android:id="@+id/content">
<androidx.compose.ui.platform.ComposeView
android:id="@+id/main_compose"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
And here are the first of hundreds of lines of stack trace:
Code:
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at com.android.utils.PositionXmlParser.parseInternal(PositionXmlParser.java:287)
at com.android.utils.PositionXmlParser.parseInternal(PositionXmlParser.java:236)
at com.android.utils.PositionXmlParser.parse(PositionXmlParser.java:182)
at com.android.utils.PositionXmlParser.parse(PositionXmlParser.java:98)
at com.android.utils.PositionXmlParser.parse(PositionXmlParser.java:136)
at com.android.manifmerger.NavigationXmlLoader.load(NavigationXmlLoader.kt:48)
at com.android.build.gradle.tasks.ExtractDeepLinksTask.doTaskAction(ExtractDeepLinksTask.kt:92)
at com.android.build.gradle.internal.tasks.NonIncrementalTask$taskAction$$inlined$recordTaskAction$1.invoke(BaseTask.kt:66)
at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:51)
at com.android.build.gradle.internal.tasks.NonIncrementalTask.taskAction
I can only assume that perhaps some kind of reference remains to my deleted XML files, but I can't find any. Are there hidden files, and if so, how do I access them?