[✓] Flutter (Channel stable, 3.38.5, on macOS 26.3 25D5087f darwin-arm64, locale en-US) [939ms]
• Flutter version 3.38.5 on channel stable at /Users/deanli/dev/stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f6ff1529fd (4 weeks ago), 2025-12-11 11:50:07 -0500
• Engine revision 1527ae0ec5
• Dart version 3.10.4
• DevTools version 2.51.1
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration
[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [8.5s]
• Android SDK at /Users/deanli/Library/Android/sdk
• Emulator version 36.3.10.0 (build_id 14472402) (CL:N/A)
• Platform android-36.1, build-tools 36.1.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 26.2) [2.6s]
• Xcode at /Applications/Xcode-26.2.0-release-candidate.app/Contents/Developer
• Build 17C48
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [6ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Connected device (4 available) [8.8s]
• Pixel 7 (mobile) • 28291FDH2001SA • android-arm64 • Android 16 (API 36)
• iPhone 16 Pro Max (wireless) (mobile) • 00008140-00194CC23A68801C • ios • iOS 26.3 23D5089e
• macOS (desktop) • macos • darwin-arm64 • macOS 26.3 25D5087f darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 143.0.7499.170
! Error: Browsing on the local area network for Nexus. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
! Error: Browsing on the local area network for Dean iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources [1,183ms]
• All expected network resources are available.
• No issues found!
[!] Flutter (Channel master, 3.40.0-1.0.pre-384, on macOS 26.3 25D5087f darwin-arm64, locale en-US) [3.7s]
• Flutter version 3.40.0-1.0.pre-384 on channel master at /Users/deanli/dev/master
! Warning: `flutter` on your path resolves to /Users/deanli/dev/stable/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/deanli/dev/master. Consider adding /Users/deanli/dev/master/bin to the front of your path.
! Warning: `dart` on your path resolves to /Users/deanli/dev/stable/bin/dart, which is not inside your current Flutter SDK checkout at /Users/deanli/dev/master. Consider adding /Users/deanli/dev/master/bin to the front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 3219b42017 (6 hours ago), 2026-01-04 23:14:31 -0500
• Engine revision 3219b42017
• Dart version 3.11.0 (build 3.11.0-284.0.dev)
• DevTools version 2.53.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-windowing, enable-lldb-debugging, enable-uiscene-migration
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [1,942ms]
• Android SDK at /Users/deanli/Library/Android/sdk
• Emulator version 36.3.10.0 (build_id 14472402) (CL:N/A)
• Platform android-36.1, build-tools 36.1.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 26.2) [1,521ms]
• Xcode at /Applications/Xcode-26.2.0-release-candidate.app/Contents/Developer
• Build 17C48
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [5ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Connected device (4 available) [7.2s]
• Pixel 7 (mobile) • 28291FDH2001SA • android-arm64 • Android 16 (API 36)
• iPhone 16 Pro Max (wireless) (mobile) • 00008140-00194CC23A68801C • ios • iOS 26.3 23D5089e
• macOS (desktop) • macos • darwin-arm64 • macOS 26.3 25D5087f darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 143.0.7499.170
! Error: Browsing on the local area network for Nexus. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
! Error: Browsing on the local area network for Dean iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources [913ms]
• All expected network resources are available.
! Doctor found issues in 1 category.
Steps to reproduce
This is the add2app counterpart to #175688
Expected results
Gradle is able to sync properly
Actual results
Gradle sync fails with
Add2App is a different scenario and since any changes we make to the
.androiddirectory are only temporary, we can't apply the modifications from #175688 (comment) to make it work. I tried but, I ended up with the same error.Code sample
Attached below is an android project that has been upgraded to support AGP 9.
PS: The module worked before upgrading to AGP 9
Archive.zip
Screenshots or Video
N/A
Logs
Logs
Flutter Doctor output
Doctor output