Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最新版本 Example 跑不起来 #129

Open
szluyu99 opened this issue Apr 30, 2022 · 0 comments
Open

最新版本 Example 跑不起来 #129

szluyu99 opened this issue Apr 30, 2022 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@szluyu99
Copy link

报错如下:

➜  example flutter run --no-sound-null-safety
Multiple devices found:
zy ph (mobile)             • 00008030-000864321147802E            • ios • iOS 15.4 19E241
iPhone 12 Pro Max (mobile) • AF33C3D7-D6B2-4A8A-AF46-CB391E66A2DE • ios • com.apple.CoreSimulator.SimRuntime.iOS-15-4 (simulator)
[1]: zy ph (00008030-000864321147802E)
[2]: iPhone 12 Pro Max (AF33C3D7-D6B2-4A8A-AF46-CB391E66A2DE)
Please choose one (To quit, press "q/Q"): 1
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It is being deprecated in favor of Android embedding v2. Follow the
steps at

https://flutter.dev/go/android-project-migration

to migrate your project. You may also pass the --ignore-deprecation flag to
ignore this check and continue with the deprecated v1 embedding. However,
the v1 Android embedding will be removed in future versions of Flutter.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The detected reason was:

  /Users/yusael/Downloads/flutter_tencentplayer-master/example/android/app/src/main/AndroidManifest.xml uses `android:name="io.flutter.app.FutterApplication"`
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

This app is using a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to migrate this app to the V2 embedding.
Take a look at the docs for migrating an app: https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
Launching lib/main.dart on zy ph in debug mode...
Warning: Missing build name (CFBundleShortVersionString).
Warning: Missing build number (CFBundleVersion).
Action Required: You must set a build name and number in the pubspec.yaml file version field before submitting to the App Store.
Automatically signing iOS for device deployment using specified development team in Xcode project: S287654PSW
Running pod install...                                              4.2s
Running Xcode build...                                                  
Xcode build done.                                           39.8s
Failed to build iOS app
Error output from Xcode build:
↳
    2022-04-30 10:44:09.510 xcodebuild[65714:1346124] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension
    Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
    2022-04-30 10:44:09.512 xcodebuild[65714:1346124] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension
    Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
    ** BUILD FAILED **


Xcode's output:

    Writing result bundle at path:
        /var/folders/qp/fmxlb6012z5f3bssb7f3633h0000gp/T/flutter_tools.4GqaRV/flutter_ios_build_temp_dirpJWtYJ/temporary_xcresult_bundle

    lib/page/file_video_page.dart:70:23: Error: A value of type 'PickedFile?' can't be assigned to a variable of type 'PickedFile' because 'PickedFile?' is nullable and 'PickedFile' isn't.
     - 'PickedFile' is from 'package:image_picker_platform_interface/src/types/picked_file/io.dart'
     ('../../../.pub-cache/hosted/pub.flutter-io.cn/image_picker_platform_interface-2.4.4/lib/src/types/picked_file/io.dart').
        PickedFile file = await picker.getVideo(source: ImageSource.gallery);
                          ^
    Failed to package /Users/yusael/Downloads/flutter_tencentplayer-master/example.
    Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    /Users/yusael/Downloads/flutter_tencentplayer-master/example/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment
    target versions is 9.0 to 15.4.99. (in target 'TXLiteAVSDK_Player' from project 'Pods')

    Result bundle written to path:
        /var/folders/qp/fmxlb6012z5f3bssb7f3633h0000gp/T/flutter_tools.4GqaRV/flutter_ios_build_temp_dirpJWtYJ/temporary_xcresult_bundle


Could not build the precompiled application for the device.

Error launching application on zy ph.
@szluyu99 szluyu99 added bug Something isn't working enhancement New feature or request labels Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants