PS D:\flutter_realtime_object_detection-main> flutter build apk --split-per-abi
The plugins image_gallery_saver, tflite
use a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them 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
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\CameraUtils.java:138: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_HIGH);
^
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\CameraUtils.java:142: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_2160P);
^
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\CameraUtils.java:146: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_1080P);
^
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\CameraUtils.java:150: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_720P);
^
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\CameraUtils.java:154: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_480P);
^
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\CameraUtils.java:158: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_QVGA);
^
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\CameraUtils.java:162: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_LOW);
^
error: warnings found and -Werror specified
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:135: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_HIGH);
^
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:139: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_2160P);
^
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:143: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_1080P);
^
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:147: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_720P);
^
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:151: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_480P);
^
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:155: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_QVGA);
^
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:159: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated
return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_LOW);
^
C:\flutter.pub-cache\hosted\pub.dartlang.org\camera-0.8.1+7\android\src\main\java\io\flutter\plugins\camera\media\MediaRecorderBuilder.java:15: warning: [deprecation] MediaRecorder() in MediaRecorder has been deprecated
return new MediaRecorder();
^
1 error
15 warnings
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':camera:compileReleaseJavaWithJavac'.
Compilation failed; see the compiler error output for details.
BUILD FAILED in 11s
Running Gradle task 'assembleRelease'... 11.9s
Gradle task assembleRelease failed with exit code 1
please help me, I'm stuck in here...