Android studio writes Dart code inside XML files
Steps to Reproduce
When I open styles.xml or AndroidManifest.xml I see Dart codes. This happens sporadically and I am still trying to figure out when exactly it happens. It happened 3 times so far at random point.

Version info
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17134.590], locale en-MU) [√] Android toolchain - develop for Android devices (Android SDK 28.0.3) [√] Android Studio (version 3.3) [√] Connected device (1 available)
Thanks for the report! We haven't gotten other reports of this, so I'm curious how it's happening. Please let us know as you get more details.
Have you enabled the experimental option to make code completion, etc. work for Java code in the Android module? If not, I'd recommend opening the Android module in a new project to edit files in the 'android' directory. Just click the Open for editing in Android Studio button in the screenshot.
Did the Dart code completely replace the original XML content? Is there any chance a spurious keyboard command may have gotten processed by the XML editor?
Without additional information we're unfortunately not sure how to resolve this issue. We're going to close this bug for now, but please don't hesitate to comment on the bug if you have any more information for us; we're happy to reopen. Thanks for your contribution!
Without additional information we're unfortunately not sure how to resolve this issue. We're going to close this bug for now, but please don't hesitate to comment on the bug if you have any more information for us; we're happy to reopen. Thanks for your contribution!
Steps to Reproduce When I open xml or .java i see Dart codes. Close or uninstall,but i see Dart codes.This happens sporadically and I am still trying to figure out when exactly it happens. Version info [√] Flutter (Channel dev, v1.8.1, on Microsoft Windows [Version 10.0.14393], locale zh-CN) [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [√] Android Studio (version 3.4) [√] Android Studio (version 3.2) [√] VS Code, 64-bit edition (version 1.32.3) [√] Connected device (1 available)
Currently something similar happens to me, and it happens randomly. Instead of Dart code, XML appears. I was forced to use VSC.
I got the same problem as above. When I opened my flutter project, there was a popup "Android Framework is detected". I clicked on 'Configure' link and it overwrote dart files with XML.
I removed the project from Android studio, deleted .idea folder inside the project and re-imported the project but issue was still there. Issue did not resolve with 'Invalidate Cache/Restart' option either.
Then I again removed the project, deleted .idea and .AndroidStudio folder and re-imported, this time it worked. I lost all custom settings and had to reinstall flutter and dart plugins.
Currently something similar happens to me, and it happens randomly. Instead of Dart code, XML appears. I was forced to use VSC.
I have the same problem! I just can't understand why does this actually happen! Anybody has some suggestion for me ?
I have the same problem. Because I have plugged flutter.
i have the same problem and i was forced to use vsc , anybody knows why this is happening ?
Currently something similar happens to me, and it happens randomly. Instead of Dart code, XML appears. I was forced to use VSC.
I have the same problem! I just can't understand why does this actually happen! Anybody has some suggestion for me ?
i have the same problem and i was forced to use vsc , anybody knows why this is happening ?
Currently something similar happens to me, and it happens randomly. Instead of Dart code, XML appears. I was forced to use VSC.
I have the same problem! I just can't understand why does this actually happen! Anybody has some suggestion for me ?
it was solved after resetting android studio