plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Bug]: 使用或覆盖了已过时的 API

Open LinHaoLove opened this issue 3 years ago • 0 comments

Platform

any

Plugin

network_info_plus

Version

2.1.4+1

Flutter SDK

macos arm64 3.0.5 stable

Steps to reproduce

1,first build. 2,first run in release mode.

Code Sample

xxxxx/.pub-cache/hosted/pub.flutter-io.cn/network_info_plus-2.1.4+1/android/src/main/java/dev/fluttercommunity/plus/network_info/NetworkInfo.java使用或覆盖了已过时的 API。
xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:154: 警告: [deprecation] CamcorderProfile中的get(int,int)已过时
          return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_HIGH);
xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:158: 警告: [deprecation] CamcorderProfile中的get(int,int)已过时
          return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_2160P);
xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:162: 警告: [deprecation] CamcorderProfile中的get(int,int)已过时
          return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_1080P);
                                 ^
xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:166: 警告: [deprecation] CamcorderProfile中的get(int,int)已过时
          return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_720P);
                                 ^
xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:170: 警告: [deprecation] CamcorderProfile中的get(int,int)已过时
          return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_480P);
                                 ^
xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:174: 警告: [deprecation] CamcorderProfile中的get(int,int)已过时
          return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_QVGA);
                                 ^
xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:178: 警告: [deprecation] CamcorderProfile中的get(int,int)已过时
          return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_LOW);

Logs

[  +29 ms] xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:154: 警告: [deprecation]
CamcorderProfile中的get(int,int)已过时
[   +9 ms]           return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_HIGH);
[        ]                                  ^
[        ] xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:158: 警告: [deprecation]
CamcorderProfile中的get(int,int)已过时
[        ]           return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_2160P);
[        ]                                  ^
[        ] xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:162: 警告: [deprecation]
CamcorderProfile中的get(int,int)已过时
[   +2 ms]           return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_1080P);
[        ]                                  ^
[        ] xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:166: 警告: [deprecation]
CamcorderProfile中的get(int,int)已过时
[        ]           return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_720P);
[        ]                                  ^
[        ] xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:170: 警告: [deprecation]
CamcorderProfile中的get(int,int)已过时
[  +22 ms]           return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_480P);
[        ]                                  ^
[        ] xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:174: 警告: [deprecation]
CamcorderProfile中的get(int,int)已过时
[        ]           return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_QVGA);
[        ]                                  ^
[        ] xxxxx/.pub-cache/hosted/pub.flutter-io.cn/camera_android-0.10.0+1/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:178: 警告: [deprecation]
CamcorderProfile中的get(int,int)已过时
[        ]           return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_LOW);
[        ]                                  ^
[        ] 7 个警告

Flutter Doctor

• No issues found!

LinHaoLove avatar Aug 29 '22 01:08 LinHaoLove