-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consoleteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
_getBuildGradleConfigurationFilePaths
is null with --template=package_ffi
(and possibly other templates).
cc @camsim99
Command
flutter config --enable-native-assets
flutter create --template=package_ffi my_package_2
Steps to Reproduce
- Make sure you have an incompatible java version
- Run
flutter config --enable-native-assets
- Run
flutter create --template=package_ffi foo
Logs
_TypeError: (#0 _printIncompatibleJavaAgpGradleVersionsWarning (package:flutter_tools/src/commands/create.dart:962:115))
#0 _printIncompatibleJavaAgpGradleVersionsWarning (package:flutter_tools/src/commands/create.dart:962:115)
#1 CreateCommand.runCommand (package:flutter_tools/src/commands/create.dart:526:7)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1450:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:421:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension>
�[32m[✓]�[39m Flutter (Channel main, 3.25.0-1.0.pre.219, on macOS 14.6.1 23G93 darwin-arm64, locale en)
�[32m•�[39m Flutter version 3.25.0-1.0.pre.219 on channel main at /Users/dacoharkes/flt/engine/flutter
�[32m•�[39m Upstream repository git@github.com:flutter/flutter
�[32m•�[39m Framework revision 6fe09872b1 (3 days ago), 2024-08-30 19:53:11 -0400
�[32m•�[39m Engine revision 2d56e44888
�[32m•�[39m Dart version 3.6.0 (build 3.6.0-198.0.dev)
�[32m•�[39m DevTools version 2.39.0
�[33m[!]�[39m Android toolchain - develop for Android devices (Android SDK version 34.0.0)
�[32m•�[39m Android SDK at /Users/dacoharkes/Library/Android/sdk
�[32m•�[39m Platform android-34, build-tools 34.0.0
�[32m•�[39m ANDROID_HOME = /Users/dacoharkes/Library/Android/sdk
�[32m•�[39m ANDROID_SDK_ROOT = /Users/dacoharkes/Library/Android/sdk
�[32m•�[39m Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
�[32m•�[39m Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
�[31m✗�[39m Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/to/macos-android-setup for more details.
�[32m[✓]�[39m Xcode - develop for iOS and macOS (Xcode 15.0.1)
�[32m•�[39m Xcode at /Applications/Xcode.app/Contents/Developer
�[32m•�[39m Build 15A507
�[32m•�[39m CocoaPods version 1.15.2
�[32m[✓]�[39m Chrome - develop for the web
�[32m•�[39m Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
�[32m[✓]�[39m Android Studio (version 2021.3)
�[32m•�[39m Android Studio at /Applications/Android Studio.app/Contents
�[32m•�[39m Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
�[32m•�[39m Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
�[32m•�[39m Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
�[32m[✓]�[39m VS Code (version 1.92.2)
�[32m•�[39m VS Code at /Applications/Visual Studio Code.app/Contents
�[32m•�[39m Flutter extension version 3.94.0
�[32m[✓]�[39m Connected device (4 available)
�[32m•�[39m Daco’s iPhone (mobile) • 00008110-001410883A78401E • ios • iOS 17.5.1 21F90
�[32m•�[39m macOS (desktop) • macos • darwin-arm64 • macOS 14.6.1 23G93 darwin-arm64
�[32m•�[39m Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.6.1 23G93 darwin-arm64
�[32m•�[39m Chrome (web) • chrome • web-javascript • Google Chrome 128.0.6613.113
�[32m[✓]�[39m Network resources
�[32m•�[39m All expected network resources are available.
�[33m!�[39m Doctor found issues in 1 category.
Flutter Application Metadata
No pubspec in working directory.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consoleteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team