Skip to content

flutter create --template=plugin_ffi doesn't warn about lack of platform support #106783

@buzmeg

Description

@buzmeg

Steps to Reproduce

Issue the following commands which follow the messages given by flutter:

flutter create --template=plugin_ffi flffi
cd flffi/example
flutter run -vv
flutter create . -vv
cd .
flutter run -vv

Application crashes with

Creating project flffi...
Running "flutter pub get" in flffi...                            1,206ms
Running "flutter pub get" in example...                          1,461ms
Wrote 25 files.

All done!
In order to run your application, type:

  $ cd flffi/example
  $ flutter run

Your application code is in flffi/example/lib/main.dart.

 [1:57AM (CDT-0500)]  :~/flutter_tests   took 3s 
 λ cd flffi/example        
 [1:57AM (CDT-0500)]  :~/flutter_tests/flffi/example is 📦 v1.0.0+1   
 λ flutter run    
No supported devices connected.
The following devices were found, but are not supported by this project:
Pixel (mobile)  • FA69T0306242 • android-arm64  • Android 10 (API 29)
Linux (desktop) • linux        • linux-x64      • Ubuntu 20.04.4 LTS 5.4.0-120-generic
Chrome (web)    • chrome       • web-javascript • Google Chrome 103.0.5060.53
If you would like your app to run on android or linux or web, consider running `flutter create .` to generate projects for these platforms.

[1 - ERROR] [1:57AM (CDT-0500)]  :~/flutter_tests/flffi/example is 📦 v1.0.0+1   
 λ flutter create .
Recreating project ....
  test/widget_test.dart (created)
  web/index.html (created)
  web/icons/Icon-maskable-512.png (created)
  web/icons/Icon-maskable-192.png (created)
  web/icons/Icon-192.png (created)
  web/icons/Icon-512.png (created)
  web/favicon.png (created)
  web/manifest.json (created)
  macos/Runner/Info.plist (created)
  macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png (created)
  macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png (created)
  macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png (created)
  macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png (created)
  macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (created)
  macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png (created)
  macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png (created)
  macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png (created)
  macos/Runner/AppDelegate.swift (created)
  macos/Runner/Configs/Debug.xcconfig (created)
  macos/Runner/Configs/Release.xcconfig (created)
  macos/Runner/Configs/AppInfo.xcconfig (created)
  macos/Runner/Configs/Warnings.xcconfig (created)
  macos/Runner/Base.lproj/MainMenu.xib (created)
  macos/Runner/DebugProfile.entitlements (created)
  macos/Runner/Release.entitlements (created)
  macos/Runner/MainFlutterWindow.swift (created)
  macos/Flutter/Flutter-Debug.xcconfig (created)
  macos/Flutter/Flutter-Release.xcconfig (created)
  macos/Runner.xcodeproj/project.pbxproj (created)
  macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (created)
  macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (created)
  macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (created)
  macos/Runner.xcworkspace/contents.xcworkspacedata (created)
  macos/.gitignore (created)
  android/app/src/debug/AndroidManifest.xml (created)
  android/app/src/main/AndroidManifest.xml (created)
  android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (created)
  android/app/src/main/res/values-night/styles.xml (created)
  android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (created)
  android/app/src/main/res/drawable/launch_background.xml (created)
  android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (created)
  android/app/src/main/res/values/styles.xml (created)
  android/app/src/main/res/drawable-v21/launch_background.xml (created)
  android/app/src/main/res/mipmap-mdpi/ic_launcher.png (created)
  android/app/src/main/res/mipmap-hdpi/ic_launcher.png (created)
  android/app/src/profile/AndroidManifest.xml (created)
  android/.gitignore (created)
  android/settings.gradle (created)
  android/gradle/wrapper/gradle-wrapper.properties (created)
  android/gradle.properties (created)
  ios/Runner/Info.plist (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
  ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md (created)
  ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] (created)
  ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json (created)
  ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png (created)
  ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] (created)
  ios/Runner/Base.lproj/LaunchScreen.storyboard (created)
  ios/Runner/Base.lproj/Main.storyboard (created)
  ios/Flutter/Debug.xcconfig (created)
  ios/Flutter/AppFrameworkInfo.plist (created)
  ios/Flutter/Release.xcconfig (created)
  ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (created)
  ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (created)
  ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (created)
  ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata (created)
  ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (created)
  ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (created)
  ios/Runner.xcworkspace/contents.xcworkspacedata (created)
  ios/.gitignore (created)
  linux/main.cc (created)
  linux/my_application.h (created)
  linux/flutter/CMakeLists.txt (created)
  linux/.gitignore (created)
  linux/CMakeLists.txt (created)
  linux/my_application.cc (created)
  windows/flutter/CMakeLists.txt (created)
  windows/runner/resource.h (created)
  windows/runner/resources/app_icon.ico (created)
  windows/runner/main.cpp (created)
  windows/runner/utils.h (created)
  windows/runner/utils.cpp (created)
  windows/runner/CMakeLists.txt (created)
  windows/runner/win32_window.cpp (created)
  windows/runner/runner.exe.manifest (created)
  windows/runner/Runner.rc (created)
  windows/runner/flutter_window.cpp (created)
  windows/runner/flutter_window.h (created)
  windows/runner/win32_window.h (created)
  windows/.gitignore (created)
  windows/CMakeLists.txt (created)
  ios/Runner/Runner-Bridging-Header.h (created)
  ios/Runner/AppDelegate.swift (created)
  ios/Runner.xcodeproj/project.pbxproj (created)
  example.iml (created)
  android/app/src/main/kotlin/com/example/example/MainActivity.kt (created)
  android/app/build.gradle (created)
  android/build.gradle (created)
  android/example_android.iml (created)
Running "flutter pub get" in example...                            453ms
Wrote 117 files.

All done!
In order to run your application, type:

  $ cd .
  $ flutter run

Your application code is in ./lib/main.dart.

 [1:58AM (CDT-0500)]  :~/flutter_tests/flffi/example is 📦 v1.0.0+1   took 1s 
 λ cd .
 [1:58AM (CDT-0500)]  :~/flutter_tests/flffi/example is 📦 v1.0.0+1   
 λ flutter run -vv
[  +62 ms] executing: uname -m
[  +30 ms] Exit code 0 from: uname -m
[        ] x86_64
[   +6 ms] executing: [/home/myusername/local/src/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +7 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 676cefaaff197f27424942307668886253e1ec35
[        ] executing: [/home/myusername/local/src/flutter/] git tag --points-at 676cefaaff197f27424942307668886253e1ec35
[  +19 ms] Exit code 0 from: git tag --points-at 676cefaaff197f27424942307668886253e1ec35
[        ] 3.0.3
[  +12 ms] executing: [/home/myusername/local/src/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +8 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/myusername/local/src/flutter/] git ls-remote --get-url origin
[   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +95 ms] executing: [/home/myusername/local/src/flutter/] git rev-parse --abbrev-ref HEAD
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +70 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +73 ms] executing: /home/myusername/Android/Sdk/platform-tools/adb devices -l
[  +40 ms] List of devices attached
           FA69T0306242           device usb:3-1.4.1 product:sailfish model:Pixel device:sailfish transport_id:87
[   +6 ms] /home/myusername/Android/Sdk/platform-tools/adb -s FA69T0306242 shell getprop
[  +97 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +136 ms] Skipping pub get: version match.
[  +20 ms] Found plugin flffi at /home/myusername/flutter_tests/flffi/
[  +50 ms] Found plugin flffi at /home/myusername/flutter_tests/flffi/
[  +21 ms] Generating /home/myusername/flutter_tests/flffi/example/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +55 ms] ro.hardware = sailfish
[        ] ro.build.characteristics = nosdcard
[  +37 ms] Initializing file store
[   +8 ms] Skipping target: gen_localizations
[   +3 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /home/myusername/flutter_tests/flffi/example/.dart_tool/package_config_subset}
[   +6 ms] Found plugin flffi at /home/myusername/flutter_tests/flffi/
[  +21 ms] gen_dart_plugin_registrant: Complete
[        ] _composite: Starting due to {}
[        ] _composite: Complete
[   +1 ms] complete
[   +5 ms] Launching lib/main.dart on Pixel in debug mode...
[   +4 ms] /home/myusername/local/src/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/myusername/local/src/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot --sdk-root
/home/myusername/local/src/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill
/tmp/flutter_tools.ELBOCA/flutter_tool.LJNWIE/app.dill --packages /home/myusername/flutter_tests/flffi/example/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill build/c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy
[  +16 ms] executing: /home/myusername/Android/Sdk/platform-tools/adb -s FA69T0306242 shell -x logcat -v time -t 1
[  +15 ms] <- compile package:flffi_example/main.dart
[  +90 ms] --------- beginning of main
           06-28 23:57:58.603 D/WificondScannerImpl(  924): Filtering out 3 scan results.
[  +14 ms] executing: /home/myusername/Android/Sdk/platform-tools/adb version
[  +11 ms] Android Debug Bridge version 1.0.41
           Version 30.0.5-6877874
           Installed as /home/myusername/Android/Sdk/platform-tools/adb
[   +2 ms] executing: /home/myusername/Android/Sdk/platform-tools/adb start-server
[  +11 ms] Building APK
[  +23 ms] Running Gradle task 'assembleDebug'...
[   +5 ms] Using gradle from /home/myusername/flutter_tests/flffi/example/android/gradlew.
[  +22 ms] executing: /home/myusername/local/src/android-studio/jre/bin/java -version
[ +111 ms] Exit code 0 from: /home/myusername/local/src/android-studio/jre/bin/java -version
[        ] openjdk version "11.0.12" 2021-07-20
           OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
           OpenJDK 64-Bit Server VM (build 11.0.12+0-b1504.28-7817840, mixed mode)
[   +1 ms] executing: [/home/myusername/flutter_tests/flffi/example/android/] /home/myusername/flutter_tests/flffi/example/android/gradlew -Pverbose=true -Ptarget-platform=android-arm64 -Ptarget=/home/myusername/flutter_tests/flffi/example/lib/main.dart
-Pbase-application-name=android.app.Application -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+1495 ms] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[+14887 ms] > Task :app:compileFlutterBuildDebug
[        ] > Task :app:packLibsflutterBuildDebug
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[  +99 ms] > Task :app:generateDebugBuildConfig
[        ] > Task :app:cleanMergeDebugAssets UP-TO-DATE
[        ] > Task :app:checkDebugAarMetadata
[        ] > Task :app:mergeDebugShaders
[        ] > Task :app:compileDebugShaders NO-SOURCE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +199 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:generateDebugResValues
[        ] > Task :app:generateDebugResources
[ +199 ms] > Task :app:createDebugCompatibleScreenManifests
[        ] > Task :app:extractDeepLinksDebug
[        ] > Task :app:processDebugMainManifest
[        ] > Task :app:processDebugManifest
[        ] > Task :app:mergeDebugResources
[        ] > Task :app:javaPreCompileDebug
[  +98 ms] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :app:checkDebugDuplicateClasses
[ +399 ms] > Task :app:mergeDebugJniLibFolders
[        ] > Task :app:validateSigningDebug
[        ] > Task :app:desugarDebugFileDependencies
[        ] > Task :app:writeDebugAppMetadata
[ +199 ms] > Task :app:compressDebugAssets
[        ] Execution optimizations have been disabled for task ':app:compressDebugAssets' to ensure correctness due to the following reasons:
[        ]   - Gradle detected a problem with the following location: '/home/myusername/flutter_tests/flffi/example/build/app/intermediates/assets/debug/mergeDebugAssets'. Reason: Task ':app:compressDebugAssets' uses this output of task
':app:copyFlutterAssetsDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to
https://docs.gradle.org/7.4/userguide/validation_problems.html#implicit_dependency for more details about this problem.
[ +199 ms] > Task :app:mergeDebugNativeLibs
[ +400 ms] > Task :app:stripDebugDebugSymbols
[        ] > Task :app:writeDebugSigningConfigVersions
[        ] > Task :app:processDebugManifestForPackage
[ +299 ms] > Task :app:processDebugResources
[ +299 ms] > Task :app:mergeExtDexDebug
[ +800 ms] > Task :app:compileDebugKotlin
[ +200 ms] > Task :app:compileDebugJavaWithJavac
[  +99 ms] > Task :app:dexBuilderDebug
[ +299 ms] > Task :app:mergeDebugJavaResource
[ +901 ms] > Task :app:mergeDexDebug
[+2593 ms] > Task :app:packageDebug
[        ] > Task :app:createDebugApkListingFileRedirect
[        ] > Task :app:assembleDebug
[        ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
[        ] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
[        ] See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings
[        ] Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
[        ] Please consult deprecation warnings for more details.
[        ] BUILD SUCCESSFUL in 23s
[        ] 35 actionable tasks: 34 executed, 1 up-to-date
[ +360 ms] Running Gradle task 'assembleDebug'... (completed in 24.2s)
[  +54 ms] calculateSha: LocalDirectory: '/home/myusername/flutter_tests/flffi/example/build/app/outputs/flutter-apk'/app.apk
[ +713 ms] ✓  Built build/app/outputs/flutter-apk/app-debug.apk.
[   +2 ms] executing: /home/myusername/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/myusername/flutter_tests/flffi/example/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[  +13 ms] Exit code 0 from: /home/myusername/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/myusername/flutter_tests/flffi/example/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1f
               A: android:compileSdkVersionCodename(0x01010573)="12" (Raw: "12")
               A: package="com.example.example" (Raw: "com.example.example")
               A: platformBuildVersionCode=(type 0x10)0x1f
               A: platformBuildVersionName=(type 0x10)0xc
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1f
               E: uses-permission (line=15)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=17)
                 A: android:label(0x01010001)="example" (Raw: "example")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="android.app.Application" (Raw: "android.app.Application")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=23)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.example.MainActivity" (Raw: "com.example.example.MainActivity")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=38)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: intent-filter (line=42)
                     E: action (line=43)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=45)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=52)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: uses-library (line=56)
                   A: android:name(0x01010003)="androidx.window.extensions" (Raw: "androidx.window.extensions")
                   A: android:required(0x0101028e)=(type 0x12)0x0
                 E: uses-library (line=59)
                   A: android:name(0x01010003)="androidx.window.sidecar" (Raw: "androidx.window.sidecar")
                   A: android:required(0x0101028e)=(type 0x12)0x0
[   +3 ms] Stopping app 'app.apk' on Pixel.
[        ] executing: /home/myusername/Android/Sdk/platform-tools/adb -s FA69T0306242 shell am force-stop com.example.example
[  +91 ms] executing: /home/myusername/Android/Sdk/platform-tools/adb -s FA69T0306242 shell pm list packages com.example.example
[  +97 ms] package:com.example.example
[   +5 ms] executing: /home/myusername/Android/Sdk/platform-tools/adb -s FA69T0306242 shell cat /data/local/tmp/sky.com.example.example.sha1
[  +64 ms] 0103302c9fcfd85a5e4e36d375210bbba1db48a8
[   +1 ms] Latest build already installed.
[        ] executing: /home/myusername/Android/Sdk/platform-tools/adb -s FA69T0306242 shell -x logcat -v time -t 1
[  +86 ms] --------- beginning of main
           06-28 23:58:40.854 D/RegisteredNfcFServicesCache(23566): Service unchanged, not updating
[  +25 ms] executing: /home/myusername/Android/Sdk/platform-tools/adb -s FA69T0306242 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true
com.example.example/com.example.example.MainActivity
[ +131 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.example/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +782 ms] Observatory URL on device: http://127.0.0.1:49539/i8v2vnnq7jg=/
[   +2 ms] executing: /home/myusername/Android/Sdk/platform-tools/adb -s FA69T0306242 forward tcp:0 tcp:49539
[  +23 ms] 44241
[        ] Forwarded host port 44241 to device port 49539 for Observatory
[  +19 ms] Caching compiled dill
[  +54 ms] Connecting to service protocol: http://127.0.0.1:44241/i8v2vnnq7jg=/
[ +475 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:44241/i8v2vnnq7jg=/.
[ +273 ms] DDS is listening at http://127.0.0.1:45899/QttfbazQHx8=/.
[  +80 ms] 
           ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
           The following ArgumentError was thrown attaching to the render tree:
           Invalid argument(s): Failed to load dynamic library 'libflffi.so': dlopen failed: library
           "libflffi.so" not found
           
           When the exception was thrown, this was the stack:
           #0      _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:12:43)
           #1      new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:23:12)
           #2      _dylib.<anonymous closure> (package:flffi/flffi.dart:50:27)
           #3      _dylib (package:flffi/flffi.dart:56:2)
           #4      _dylib (package:flffi/flffi.dart)
           #5      _bindings (package:flffi/flffi.dart:59:47)
           #6      _bindings (package:flffi/flffi.dart)
           #7      sum (package:flffi/flffi.dart:20:26)
           #8      _MyAppState.initState (package:flffi_example/main.dart:24:23)
           #9      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4942:57)
           #10     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4781:5)
           #11     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3817:16)
           #12     Element.updateChild (package:flutter/src/widgets/framework.dart:3551:18)
           #13     RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1202:16)
           #14     RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1171:5)
           #15     RenderObjectToWidgetAdapter.attachToRenderTree.<anonymous closure> (package:flutter/src/widgets/binding.dart:1119:18)
           #16     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2597:19)
           #17     RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1118:13)
           #18     WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:953:7)
           #19     WidgetsBinding.scheduleAttachRootWidget.<anonymous closure> (package:flutter/src/widgets/binding.dart:933:7)
           (elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)
           ════════════════════════════════════════════════════════════════════════════════════════════════════
[   +8 ms] Successfully connected to service protocol: http://127.0.0.1:44241/i8v2vnnq7jg=/
[ +128 ms] DevFS: Creating new filesystem on the device (null)
[  +71 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.example/code_cache/exampleKPFSJR/example/)
[   +3 ms] Updating assets
[  +88 ms] Syncing files to device Pixel...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] Processing bundle.
[        ] <- recompile package:flffi_example/main.dart 2e841c40-3f3b-4ccf-9b9a-00c71bd0a4cb
[        ] <- 2e841c40-3f3b-4ccf-9b9a-00c71bd0a4cb
[   +1 ms] Bundle processing done.
[   +1 ms] W/Gralloc3( 6933): mapper 3.x is not supported
[  +91 ms] Updating files.
[        ] DevFS: Sync finished
[   +1 ms] Syncing files to device Pixel... (completed in 96ms)
[        ] Synced 0.0MB.
[   +1 ms] <- accept
[   +5 ms] Connected to _flutterView/0x758fc95a20.
[   +2 ms] Flutter run key commands.
[   +1 ms] r Hot reload. 🔥🔥🔥
[        ] R Hot restart.
[        ] h List all available interactive commands.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] 💪 Running with sound null safety 💪
[        ] An Observatory debugger and profiler on Pixel is available at: http://127.0.0.1:45899/QttfbazQHx8=/
[  +35 ms] The Flutter DevTools debugger and profiler on Pixel is available at: http://127.0.0.1:9100?uri=http://127.0.0.1:45899/QttfbazQHx8=/
[+2797 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.example.example/code_cache/exampleKPFSJR/example/)
[  +34 ms] DevFS: Deleted filesystem on the device (file:///data/user/0/com.example.example/code_cache/exampleKPFSJR/example/)
[  +20 ms] executing: /home/myusername/Android/Sdk/platform-tools/adb -s FA69T0306242 shell am force-stop com.example.example
[ +206 ms] Application finished.
[  +11 ms] "flutter run" took 31,531ms.
[  +22 ms] Service protocol connection closed.
[ +108 ms] ensureAnalyticsSent: 124ms
[   +3 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[   +1 ms] exiting with code 0
 [1:58AM (CDT-0500)]  :~/flutter_tests/flffi/example is 📦 v1.0.0+1   took 32s 
 λ 


λ flutter analyze
Analyzing example...                                                    

   info • Avoid using private types in public APIs • lib/main.dart:14:3 • library_private_types_in_public_api
   info • Depend on referenced packages • test/widget_test.dart:11:8 • depend_on_referenced_packages
  error • Target of URI doesn't exist: 'package:example/main.dart' • test/widget_test.dart:11:8 • uri_does_not_exist
  error • The name 'MyApp' isn't a class • test/widget_test.dart:16:35 • creation_with_non_type

4 issues found. (ran in 2.3s)
[1 - ERROR] [1:52AM (CDT-0500)]  :~/flutter_tests/flffi/example is 📦 v1.0.0+1   took 3s 

 λ flutter doctor -v 
[✓] Flutter (Channel stable, 3.0.3, on Ubuntu 20.04.4 LTS 5.4.0-120-generic, locale en_US.UTF-8)
    • Flutter version 3.0.3 at /home/myusername/local/src/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 676cefaaff (7 days ago), 2022-06-22 11:34:49 -0700
    • Engine revision ffe7b86a1e
    • Dart version 2.17.5
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/myusername/Android/Sdk
    • Platform android-31, build-tools 30.0.3
    • Java binary at: /home/myusername/local/src/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 11.0.0-2~ubuntu20.04.1
    • cmake version 3.23.2
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[✓] Android Studio (version 4.1)
    • Android Studio at /home/myusername/local/src/android-studio
    • Flutter plugin version 53.0.1
    • Dart plugin version 201.9317
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

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

[✓] Connected device (3 available)
    • Pixel (mobile)  • FA69T0306242 • android-arm64  • Android 10 (API 29)
    • Linux (desktop) • linux        • linux-x64      • Ubuntu 20.04.4 LTS 5.4.0-120-generic
    • Chrome (web)    • chrome       • web-javascript • Google Chrome 103.0.5060.53

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listpackageflutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions