openimsdk / open-im-sdk-flutter

IM SDK Flutter
https://openim.io
MIT License
365 stars 232 forks source link

flutter run 失败! #49

Closed luochaovg closed 3 years ago

luochaovg commented 3 years ago

Launching lib/main.dart on Redmi Note 8 in debug mode... /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:10: 错误: 找不到符号 import android.media.EncoderProfiles; ^ 符号: 类 EncoderProfiles 位置: 程序包 android.media /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:29: 错误: 找不到符号 private EncoderProfiles recordingProfile; ^ 符号: 类 EncoderProfiles 位置: 类 ResolutionFeature /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:63: 错误: 找不到符号 public EncoderProfiles getRecordingProfile() { ^ 符号: 类 EncoderProfiles 位置: 类 ResolutionFeature /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:187: 错误: 找不到符号 public static EncoderProfiles getBestAvailableCamcorderProfileForResolutionPreset( ^ 符号: 类 EncoderProfiles 位置: 类 ResolutionFeature /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/Camera.java:23: 错误: 找不到符号 import android.media.EncoderProfiles; ^ 符号: 类 EncoderProfiles 位置: 程序包 android.media /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/Camera.java:935: 错误: 找不到符号 EncoderProfiles getRecordingProfile() { ^ 符号: 类 EncoderProfiles 位置: 类 Camera /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/media/MediaRecorderBuilder.java:8: 错误: 找不到符号 import android.media.EncoderProfiles; ^ 符号: 类 EncoderProfiles 位置: 程序包 android.media /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/media/MediaRecorderBuilder.java:24: 错误: 找不到符号 private final EncoderProfiles encoderProfiles; ^ 符号: 类 EncoderProfiles 位置: 类 MediaRecorderBuilder /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/media/MediaRecorderBuilder.java:36: 错误: 找不到符号 @NonNull EncoderProfiles encoderProfiles, @NonNull String outputFilePath) { ^ 符号: 类 EncoderProfiles 位置: 类 MediaRecorderBuilder /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/media/MediaRecorderBuilder.java:51: 错误: 找不到符号 @NonNull EncoderProfiles encoderProfiles, ^ 符号: 类 EncoderProfiles 位置: 类 MediaRecorderBuilder /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:186: 错误: 找不到符号 @TargetApi(Build.VERSION_CODES.S) ^ 符号: 变量 S 位置: 类 VERSION_CODES /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:118: 错误: 找不到符号 EncoderProfiles profile = ^ 符号: 类 EncoderProfiles 位置: 类 ResolutionFeature /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:120: 错误: 程序包EncoderProfiles不存在 List videoProfiles = profile.getVideoProfiles(); ^ /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:121: 错误: 程序包EncoderProfiles不存在 EncoderProfiles.VideoProfile defaultVideoProfile = videoProfiles.get(0); ^ /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:200: 错误: 找不到符号 return CamcorderProfile.getAll(cameraIdString, CamcorderProfile.QUALITY_HIGH); ^ 符号: 方法 getAll(String,int) 位置: 类 CamcorderProfile /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:204: 错误: 找不到符号 return CamcorderProfile.getAll(cameraIdString, CamcorderProfile.QUALITY_2160P); ^ 符号: 方法 getAll(String,int) 位置: 类 CamcorderProfile /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:208: 错误: 找不到符号 return CamcorderProfile.getAll(cameraIdString, CamcorderProfile.QUALITY_1080P); ^ 符号: 方法 getAll(String,int) 位置: 类 CamcorderProfile /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:212: 错误: 找不到符号 return CamcorderProfile.getAll(cameraIdString, CamcorderProfile.QUALITY_720P); ^ 符号: 方法 getAll(String,int) 位置: 类 CamcorderProfile /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:216: 错误: 找不到符号 return CamcorderProfile.getAll(cameraIdString, CamcorderProfile.QUALITY_480P); ^ 符号: 方法 getAll(String,int) 位置: 类 CamcorderProfile /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:220: 错误: 找不到符号 return CamcorderProfile.getAll(cameraIdString, CamcorderProfile.QUALITY_QVGA); ^ 符号: 方法 getAll(String,int) 位置: 类 CamcorderProfile /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:224: 错误: 找不到符号 return CamcorderProfile.getAll(cameraIdString, CamcorderProfile.QUALITY_LOW); ^ 符号: 方法 getAll(String,int) 位置: 类 CamcorderProfile /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:241: 错误: 程序包EncoderProfiles不存在 List videoProfiles = recordingProfile.getVideoProfiles(); ^ /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:243: 错误: 程序包EncoderProfiles不存在 EncoderProfiles.VideoProfile defaultVideoProfile = videoProfiles.get(0); ^ /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/Camera.java:208: 错误: 对MediaRecorderBuilder的引用不明确 mediaRecorderBuilder = new MediaRecorderBuilder(getRecordingProfileLegacy(), outputFilePath); ^ MediaRecorderBuilder 中的构造器 MediaRecorderBuilder(CamcorderProfile,String) 和 MediaRecorderBuilder 中的构造器 MediaRecorderBuilder(EncoderProfiles,String) 都匹配 /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/media/MediaRecorderBuilder.java:32: 错误: 对MediaRecorderBuilder的引用不明确 this(camcorderProfile, outputFilePath, new MediaRecorderFactory()); ^ MediaRecorderBuilder 中的构造器 MediaRecorderBuilder(CamcorderProfile,String,MediaRecorderFactory) 和 MediaRecorderBuilder 中的构造器 MediaRecorderBuilder(EncoderProfiles,String,MediaRecorderFactory) 都匹配 /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/media/MediaRecorderBuilder.java:79: 错误: 程序包EncoderProfiles不存在 EncoderProfiles.VideoProfile videoProfile = encoderProfiles.getVideoProfiles().get(0); ^ /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.9.4+4/android/src/main/java/io/flutter/plugins/camera/media/MediaRecorderBuilder.java:80: 错误: 程序包EncoderProfiles不存在 EncoderProfiles.AudioProfile audioProfile = encoderProfiles.getAudioProfiles().get(0); ^ 27 个错误

FAILURE: Build failed with an exception.

BUILD FAILED in 21s Running Gradle task 'assembleDebug'... 21.9s Exception: Gradle task assembleDebug failed with exit code 1