Repository navigation
android/app module's project buildDir not correct after subprojects block merged #91018
Copy link
Copy link
Closed
Labels
c: regressionIt was better in the past than it is nowIt was better in the past than it is nowfound in release: 2.5Found to occur in 2.5Found to occur in 2.5found in release: 2.6Found to occur in 2.6Found to occur in 2.6has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
If there is a plugin project name's lexicographical order before 'app', the prject ':app' buildDir is not set correctly.
It seems this happened after this PR merged #77942
Step to produce:
flutter create -t plugin --platforms android,ios aaa
cd example
flutter build apk
There is an unexpected build folder under android/app.
flutter doctor -v
[✓] Flutter (Channel unknown, 2.6.0-12.0.pre.135, on macOS 11.6 20G165 darwin-x64, locale zh-Hans-CN)
• Flutter version 2.6.0-12.0.pre.135 at /Users/fenglang/codes/source/flutter
• Upstream repository unknown
• Framework revision 3074c9e04b (28 hours ago), 2021-09-28 22:08:04 -0700
• Engine revision bccb3a57eb
• Dart version 2.15.0 (build 2.15.0-156.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/fenglang/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
[✓] VS Code (version 1.60.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.26.0
[!] Proxy Configuration
• HTTP_PROXY is set
! NO_PROXY is not set
[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 94.0.4606.61
! Doctor found issues in 1 category.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: regressionIt was better in the past than it is nowIt was better in the past than it is nowfound in release: 2.5Found to occur in 2.5Found to occur in 2.5found in release: 2.6Found to occur in 2.6Found to occur in 2.6has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.

Activity
littleGnAl commentedon Sep 30, 2021
It works fine when I change it back to two
subprojectsblockTahaTesser commentedon Sep 30, 2021
Hi @littleGnAl
I can reproduce the behavior on the latest master, however as you mentioned this was changed after #77942 merged,
I tried flutter commit before this PR was merged, yet I see the same result
littleGnAl commentedon Sep 30, 2021
@TahaTesser I think you should delete the
aaaproject first, then re-run the scripts, as it's a "new flutter version"TahaTesser commentedon Oct 1, 2021
Hi @littleGnAl
Thanks, yes, when recreating the project the issue doesn't reproduce with older commits.
stablemasterCheck
flutter doctor -voutputs for each channel belowflutter doctor -v
✅: No Issue ❗️: Issue reproduced
github-actions commentedon Oct 18, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.