首页 > 解决方案 > 具有空安全性的 Rtmp 发布者包

问题描述

我尝试了许多 rtmp 发布者包,但每个包都有空安全问题。我是 Flutter 的新手,我正在制作的应用程序需要实时流式传输到 rtmp url。我有 rtmp 网址。我已经使用了这个包,并试图在 vs 代码中运行它。https://github.com/pinkfish/flutter_rtmppublisher。 我收到以下错误。

FAILURE:  Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':camera_with_rtmp:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':camera_with_rtmp:debugCompileClasspath'.
   > Could not resolve project :rtplibrary.
     Required by:
         project :camera_with_rtmp
      > No matching configuration of project :rtplibrary was found. The consumer was configured to find an API of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
          - None of the consumable configurations have attributes.

* 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 5s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

标签: flutterstreamrtmp

解决方案


推荐阅读