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

Search results

  1. M

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

    Yes, yesterday. It turns out that Android hates having empty directories, and since I had deleted all the navigation components that use Fragments and XML and switched to Compose navigation, I had an empty "menu" directory and an empty "navigation" directory. I hadn't deleted them in case I...
  2. M

    "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: Execution failed for task ':app:extractDeepLinksDebug'. >...
  3. M

    Why would an error say "Fragment not attached to Activity" when onDetach has never been called?

    FINALLY figured it out. I was creating new WelcomeFragments on every call, which of course were not attached to the Activity - only the original WelcomeFragment was. I passed "this@WelcomeFragment" to my Compose UI so that I could call it without creating a new one. All works now. Thanks! It...
  4. M

    Why would an error say "Fragment not attached to Activity" when onDetach has never been called?

    I am pretty new to Android Dev, although not new to programming in general. I'm comfortable with the basics of Android but have moved on to data persistence and am having trouble - I'm used to raw SQL queries and APIs, and am finding the Android model a little obscure. I have implemented a Room...