New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display correct errors and warnings while editing Android code on Flutter project in Android Studio #4819
Comments
Have you enabled the experimental feature that supports this? To check, open Flutter Preferences/Settings and make sure the check box is ticked for That option has been around for a while but it will probably always be experimental. It is really difficult to keep it working. It depends on APIs that both Jetbrains and Android Studio frequently modify. And the Flutter team often restructures their libraries, which is another source of breakage. |
Could you provide the steps so I can navigate to |
Thanks for the steps @stevemessick. It worked for me. |
Great! Thanks for verifying that it still works :) |
Errors seems to be always displayed on Android-specific code in the Flutter project. Correct errors and warnings are displayed if 'Open for Editing in Android Studio' was clicked. The Flutter app runs as expected though.
Steps to Reproduce
Edit Android code in Flutter project.
Clicking 'Open for Editing in Android Studio', the errors displayed goes away.
Version info
/Users/{USER}/Downloads/flutter/bin/flutter doctor --verbose
[✓] Flutter (Channel stable, 1.20.3, on Mac OS X 10.15.6)
• Flutter version 1.20.3 at /Users/{USER}/Downloads/flutter
• Framework revision 216dee60c0 (9 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/{USER}/Library/Android/sdk
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /Users/{USER}/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C505
• CocoaPods version 1.9.0
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.48.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.12.2
[✓] Connected device (1 available)
• AOSP on IA Emulator (mobile) • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
• No issues found!
Process finished with exit code 0
The text was updated successfully, but these errors were encountered: