Yesterday I've upgraded my Windows 7 SP1 Powershell from 2 to 5.1, and upgraded flutter and dart to latest version using the flutter upgrade
command, all worked fine, and I continued working as normal. Today after trying to access my project again I got a couple of errors, and all of my project structure gone. What can I do? and why that happened? Was that due to the upgrade? or something else?
Load Settings
Cannot load settings from file 'C:\Users\user\Documents\FlutterProjects\project\android\project_android.iml': ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
Please correct the file content
Load Settings
Cannot load settings from file 'C:\Users\user\Documents\FlutterProjects\project\project.iml': ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
Please correct the file content
Step 1: Open the Android Studio and select Tools from the menu bar and click on SDK Manager. Step 2: In the newly open window click on the plugins and in the search bar search for Flutter and Dart and then install it. Step 4: Now after installing Flutter and Dart we are ready to import a Flutter project.
How to update app version in Flutter. To update the app version in Flutter, you can simply open the pubspec. yaml file and then update the version tag. Inside the version tag, just increase the build number (for Android) or CFBundleVersion (for iOS).
Flutter is a mobile app SDK to help developers and designers build modern mobile apps for iOS and Android. Android Studio belongs to "Integrated Development Environment" category of the tech stack, while Flutter can be primarily classified under "Cross-Platform Mobile Development".
The problem is caused by <projectname>.iml
inside the root project folder.
<projectname>.iml
back into the root folderJust delete .idea folder from project directory an re run android studio. it worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With