question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to add Flutter Module in Android app

See original GitHub issue

Steps to Reproduce

  1. Create a native android app in Android Studio.
  2. Go to File > New > New Module …
  3. According to the instructions on Integrate a Flutter module into your Android project, you should see and option for Flutter Module, Flutter Project etc. But they are not present.

image

Version info

flutter doctor -v:

[✓] Flutter (Channel stable, 2.8.1, on Pop!_OS 21.10 5.15.15-76051515-generic,
    locale en_US.UTF-8)
    • Flutter version 2.8.1 at /home/mayank-pop/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (6 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /home/mayank-pop/Android/Sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /opt/android-studio-preview/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 13.0.0-2
    • cmake version 3.18.4
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[✓] Android Studio (version 2021.1)
    • Android Studio at /opt/android-studio-preview
    • Flutter plugin version 63.2.2
    • Dart plugin version 211.7798
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] Android Studio (version 2020.3)
    • Android Studio at /opt/android-studio
    • Flutter plugin version 63.2.1
    • Dart plugin version 203.8452
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.63.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.32.0

[✓] Connected device (3 available)
    • Redmi 4 (mobile) • 6b0b6837d440 • android-arm64  • Android 10 (API 29)
    • Linux (desktop)  • linux        • linux-x64      • Pop!_OS 21.10 5.15.15-76051515-generic
    • Chrome (web)     • chrome       • web-javascript • Google Chrome 97.0.4692.99

• No issues found!

Dart plugin version 211.7798 Flutter plugin version 63.2.2 Tested with Android Studio Arctic Fox 2020.3 and Bumblebee 2021.1.1 RC 1

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:7
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

15reactions
stevemessickcommented, Jan 25, 2022

The instructions are valid for older versions of Android Studio. In Arctic Fox they redesigned the new project wizard, which broke our support for add-to-app. We currently do not support add-to-app in Android Studio.

8reactions
prasadsunny1commented, Feb 11, 2022

I too am facing the same thing. Bumblebee does not show the options for flutter modules as author shows

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integrate a Flutter module into your Android project
The Android Studio plugin automatically configures your Android project to add your Flutter module as a dependency, and your app is ready to...
Read more >
How i can add flutter module to android app ... - Stack Overflow
This is an android studio issue so adding a module manually in the appropriate config files should still work. If you could give...
Read more >
How to add Flutter to Android App - Level Up Coding
The AAR mechanism creates generic Android AARs as intermediaries that package your Flutter module. This packages your Flutter library as a generic local...
Read more >
How to add Flutter modules to native Android project and test ...
Adding Flutter module to native Android ... First of all, you have to add two compile options sourceCompatibility & targetCompatibility to the app...
Read more >
Add2App — Adding Flutter Module to Android Project
The Gradle files could not be updated automatically. To use your Flutter module in this Android app you'll need to edit the files...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found