• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

"Content is not allowed in prolog error" despite valid XML

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:

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?

Make camera save photos to a project-specific place?

I am about to take a bunch of photos of stuff that belong together. The camera apparently saves all photos to a single location. Creating an album is something you have to do after the fact, in Gallery. This seems very disorganized to me and creates an unnecessary manual step with opportunity for errors.

What I would like is for every time I take a new picture, for that picture to be automatically associated with a specific project I selected beforehand - so the photo is placed automatically in a project-specific photo album or in a project-specific folder. Is this possible with some custom Camera app, maybe?

please help! "open camera" app removed the resolution of 176x144 in the newer devices, please help me bring it back

please help! "open camera" app removed the resolution of 176x144 in the newer devices, please help me bring it back



the "open camera" open source app uses the camera2 api for listing the avaliable photo resolutions, on older devices such as S8,S9 users had low resolutions such as 176x144 bit on the s20 and s22 that resolution isn't available.



if anyone could add that resolution to the newer devices would help everyone so much.

Attachments

  • Screenshot_20230710_051049_Open Camera.jpg
    Screenshot_20230710_051049_Open Camera.jpg
    191.5 KB · Views: 595

What Software To Use To Remove Cookies

I'm looking for software to safely remove cookies put on my phone (I just went to a dictionary site and it immediately gave notification that it's putting cookies on the phone). My first thought was to use CCcleaner but I saw there is considerable concern about its safety (malware) and also damage its cleaning may do to the phone's files. Does anyone have experience with Avast/AVG Cleaner Pro/Cleanup Boost (I'm already using Avast Mobile Security)?

Trying to make a copy of an Android Studio Project

I'm trying to make a copy of an Android Studio Project. I did this once before in this project and it worked just fine. Basically I'm making a certain amount of successful progress on the project and then want to make a new copy of the project and work on that copy. And in case something goes seriously wrong with the subsequent work I'll have the prior version to go back to.

The problem is that I'm getting an error when trying to make a copy of my current version of the project.

As I had previously done, I right-click on the project, select Refactor, and then Copy Classes.

1688934990655.png


That brings up a dialog where I slightly change the name (make 03 instead of 02) and I hit OK.

That starts the copy process and it goes through a whole slew of directories and folders but then an error message pops up:

1688935158110.png


And the copying stops. The copying FAILS.

I check that directory and, indeed there's no such file. But why is it even looking for that file if no such file exists?

I had previously succeeded with doing this kind of project copy. Why is it failing now?

Is there a different way to make a copy of a project?

Attachments

  • 1688934967715.png
    1688934967715.png
    229 KB · Views: 128

Help Impossible to unlock my Redmi 9's BootLoader

Hello!
Could you help me?

I have a Xiaomi Redmi 9 that recently blocked the BootLoader thanks to FastBoot because I bought a new one and I wanted to leave it factory. This device had an old MI account that I associated with my phone. When the period of Xiaomi Cloud ended, I deleted it.

To block the BooLoader, I used the following command:
- fastboot oem lock

Now, I decided to give it another chance and thought I'd really squeeze it out. In order to do so, I thought of doing the following:

- Unlock the BootLoader (To be able to Root it)
- Root the device. (To take full advantage)

I enabled developer options, enabled the "OEM Unlock" option, and when I connected the device to my PC in FastBoot mode, I used the following command to try to unlock it:

- fastboot oem unlock

The error that appears to me is the following:

1687966474482-png.5942239


I also tried to perform it with the MI Unlock tool. This was the result:

1687966205266-png.5942235


In this picture, what is obscured is my old MI account ID.

Thank you for your attention!

Help My samsung A03S is rooted by who and what can i do they forwarded my msgs and calls.

So I bought a samsung A03S and a week after I lost it then I found it. I beginning to believe it was lost. When I found it I stopped getting calls and msgs, it was slower and I could hardly make phone calls. MMI codes don't work so I downloaded and device info app and it's saying the OS is rooted and most the pre installed apps are altered. This phone came out the box brand new so I no it had to of happened when I "lost" it. What can I do and can I find out by who?

Music Play - Lyrics and Music

Explore the incredible world of song lyrics with the Musica Play app. If you're a music lover who enjoys singing along with your favorite artists, this is the perfect app for you. Our extensive library of song lyrics provides access to millions of lyrics from various genres and artists, all at your fingertips.

With Musica Play, you can dive into the lyrics of the songs you love, allowing you to follow along with the melodies and words flawlessly. Whether you want to learn the lyrics of your favorite songs, discover new tracks, or simply sing along
Download: Music Play - Lyrics and Music - Apps on Google Play

Android Auto signal strength bug still exists

Pioneer head unit in my Ridgeline. Not cheap ($499 when bought a year ago) has this bug with any Android Auto compatible phone (including the Z Flip 4) that makes it think there is no signal (shows a signal bar symbol with slash through it, and sometimes alternates between that and LTE/5G) even when there is, and sometimes causes issues with apps like YouTube music.

I've tried different cables, and even pull over in the so-called 'no service' area and check the phone, and the phone has 4 bars of LTE at the time. Sadly, Google has not yet fixed this although they have redesigned the UI of the Android Auto interface.

The only workaround is downloading the music on said apps, like I downloaded my SuperMix and then it works. But if it tries to play a song that's not downloaded, it just loads indefinitely, and of course, using Assistant won't work. I do still get text messages read out to me though, but trying to respond just ends with it saying 'I can't find a connection at the moment!'

[Free Roguelike Game] Banana Gun Roguelike

Banana Gun Roguelike
Game Link

Roguelike offline game about banana. Fights with guns against the monsters

Take a gun and run forward against the monsters, killing the enemies.

Explore locations, collect crazy weapons, dodge bullets and shoot everyone! Intuitively simple controls, incredibly smooth and addictive gameplay and many different tricks


Pre story

Among the weapons and tanks, in the middle of the battlefield, a banana tree grew. It absorbed the skills of fighting and battles, becoming stronger and more agile. Once the battles ended in endless idle mode. Young bananas were harvested and sent to the market. There he was found by a buyer and bought for coins and money. He knew what to choose, because he was one of those fighters who fought in those battlefields. He felt his own soul, the soul knight! The warrior brought the banana home and left it in a basket among the other fruits. Banana made friends with fruits, having fun and companionship. They lived like this for 10 days, developing their ability to connect. Banana shared the secrets of fighting and taught fruits the special techniques of the game.

But the day came and the man came. He took all the fruit, leaving only a plastic gun. The person acted like a dishonest or unprincipled person, like a rogue. Banana realized that this was IMBA and it was time to act. He will have an exciting adventure, and hundreds of difficult enemies will be waiting for him along the way. But he will not back down and give up, reaching the end. Just how a rogue can defeat a rogue. Having collected all his knowledge, he jumped out of the basket, grabbed a cannon and the game began.

Banana Roguelike offline brings the style and spirit of the best classic roguelikes to life with reimagined and compelling game mechanics. If you miss the roguelike genre of games and think that modern games are no longer the same, then think twice!
This game is what you were looking for

Features:
* Unique hero with unique skills.
* Lots of different weapons.
* Randomly generated dungeons are always a new gaming experience.
* Detailed enemy characters! They will fight against you with all their might!
* Intuitive controls with auto-aim system
* And much more - look in the game!

Support erowhelp@gmail.com
Site Erow.Dev games for iOS and Android

Attachments

  • bnana_screen2_1.png
    bnana_screen2_1.png
    728.4 KB · Views: 237
  • bnana_screen3.png
    bnana_screen3.png
    1 MB · Views: 178
  • bnana_screen3_1.png
    bnana_screen3_1.png
    595.5 KB · Views: 174
  • bnana_screen4.png
    bnana_screen4.png
    1,009.1 KB · Views: 164
  • bnana_screen5_1.png
    bnana_screen5_1.png
    834.1 KB · Views: 181
  • bnana_screen6.png
    bnana_screen6.png
    469.1 KB · Views: 184

Filter

Back
Top Bottom