<p dir="auto">Currently the .gitignore generated when you type <code class="notranslate">flutter create -t module foo</code> inside <code class="notranslate">foo</code> contains the line ".android". My testing suggests excluding this from a git checkout causes problems for other people trying to check out your project.</p>
<p dir="auto">You can test this by:</p>
<ol dir="auto">
<li>Start with some existing android project and follow the instructions here: <a href="https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps">https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps</a></li>
<li>Create a repository with both the android app and the flutter module. Commit and push.</li>
<li>Somewhere else, check out that repository and try to load in android studio.<br>
You will see an error like the following:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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)"><pre class="notranslate"><code class="notranslate">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)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $ 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!"><pre class="notranslate"><code class="notranslate"> $ 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!
</code></pre></div>
<p dir="auto">I have problem in following the steps of this wiki:<br>
<a href="https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps">Add Flutter to existing apps</a></p>
<p dir="auto">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.</p>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>
<p dir="auto">Create an Android Project in Android studio (version 3.3.2),  confiugration as follow:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9447003/55861056-2d0d7200-5ba8-11e9-941a-5e9659743ce2.png"><img src="https://user-images.githubusercontent.com/9447003/55861056-2d0d7200-5ba8-11e9-941a-5e9659743ce2.png" alt="image" style="max-width: 100%;"></a></p>
</li>
<li>
<p dir="auto">Then I finished the building, The gradle syncing and running is good, nothing wrong here.</p>
</li>
<li>
<p dir="auto">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)</p>
</li>
<li>
<p dir="auto">Then I edit the app's build.gradle as follow, you can see that I have added the compileOptions to the file.</p>
</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9447003/55861931-fe909680-5ba9-11e9-9c64-50bc379ec711.png"><img src="https://user-images.githubusercontent.com/9447003/55861931-fe909680-5ba9-11e9-9c64-50bc379ec711.png" alt="image" style="max-width: 100%;"></a></p>
<ol start="4" dir="auto">
<li>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.</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9447003/55863123-7cee3800-5bac-11e9-8775-6c1aee67096c.png"><img src="https://user-images.githubusercontent.com/9447003/55863123-7cee3800-5bac-11e9-8775-6c1aee67096c.png" alt="image" style="max-width: 100%;"></a></p>
<ol start="5" dir="auto">
<li>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.</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9447003/55862772-b7a3a080-5bab-11e9-92f1-347ab4a01a19.png"><img src="https://user-images.githubusercontent.com/9447003/55862772-b7a3a080-5bab-11e9-92f1-347ab4a01a19.png" alt="image" style="max-width: 100%;"></a></p>
<ol start="6" dir="auto">
<li>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:</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9447003/55863152-91323500-5bac-11e9-8fbc-b3a64daa97d9.png"><img src="https://user-images.githubusercontent.com/9447003/55863152-91323500-5bac-11e9-8fbc-b3a64daa97d9.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I stuck at here and have no idea what I should do next, so I put forward this issues to ask for assistance.</p>
<h2 dir="auto">Logs</h2>
<p dir="auto">detail Android build failure as follow:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
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)

"><pre class="notranslate"><code class="notranslate">
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)


</code></pre></div>
<p dir="auto">flutter doctor -v result as follow:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] 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"><pre class="notranslate"><code class="notranslate">[✓] 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
</code></pre></div>
<p dir="auto">Any suggestion or analysis is appreciated.</p>