I installed AndroidStudio because I have a new PC, but there was an error that didn't appear last time.
When creating a new project, the android:theme="@style/AppTheme"
in the AndroidManifest.xml
file displays an error."When I hover my cursor over the message translation site, ""Top level element is not completed"", I thought it might be a path error, so I tried to change the path from "@style/AppTheme"
to "@style/AppTheme"
but couldn't solve it."
Strangely enough, the build is complete even though there is a red line.
I took a video to make the situation more specific.(Approximately 3 minutes)
https://www.youtube.com/watch?v=80Z4SEtqtus&feature=youtu.be
Please let me know if you know the cause.
I look forward to your kind cooperation.
Language Injection appears to be malfunctioning.
Android Studio (IntelliJ IDEA) Language Injection - Britechno Blog
When I click on the light bulb icon (around 2:02 in the video), the menu Edit XML Fragment
appears, but Android Studio believes this string is XML.Therefore, @style/AppTheme
has been verified as XML, and the error Top level element is not completed
has occurred.
Therefore, if you select Uninject language/reference
at the bottom of the menu, you will not see any errors.
On the other hand, this string does not actually need to be XML, so the build will go through without any problems.
Similar cases have been reported to Google Code and home SO...
© 2024 OneMinuteCode. All rights reserved.