Code Monkey home page Code Monkey logo

open-im-flutter-demo's People

Contributors

hrxiang avatar oliver-wj avatar ouyangdage avatar skiffer-git avatar std-s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

open-im-flutter-demo's Issues

Android编译报错

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where:
    Build file 'D:\flutter.pub-cache\hosted\pub.flutter-io.cn\better_player-0.0.81\android\build.gradle' line: 32

  • What went wrong:
    A problem occurred evaluating project ':better_player'.

Plugin with id 'kotlin-android' not found.

  • 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.
    ==============================================================================

2: Task failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':better_player'.

compileSdkVersion is not specified. Please add it to build.gradle

  • 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 11s
Running Gradle task 'assembleRelease'... 12.9s
Gradle task assembleRelease failed with exit code 1

build.gradle增加了kotlin-android包也不行

macOS编译成功但是缺少plugin

Hi, macOS可以编译:

image

但是白屏,报错缺少plugin,这些plugin是否可以设置为optional呢?也想在macOS上测试一下。

flutter: Error :  MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods)
flutter: StackTrace :  #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175:7)
<asynchronous suspension>
#1      MethodChannelPermissionHandler.requestPermissions (package:permission_handler_platform_interface/src/method_channel/method_channel_permission_handler.dart:71:9)
<asynchronous suspension>
#2      PermissionUtil.request (package:flutter_openim_widget/src/util/permission_util.dart:82:50)
<asynchronous suspension>
#3      PermissionController.onInit (package:openim_demo/src/core/controller/permission_controller.dart:9:50)
<asynchronous suspension>

flutter: Error FROM OUT_SIDE FRAMEWORK
flutter: --------------------------------
flutter: Error :  MissingPluginException(No implementation found for method setup on channel jpush)
flutter: StackTrace :  #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175:7)
<asynchronous suspension>

flutter: Error FROM OUT_SIDE FRAMEWORK
flutter: --------------------------------
flutter: Error :  MissingPluginException(No implementation found for method getRegistrationID on channel jpush)
flutter: StackTrace :  #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175:7)
<asynchronous suspension>
#1      JPush.getRegistrationID (package:jpush_flutter/jpush_flutter.dart:299:24)
<asynchronous suspension>

flutter: Error FROM OUT_SIDE FRAMEWORK
flutter: --------------------------------
flutter: Error :  MissingPluginException(No implementation found for method initSDK on channel flutter_openim_sdk)
flutter: StackTrace :  #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175:7)
<asynchronous suspension>
#1      IMController.onInit (package:openim_demo/src/core/controller/im_controller.dart:23:5)
<asynchronous suspension>

The Flutter DevTools debugger and profiler on macOS is available at: http://127.0.0.1:9100?uri=http://127.0.0.1:60791/TDw0rU4Gr0g=/

demo运行不起来

Describe the bug
ios模拟器启动报错
How to reproduce
复现步骤:
1、下载或clone源码
2、修改 platform :ios, '11.0',因为better_player的版本问题
3、启动报错如下:
Launching lib/main.dart on iPhone 13 Pro in debug mode...
CocoaPods' output:

Preparing
Analyzing dependencies
Inspecting targets to integrate
Using ARCHS setting to build architectures of target Pods-Runner: (arm64)
Fetching external sources
-> Fetching podspec for Flutter from Flutter
-> Fetching podspec for app_installer from .symlinks/plugins/app_installer/ios
-> Fetching podspec for audio_session from .symlinks/plugins/audio_session/ios
-> Fetching podspec for better_player from .symlinks/plugins/better_player/ios
-> Fetching podspec for camera from .symlinks/plugins/camera/ios
-> Fetching podspec for file_picker from .symlinks/plugins/file_picker/ios
-> Fetching podspec for flutter_app_badger from .symlinks/plugins/flutter_app_badger/ios
-> Fetching podspec for flutter_bugly from .symlinks/plugins/flutter_bugly/ios
-> Fetching podspec for flutter_image_compress from .symlinks/plugins/flutter_image_compress/ios
-> Fetching podspec for flutter_inappwebview from .symlinks/plugins/flutter_inappwebview/ios
-> Fetching podspec for flutter_local_notifications from .symlinks/plugins/flutter_local_notifications/ios
-> Fetching podspec for flutter_openim_sdk from .symlinks/plugins/flutter_openim_sdk/ios
-> Fetching podspec for image_cropper from .symlinks/plugins/image_cropper/ios
-> Fetching podspec for image_gallery_saver from .symlinks/plugins/image_gallery_saver/ios
-> Fetching podspec for image_picker from .symlinks/plugins/image_picker/ios
-> Fetching podspec for jpush_flutter from .symlinks/plugins/jpush_flutter/ios
-> Fetching podspec for just_audio from .symlinks/plugins/just_audio/ios
-> Fetching podspec for map_launcher from .symlinks/plugins/map_launcher/ios
-> Fetching podspec for open_file from .symlinks/plugins/open_file/ios
-> Fetching podspec for package_info_plus from .symlinks/plugins/package_info_plus/ios
-> Fetching podspec for path_provider_ios from .symlinks/plugins/path_provider_ios/ios
-> Fetching podspec for permission_handler_apple from .symlinks/plugins/permission_handler_apple/ios
-> Fetching podspec for photo_manager from .symlinks/plugins/photo_manager/ios
-> Fetching podspec for qr_code_scanner from .symlinks/plugins/qr_code_scanner/ios
-> Fetching podspec for r_scan from .symlinks/plugins/r_scan/ios
-> Fetching podspec for record from .symlinks/plugins/record/ios
-> Fetching podspec for shared_preferences_ios from .symlinks/plugins/shared_preferences_ios/ios
-> Fetching podspec for sqflite from .symlinks/plugins/sqflite/ios
-> Fetching podspec for uri_to_file from .symlinks/plugins/uri_to_file/ios
-> Fetching podspec for url_launcher_ios from .symlinks/plugins/url_launcher_ios/ios
-> Fetching podspec for video_player_avfoundation from .symlinks/plugins/video_player_avfoundation/ios
-> Fetching podspec for wakelock from .symlinks/plugins/wakelock/ios
Resolving dependencies of Podfile
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_a_b_0.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/a/b/0/Cache/6.0.0/Cache.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_7_2_d.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/7/2/d/GCDWebServer/3.5.4/GCDWebServer.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_4_0_4.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/4/0/4/HLSCachingReverseProxyServer/0.1.0/HLSCachingReverseProxyServer.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_b_f_d.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/b/f/d/PINCache/3.0.3/PINCache.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_1_6_1.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.3.3/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/1.0.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/1.0.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/1.0.3/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/1.0.4/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/1.1.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.0.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.1.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.2.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.3.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.3.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.3.5/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.3.6/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.3.7/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.4.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.4.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.4.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.4.3/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.3/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.4/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.5/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.6/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.7/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.8/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.9/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.10/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.11/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.1.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.1.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.1.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.1.3/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.2.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.2.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.3.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.3.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.3.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.3.3/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.3.4/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.3.5/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.4.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.4.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.4.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.3/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.4/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.5/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.6/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.7/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.6.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.6.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.6.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.8.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.8.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.0-beta/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.0-beta2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.3/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.4/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.3/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.4/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.5/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.6/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.7/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.2.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.2.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.2.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.3.0/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.3.1/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.3.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.3.3/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_5_3_d.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/5/3/d/Bugly/2.5.91/Bugly.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_5_d_c.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/5/d/c/Mantle/2.2.0/Mantle.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_1_1_7.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/1/1/7/SDWebImage/5.12.5/SDWebImage.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_e_9_d.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/e/9/d/SDWebImageWebPCoder/0.8.4/SDWebImageWebPCoder.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_6_8_6.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/6/8/6/OrderedSet/5.0.0/OrderedSet.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_3_7_4.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/3/7/4/TOCropViewController/2.6.1/TOCropViewController.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_9_2_f.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/9/2/f/JCore/3.2.0/JCore.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_b_0_d.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/b/0/d/JPush/4.6.0/JPush.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_4_2_c.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/4/2/c/FlutterMacOS/2.10.2/FlutterMacOS.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_0_2_a.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/0/2/a/MTBBarcodeScanner/5.0.11/MTBBarcodeScanner.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_f_4_e.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_5_7_2.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/5/7/2/ATBarSDK/1.4.1/ATBarSDK.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_f_3_c.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/f/3/c/ZXingObjC/3.6.5/ZXingObjC.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/9/2/f/JCore/3.1.0/JCore.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/b/0/d/JPush/4.4.0/JPush.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/9/2/f/JCore/3.2.0/JCore.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/9/2/f/JCore/3.2.0-noidfa/JCore.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/9/2/f/JCore/3.1.2/JCore.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/9/2/f/JCore/3.1.2-noidfa/JCore.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
/usr/local/bin/pod install --verbose
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Stack
CocoaPods : 1.10.0 Ruby : ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.x86_64-darwin21] RubyGems : 3.0.3.1 Host : macOS 12.3.1 (21E258) Xcode : 13.3.1 (13E500a) Git : git version 2.32.0 (Apple Git-132) Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib Repositories : trunk - CDN - https://cdn.cocoapods.org/
### Plugins
cocoapods-deintegrate : 1.0.4 cocoapods-plugins : 1.0.0 cocoapods-search : 1.0.0 cocoapods-stats : 1.1.0 cocoapods-trunk : 1.5.0 cocoapods-try : 1.2.0
### Podfile
ruby # Uncomment this line to define a global platform for your project # platform :ios, '9.0' platform :ios, '11.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' project 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release, } def flutter_root generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) unless File.exist?(generated_xcode_build_settings_path) raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end File.foreach(generated_xcode_build_settings_path) do |line| matches = line.match(/FLUTTER_ROOT\=(.*)/) return matches[1].strip if matches end raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" end require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) flutter_ios_podfile_setup target 'Runner' do use_frameworks! use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end # post_install do |installer| # installer.pods_project.targets.each do |target| # flutter_additional_ios_build_settings(target) # end # end # post_install do |installer| # installer.pods_project.targets.each do |target| # flutter_additional_ios_build_settings(target) # target.build_configurations.each do |config| # config.build_settings['ENABLE_BITCODE'] = 'NO' # config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0' # end # end # end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) # If build failed, remove below settings target.build_configurations.each do |config| config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'i386 arm64' # You can remove unused permissions here # for more infomation: https://github.com/BaseflowIT/flutter-permission-handler/blob/master/permission_handler/ios/Classes/PermissionHandlerEnums.h # e.g. when you don't need camera permission, just add 'PERMISSION_CAMERA=0' config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [ '$(inherited)', ## dart: PermissionGroup.calendar # 'PERMISSION_EVENTS=1', ## dart: PermissionGroup.reminders # 'PERMISSION_REMINDERS=1', ## dart: PermissionGroup.contacts # 'PERMISSION_CONTACTS=1', ## dart: PermissionGroup.camera 'PERMISSION_CAMERA=1', ## dart: PermissionGroup.microphone 'PERMISSION_MICROPHONE=1', ## dart: PermissionGroup.speech # 'PERMISSION_SPEECH_RECOGNIZER=1', ## dart: PermissionGroup.photos # 'PERMISSION_PHOTOS=1', ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse] # 'PERMISSION_LOCATION=1', ## dart: PermissionGroup.notification # 'PERMISSION_NOTIFICATIONS=1', ## dart: PermissionGroup.mediaLibrary # 'PERMISSION_MEDIA_LIBRARY=1', ## dart: PermissionGroup.sensors # 'PERMISSION_SENSORS=1', ## dart: PermissionGroup.bluetooth # 'PERMISSION_BLUETOOTH=1', ## dart: PermissionGroup.appTrackingTransparency # 'PERMISSION_APP_TRACKING_TRANSPARENCY=1', ## dart: PermissionGroup.criticalAlerts # 'PERMISSION_CRITICAL_ALERTS=1', ] end # Custom settings end end
### Error
JSON::ParserError - 416: unexpected token at '"CFNet' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/json/common.rb:156:in `parse' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/json/common.rb:156:in `parse' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0/lib/cocoapods-core/specification/json.rb:61:in `from_json' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0/lib/cocoapods-core/specification.rb:742:in `from_string' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0/lib/cocoapods-core/specification.rb:716:in `from_file' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0/lib/cocoapods-core/source.rb:186:in `specification' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/resolver/lazy_specification.rb:37:in `specification' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/delegate.rb:348:in `block in delegating_block' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/delegate.rb:349:in `block in delegating_block' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/resolver.rb:178:in `dependencies_for' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:18:in `block in dependencies_for' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:70:in `with_no_such_dependency_error_handling' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:17:in `dependencies_for' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:807:in `block in group_possibilities' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:806:in `reverse_each' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:806:in `group_possibilities' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:778:in `possibilities_for_requirement' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:761:in `push_state_for_requirements' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:746:in `require_nested_dependencies_for' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:729:in `activate_new_spec' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:686:in `attempt_to_activate' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve' /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/resolver.rb:94:in `resolve' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1074:in `block in resolve_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/user_interface.rb:64:in `section' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:124:in `analyze' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:414:in `analyze' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/user_interface.rb:64:in `section' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:238:in `resolve_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:160:in `install!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/command/install.rb:52:in `run' /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/command.rb:52:in `run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/bin/pod:55:in `<top (required)>' /usr/local/bin/pod:23:in `load' /usr/local/bin/pod:23:in `<main>'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=416%3A+unexpected+token+at+%27%22CFNet%27&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
Found no similar issues. To create a new issue, please visit:
https://github.com/cocoapods/cocoapods/issues/new
Error output from CocoaPods:

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin21/rbconfig.rb:230: warning: Insecure world writable dir /usr/local/sbin in PATH, mode 040777
Error running pod install
Error launching application on iPhone 13 Pro.
Exited (sigterm)

image

Version information

  • Device: iPhone 13 Pro(ios simulator)
  • Dart SDK version: 2.16.1 (stable)
  • OS: iOS 15.4
  • Flutter Version: v2.10.3-0.0.pre.1

Cannot create link

Cannot create link, path = 'D:\flutter.pub-cache_temp\dir92afd9ae\ios\Classes\AudioPlayer.m' (OS Error: 客户端没有所需的特权。
, errno = 1314)
pub get failed (66; , errno = 1314))

编译错误

flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_openim_widget-0.0.8/lib/src/chat_picture_preview.dart:58:18: Error: The argument type 'File/1/' can't be assigned to the parameter type 'File/2/'.

  • 'File/1/' is from 'dart:io'.
  • 'File/2/' is from 'package:extended_image_library/src/_platform_web.dart' ('/D:/language/flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.1.2/lib/src/_platform_web.dart').
    info.file!,

which flutter to use

Same as: openimsdk/open-im-sdk-flutter#51

Flutter is already up to date on channel stable
Flutter 2.5.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 18116933e7 (6 weeks ago) • 2021-10-15 10:46:35 -0700
Engine • revision d3ea636dc5
Tools • Dart 2.14.4

Above in Ubuntu Not working.
Please test in mac, ubuntu first.

获取最新代码,跑步起来。flutter_openim_sdk 私库地址无法访问

flutter_openim_sdk 私库地址无法访问。

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not resolve io.openim:core-sdk:2.0.9.6.
Required by:
project :app > project :flutter_openim_sdk
> Could not resolve io.openim:core-sdk:2.0.9.6.
> Could not get resource 'http://121.37.25.71:8081/repository/maven2/io/openim/core-sdk/2.0.9.6/core-sdk-2.0.9.6.pom'.
> Could not GET 'http://121.37.25.71:8081/repository/maven2/io/openim/core-sdk/2.0.9.6/core-sdk-2.0.9.6.pom'.
> Read timed out

  • 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 1m 45s
Running Gradle task 'assembleDebug'... 106.2s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Running Gradle task 'assembleDebug'... /
image


flutter run 失败!

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<EncoderProfiles.VideoProfile> 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<EncoderProfiles.VideoProfile> 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.

  • What went wrong:
    Execution failed for task ':camera:compileDebugJavaWithJavac'.

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 21s
Running Gradle task 'assembleDebug'... 21.9s
Exception: Gradle task assembleDebug failed with exit code 1

最新版本的Flutter Demo启动报错

/D:/SDK/flutter_2.10.3/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%2547dart-pub%2547/percent_indicator-4.2.1/lib/linear_percent_indicator.dart:162:5: Warning: The class 'WidgetsBinding' cannot be null.
Try replacing '?.' with '.'
WidgetsBinding?.instance.addPostFrameCallback((_) {
^^^^^^^^^^^^^^
/D:/SDK/flutter_2.10.3/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%2547dart-pub%2547/percent_indicator-4.2.1/lib/linear_percent_indicator.dart:162:30: Error: Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because it is potentially null.

  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/D:/SDK/flutter_2.10.3/packages/flutter/lib/src/widgets/binding.dart').
    Try calling using ?. instead.
    WidgetsBinding?.instance.addPostFrameCallback((_) {
    ^^^^^^^^^^^^^^^^^^^^

FAILURE: Build failed with an exception.

  • Where:
    Script 'D:\SDK\flutter_2.10.3\packages\flutter_tools\gradle\flutter.gradle' line: 1102

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'D:\SDK\flutter_2.10.3\bin\flutter.bat'' finished with non-zero exit value 1

  • 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 15s
Exception: Gradle task assembleDebug failed with exit code 1

iOS development team 已经设置,但还是报错

Could not build the precompiled application for the device.
Error (Xcode): Signing for "TOCropViewController-TOCropViewControllerBundle" requires a development team. Select a development team
in the Signing & Capabilities editor.


Error (Xcode): Signing for "DKImagePickerController-DKImagePickerController" requires a development team. Select a development team
in the Signing & Capabilities editor.


Error (Xcode): Signing for "DKPhotoGallery-DKPhotoGallery" requires a development team. Select a development team in the Signing &
Capabilities editor.

image

已经设置了还是报错

最新的demo(flutter_openim_widget: ^2.0.9+1)运行ios报错!

Could not build the precompiled application for the device.
Uncategorized (Xcode): Command CompileSwiftSources failed with a nonzero exit code

Swift Compiler Error (Xcode): Cannot find 'Open_im_sdkSetGroupMemberRoleLevel' in scope
/flutter_openim_sdk-2.0.9+2/ios/Classes/Module/GroupManager.swift:120:8

编译报错

Flutter 2.10.5 Dart 2.16.2 拉取最新的Demo代码编译报错
../../../development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_openim_widget-0.0.8/lib/src/chat_picture_preview.dart:58:18: Error: The argument type 'File/*1*/' can't be assigned to the parameter type 'File/*2*/'.

  • 'File/1/' is from 'dart:io'.
  • 'File/2/' is from 'package:extended_image_library/src/_platform_web.dart'
    ('../../../development/flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.1.2/lib/src/_platform_web.dart').
    info.file!,`

运行到android12时出错

io.openim.app.demo.MainActivity: Targeting S+ (version 31 and above) requires that an
explicit value for android:exported be defined when intent filters are present

android 编译报错

flutter/flutter/.pub-cache/hosted/pub.dartlang.org/record-4.3.1/android/src/main/java/com/llfbandit/record/MediaRecorder.java:3: 错误: 程序包android.content不存在
import android.content.Context

Demo在哪个分支?

master分支拉下来跑起来的效果好像有些功能都没有,比如提示信息,master上面拉起来跑起来提示信息是英文的

真机调试 安卓12 flutter run 报错

Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install C:\Users\Admin\Desktop\flutter\Open-IM-Flutter-Demo\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Invalid apk]
Error launching application on Redmi K30 Pro.

这个demo用charles抓包是抓不到嘛?

试了下,别的app都能抓的到,即便有些请求体看不到,但是对应的请求记录还是都有的。只有这个在charles里完全没有体现

mac os 11.4 & 安卓12 & charles 4.6.2

android 编译报错 Duplicate class com.google.android.exoplayer2.ui.DownloadNotificationHelper

重现步骤:clone后,flutter pub get, 然后运行

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class com.google.android.exoplayer2.ui.DownloadNotificationHelper found in modules jetified-exoplayer-core-2.17.0-runtime (com.google.android.exoplayer:exoplayer-core:2.17.0) and jetified-exoplayer-ui-2.15.1-runtime (com.google.android.exoplayer:exoplayer-ui:2.15.1)

Go to the documentation to learn how to Fix dependency resolution errors.
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.

iOS下编译问题,xcode13.3

Failed to build iOS app
Error output from Xcode build:
↳
    2022-03-06 19:00:00.783 xcodebuild[32972:1003591] 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-03-06 19:00:00.783 xcodebuild[32972:1003591] 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 **

Starting a Gradle Daemon (subsequent builds will be faster)

[+1804 ms] Starting a Gradle Daemon (subsequent builds will be faster)

[+20891 ms] > Configure project :app_installer

[ ] WARNING: The option setting 'android.enableR8=true' is deprecated.

[ ] It will be removed in version 5.0 of the Android Gradle plugin.

[ ] You will no longer be able to disable R8

使用的是最新版本的demo
flutter 版本 3.0.1
科学上网也试过
也用其它人的电脑调试也是这个问题
sdk的maven 也修改过都是无效的
自己新建的demo可以通过
真机测试

oss

请问何时支持OSS?

Open-IM-SDK-Core 里面已经支持 OSS

ios真机调试报错

aunching lib/main.dart on iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: BDLHL8GNFV
Running Xcode build...
Xcode build done. 6.8s
Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **

Xcode's output:

Writing result bundle at path:
/var/folders/0j/vs2dth5157q6r3s5lcf9wfn00000gn/T/flutter_tools.tTwadq/flutter_ios_build_temp_dir91yueM/temporary_xcresult_bundle

note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
error: No profiles for 'io.openim.app.demo' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'io.openim.app.demo'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
/Users/bao-mac/Downloads/Open-IM-Flutter-Demo-master/ios/Pods/Pods.xcodeproj: warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'GCDWebServer' from project 'Pods')

Result bundle written to path:
	/var/folders/0j/vs2dth5157q6r3s5lcf9wfn00000gn/T/flutter_tools.tTwadq/flutter_ios_build_temp_dir91yueM/temporary_xcresult_bundle

Could not build the precompiled application for the device.
Error (Xcode): No profiles for 'io.openim.app.demo' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'io.openim.app.demo'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.

It appears that there was a problem signing your application prior to installation on the device.

Verify that the Bundle Identifier in your project is your signing id in Xcode
open ios/Runner.xcworkspace

Also try selecting 'Product > Build' to fix the problem:

Error launching application on iPhone.

启动项目后发送不了消息

日志一直在报这个错
I/GoLog ( 5342): [ init_login.go : 586 ] [ReadMessage message 1 ]
I/GoLog ( 5342): [ init_login.go : 606 ] [type failed, recv websocket.TextMessage {"errCode":200,"errMsg":"invalid character 'ÿ' in literal false (expecting 'a')"}]

迁移问题

想咨询下从其他im sdk迁移到我门平台,支持是否完善。后台api给的比较简洁,主要是用户好友关系,群组列表之类

模拟器调试报错 xcodebuild: error: Unable to find a destination matching the provided destination specifier:

Launching lib/main.dart on iPhone Xs in debug mode...
Running Xcode build...
Xcode build done. 2.4s
Failed to build iOS app
Error output from Xcode build:

2022-02-12 06:01:36.470 xcodebuild[7986:1194496] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-18108/DTDeviceKitBase/DTDKRemoteDeviceData.m:371
Details: (null) deviceType from 00008020-00151DD63483002E was NULL when -platform called.
Object: <DTDKMobileDeviceToken: 0x7fd6e79aaea0>
Method: -platform
Thread: <NSThread: 0x7fd6e6c968d0>{number = 3, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ id:FB10AF62-7320-4F52-8992-07B32E43C03F }

	Ineligible destinations for the "Runner" scheme:
		{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
		{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }

Could not build the application for the simulator.
Error launching application on iPhone Xs.

运行 flutter pub get 报错

Because openim_enterprise_chat depends on flutter_openim_widget from path which doesn't exist (could not find package flutter_openim_widget at "..\flutter_openim_widget"), version solving failed.

运行flutter pub get 报上边的错误

模拟器运行报错 - Command PhaseScriptExecution failed with a nonzero exit code

../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.1.2/lib/src/extended_image_provider.dart:28:40: Warning: Operand of null-aware operation '!' has type 'ImageCache' which excludes null.

  • 'ImageCache' is from 'package:flutter/src/painting/image_cache.dart' ('../../flutter/packages/flutter/lib/src/painting/image_cache.dart').
    return PaintingBinding.instance!.imageCache!;
    ^
    ../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.1.2/lib/src/extended_image_provider.dart:97:39: Warning: Operand of null-aware operation '!' has type 'PaintingBinding' which excludes null.
  • 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('../../flutter/packages/flutter/lib/src/painting/binding.dart').
    () => load(key, PaintingBinding.instance!.instantiateImageCodec),
    ^
    ../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.1.2/lib/src/platform.dart:26:21: Warning: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null.
  • 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('../../flutter/packages/flutter/lib/src/painting/binding.dart').
    PaintingBinding.instance?.imageCache?.clear();
    ^
    ../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.1.2/lib/src/platform.dart:27:21: Warning: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null.
  • 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('../../flutter/packages/flutter/lib/src/painting/binding.dart').
    PaintingBinding.instance?.imageCache?.clearLiveImages();
    ^
    ../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.1.2/lib/src/platform.dart:40:28: Warning: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null.
  • 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('../../flutter/packages/flutter/lib/src/painting/binding.dart').
    return PaintingBinding.instance?.imageCache;
    ^
    ../../.pub-cache/hosted/pub.flutter-io.cn/scrollable_positioned_list-0.2.3/lib/src/scrollable_positioned_list.dart:439:24: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance!.addPostFrameCallback((_) {
    ^
    ../../.pub-cache/hosted/pub.flutter-io.cn/scrollable_positioned_list-0.2.3/lib/src/scrollable_positioned_list.dart:486:26: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance!.addPostFrameCallback((_) {
    ^
    ../../.pub-cache/hosted/pub.flutter-io.cn/scrollable_positioned_list-0.2.3/lib/src/positioned_list.dart:312:24: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance!.addPostFrameCallback((_) {
    ^
    ../../.pub-cache/hosted/pub.flutter-io.cn/flutter_widget_from_html_core-0.8.5+1/lib/src/widgets/html_table.dart:592:26: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance
    ^
    ../../.pub-cache/hosted/pub.flutter-io.cn/flutter_widget_from_html_core-0.8.5+1/lib/src/widgets/html_table.dart:606:28: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance
    ^
    ../../.pub-cache/hosted/pub.flutter-io.cn/flutter_widget_from_html_core-0.8.5+1/lib/src/internal/ops/anchor.dart:120:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance?.addPostFrameCallback(
    ^
    Failed to package /Users/fred/project/Open-IM-Flutter-Demo.
    Command PhaseScriptExecution failed with a nonzero exit code

flutter2.10.1 dart2.16.1编译报错

../../../flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-9.0.3/lib/src/extended_editable_text.dart:1179:9: Error: Type 'TextEditingActionTarget' not found. TextEditingActionTarget, ^^^^^^^^^^^^^^^^^^^^^^^ ../../../flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-9.0.3/lib/src/extended_editable_text.dart:1174:7: Error: The type 'TextEditingActionTarget' can't be mixed in. class ExtendedEditableTextState extends State<ExtendedEditableText> ^ ../../../flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-9.0.3/lib/src/extended_editable_text.dart:2598:11: Error: Superclass has no method named 'copySelection'. super.copySelection(cause); ^^^^^^^^^^^^^ ../../../flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-9.0.3/lib/src/extended_editable_text.dart:2628:11: Error: Superclass has no method named 'cutSelection'. super.cutSelection(cause); ^^^^^^^^^^^^ ../../../flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-9.0.3/lib/src/extended_editable_text.dart:2638:11: Error: Superclass has no method named 'pasteText'. super.pasteText(cause); ^^^^^^^^^ ../../../flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-9.0.3/lib/src/extended_editable_text.dart:2648:11: Error: Superclass has no method named 'selectAll'. super.selectAll(cause); ^^^^^^^^^ ../../../flutter/.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-9.0.3/lib/src/extended_editable_text.dart:2693:11: Error: Superclass has no method named 'setSelection'. super.setSelection(nextSelection, cause); ^^^^^^^^^^^^ Failed to package /Users/PaulPan/Downloads/Code/flutter_code/Open-IM-Flutter-Demo.

我已经把flutter升级到最新的稳定版了,为啥还有这个错误啊

flutter run :better_player dependency were found

[!] CocoaPods could not find compatible versions for pod "better_player":
In Podfile:
better_player (from .symlinks/plugins/better_player/ios)

Specs satisfying the `better_player (from
`.symlinks/plugins/better_player/ios`)` dependency were found, but they
required a higher minimum deployment target.

then ...
Error running pod install
Error launching application on iPhone 13.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.