Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – How to fix Unknown word (CssSyntaxError) in xml file

Posted on November 11, 2022 By

Solution 1 :

At line no. 4 it should be AppCompat instead of AppCompcat, which is unknown word in this case.

P.S. Also in my experience (of Android and Flutter development) mostly, when unknown word/character error occurs, it happens in previous code line/block where error log display it.

Problem :

I have an error in the line 5 of my styles.xml for my android app with the content below

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
    <style name="LaunchTheme" parent="Theme.AppCompact.Light.NoActionBar">
        <!-- Show a splash screen on the activity. Automatically removed when
             the Flutter engine draws its first frame -->
        <item name="android:windowBackground">@drawable/launch_background</item>
    </style>
    <!-- Theme applied to the Android Window as soon as the process has started.
         This theme determines the color of the Android Window while your
         Flutter UI initializes, as well as behind your Flutter UI while its
         running.

         This Theme is only used starting with V2 of Flutter's Android embedding. -->
         <style name="NormalTheme" parent="Theme.MaterialComponents">
            <item name="android:windowBackground">?android:colorBackground</item>
        </style>
</resources>

I am building an android app with Flutter. This error prevents me from being able to access some widgets. How do I get it solved? I don’t know why I’m having this error or what may be causing it.

Here is a screenshot
enter image description here

Normally, I’m not supposed to have those errors cause it’s a file generated by the Flutter framework itself. I’ve never had a problem like this. Though, I noticed that the error clears whenever I remove the line with the item tag

READ  [FIXED] android - How to pass data from Java Activity to react native?
Powered by Inline Related Posts
Android Tags:android, android-layout, flutter, kotlin, xml

Post navigation

Previous Post: [FIXED] Unable to connect Firebase in Android Emulator for Flutter Project
Next Post: [FIXED] android – Highlight only one Card in Compose through selection

Related Posts

[FIXED] android – Flutter Timer reduces after every next questions Android
[FIXED] java – Condition so only one of the ImageView at a time can be selected, not both at once (like dislike ImageViews) Android
[FIXED] java – How to call a query when the app is run for the first time in Android Studio Android
[FIXED] Requesting app runtime permissions (Android) Android
[FIXED] What does android folder and gradle means in Flutter? Android
[FIXED] android – Viewholder Onclick – How to get reference to other views? Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Can VPN be traced by police?
  • Where were Kaiser-Frazer cars built?
  • How do you make gold rose gold paint?
  • What are the newest type of dentures?
  • Can you wear joggers as dress pants?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme