Code Monkey home page Code Monkey logo

zim_flutter_sdk's Issues

Unable to run app on android.

Im using zim_flutter_sdk in my flutter project but getting this error while running the app on android.

Flutter version: 3.16.0
Zimkit version: 1.18.7

../../.pub-cache/hosted/pub.dev/zego_zimkit-1.18.7/lib/src/services/core/message.dart:131:13: Error: The getter 'messageTypePayloadKey' isn't defined for the class 'ZIMKitCore'.

  • 'ZIMKitCore' is from 'package:zego_zimkit/src/services/core/core.dart' ('../../.pub-cache/hosted/pub.dev/zego_zimkit-1.18.7/lib/src/services/core/core.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'messageTypePayloadKey'.
    messageTypePayloadKey: BackgroundMessageType.textMessage.text,
    ^^^^^^^^^^^^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dev/zego_zimkit-1.18.7/lib/src/services/core/message_media.dart:50:13: Error: The getter 'messageTypePayloadKey' isn't defined for the class 'ZIMKitCore'.
  • 'ZIMKitCore' is from 'package:zego_zimkit/src/services/core/core.dart' ('../../.pub-cache/hosted/pub.dev/zego_zimkit-1.18.7/lib/src/services/core/core.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'messageTypePayloadKey'.
    messageTypePayloadKey: BackgroundMessageType.mediaMessage.text,
    ^^^^^^^^^^^^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dev/zego_zimkit-1.18.7/lib/src/callkit/handler.android.dart:114:18: Error: Undefined name 'messageTypePayloadKey'.
    payloadMap[messageTypePayloadKey] as String? ?? '');
    ^^^^^^^^^^^^^^^^^^^^^
    Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

  • Where:
    Script '/Users/macbook/developement/flutter_3.16.0/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1350

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

Process 'command '/Users/macbook/developement/flutter_3.16.0/bin/flutter'' finished with non-zero exit value 1

How can I integrate with voice message?

Below is my function in Flutter framework
sendVoiceMessageMp3(String toConversationID) async { ZIMKit().pickFiles(type: FileType.any).then((files) => { ZIMKit() .sendMediaMessage( toConversationID, ZIMConversationType.peer, files, ) .onError((error, stackTrace) => { debugPrint(error.toString()), }) }); }

Below is my error code
send message failed with code: 110018, message: file duration error

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.