Skip to content

Deeper IDE integration between Android Studio and the Flutter plugin #5817

Open
@workerbee22

Description

@workerbee22

Android Studio shows errors in AndroidManifest.xml. These errors are not material and do not cause a problem building the Android app version of the Flutter project. But 'Problems' are shown on the Project.

I think this has been a problem with Flutter projects in Android Studio since BEFORE Flutter v1. Untidy errors like this create confusion and undermine confidence in Flutter. Given we are at Flutter v2.5.x and we want to improve Flutter maturity, we should seek to remove such 'bogus' errors reported in the Google supported IDE.

This may be an Android tool chain issue when part of a Flutter application, but I would have thought we could have resolved these by now. Its not a good look for Devs new to Flutter.

Steps to reproduce

Android Studio / File / New / New Flutter Project
Open AndroidManifest.xml located in /android/app/src/main
These errors shown:

image

image

Previous Issues Logged but Closed
This issue or very very similar ones keep getting raised and closed. Note that every single Flutter ap I have ever created still has these errors. There are more but here is a sample of previous issues from the Flutter repo:

June 19th 2021: #84866
May 10th 2017: #9944
March 2018: #15722

Flutter Doctor:

[✓] Flutter (Channel stable, 2.5.2, on macOS 11.6 20G165 darwin-x64, locale en-AU)
• Flutter version 2.5.2 at /Users/gamma/Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 3595343 (11 days ago), 2021-09-30 12:58:18 -0700
• Engine revision 6ac856380f
• Dart version 2.14.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/gamma/Library/Android/sdk
• Platform android-S, build-tools 30.0.2
• ANDROID_HOME = /Users/gamma/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.11.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.61.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.27.0

[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-x64 • macOS 11.6 20G165 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 94.0.4606.81
! Error: Mike's iPhone is not connected. Xcode will continue when Mike's iPhone is connected. (code -13)

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    ide-consistencyIssues where we are not up to date with IDEmeta

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions