Skip to content

I have (often) no auto completion in Android Studio when developing a plugin #7487

Closed as not planned
@rekire

Description

@rekire

Steps to reproduce

  1. Create a new plugin like this: flutter create --org com.example --template=plugin --platforms=android -a kotlin hello
  2. Open the project
  3. Edit e.g. android/src/main/kotlin/com/example/hello/HelloPlugin.kt

Actual results

I have code high lighting (but also not always related bug), in that fresh project I cannot jump into the definition of the classes. There is no checking active so I can write code which won't compile without getting the normal linting or error hints.

In my real project I can fix that by opening a new Android Studio Window with the path example/android (in this sample project this even does not work on my computer). However when I open accidentally android directly the io.flutter dependencies cannot be resolved and "everything is red".

The bar "Open for editing in Android Studio" sometimes does not work (nothing happens) or it opens android instead of example/android.

Logs

Logs
Not relevant I guess otherwise I'll update this section

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.4.1 23E224 darwin-arm64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Notes

This is a follow up to discord discussion. Also related is this issue: flutter/flutter#19830

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions