Issue 1:
Currently the .gitignore generated when you type flutter create -t module foo inside foo contains the line ".android". My testing suggests excluding this from a git checkout causes problems for other people trying to check out your project.

You can test this by:

Start with some existing android project and follow the instructions here: https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps

Create a repository with both the android app and the flutter module. Commit and push.

Somewhere else, check out that repository and try to load in android studio.

You will see an error like the following:

Error:/usr/local/google/home/efortuna/github/flutter_dof/.android/include_flutter.groovy (/usr/local/google/home/efortuna/github/flutter_dof/.android/include_flutter.groovy)

Consult IDE log for more details (Help | Show Log)

$ flutter doctor -v
[✓] Flutter (Channel master, v0.8.3-pre.28, on Linux, locale en_US.UTF-8)
• Flutter version 0.8.3-pre.28 at /usr/local/google/home/efortuna/googleio/flutter
• Framework revision 0e8103ff13 (5 hours ago), 2018-09-11 18:16:21 +0200
• Engine revision 9a173a8dc8
• Dart version 2.1.0-dev.4.0.flutter-ef72098353

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /usr/local/google/home/efortuna/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 27.0.3
• Java binary at: /opt/android-studio-3.0/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
• All Android licenses accepted.

[✓] Android Studio (version 3.0)
• Android Studio at /opt/android-studio-3.0
• Flutter plugin version 23.2.1
• Dart plugin version 171.4424
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[✓] IntelliJ IDEA Community Edition (version 2018.1)
• IntelliJ at /opt/intellij-ce-2018.1
• Flutter plugin version 27.0.2
• Dart plugin version 181.4892.1

[✓] IntelliJ IDEA Community Edition (version 2017.3)
• IntelliJ at /opt/intellij-ce-2017.3
• Flutter plugin version 26.0.1
• Dart plugin version 173.4700

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

[✓] Connected devices (1 available)
• Pixel 2 XL • 711KPAE0891080 • android-arm64 • Android 8.1.0 (API 27)

• No issues found!

Issue 2:
I have problem in following the steps of this wiki:

Add Flutter to existing apps

I have been trying to follow this wiki to create a Android Native project that can jump to an Flutter View, but I have trouble in simply building the project.

Steps to Reproduce

Create an Android Project in Android studio (version 3.3.2), confiugration as follow:

Then I finished the building, The gradle syncing and running is good, nothing wrong here.

Then I create the flutter module in the same folder as the Android project, nothing wrong here (using flutter create -t module flutter_module_for_android)

Then I edit the app's build.gradle as follow, you can see that I have added the compileOptions to the file.

Then I edit the settings.gradle in the host project at here (I have renamed the path properly), Here we have the first problem, the ide says that the "Binding" Symbol is missing. SInce no where in the wiki has mentioned where this "Binding" coming from, I have no idea what I should do here.

Then I choose to ignore this problem and continue, then I have add the "implementation' to the app's build.gradle as the wiki requested.

After all thest procedures I click the "make" to build project, although I haven't added any active dart or android code, the project should be successfully built at least. However I got this:

I stuck at here and have no idea what I should do next, so I put forward this issues to ask for assistance.

Logs

detail Android build failure as follow:

ERROR: /Users/yifan.chen/ByteDanceIES/android_with_flutter/flutter_module_for_android/.android/Flutter/null/packages/flutter_tools/gradle/tt_flutter.gradle (No such file or directory)

flutter doctor -v result as follow:

[✓] Flutter (Channel faceu_dev_1.0.0, v1.0.1-pre.8, on Mac OS X 10.14.3 18D109, locale en-CN)
• Flutter version 1.0.1-pre.8 at /Users/yifan.chen/ByteDanceIES/flutter
• Framework revision f1c0708bd5 (3 months ago), 2019-01-15 11:42:04 +0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/yifan.chen/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
✗ Android license status unknown.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2, Build version 10E125
• ios-deploy 1.9.4
• CocoaPods version 1.6.1

[✓] Android Studio (version 3.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 34.0.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

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

[!] Connected device
! No devices available

Any suggestion or analysis is appreciated.