animeng / flutter_export_video_frame

Export picture from video file
MIT License
15 stars 20 forks source link

The plugin `export_video_frame` uses a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration. #12

Open pushpender100 opened 2 years ago

pushpender100 commented 2 years ago

The plugin export_video_frame uses a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

tanguy-intelliprove commented 1 year ago

Any updates on this? I'm having issues with this package after setting the compileSdkVersion to 33.

Complete Error output:

flutter build appbundle -t lib/main.dart --release
The plugin `export_video_frame` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

💪 Building with sound null safety 💪

Note: [...]/export_video_frame-0.0.7/android/src/main/java/com/mengtnt/export_video_frame/ExportImageTask.java:120: error: unreported exception IOException; must be caught or declared to be thrown
        mediaMetadataRetriever.release();
                                      ^
Note: [...]/export_video_frame-0.0.7/android/src/main/java/com/mengtnt/export_video_frame/ExportImageTask.java:158: error: unreported exception IOException; must be caught or declared to be thrown
        mediaMetadataRetriever.release();
                                      ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: [...]/export_video_frame-0.0.7/android/src/main/java/com/mengtnt/export_video_frame/ExportImageTask.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':export_video_frame:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
Running Gradle task 'bundleStagingRelease'...                       9.6s
Gradle task bundleStagingRelease failed with exit code 1

Here is my flutter doctor output:

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.8, on macOS 13.4.1 22F82 darwin-x64, locale en-BE)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.79.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

• No issues found!