提问人:Munsif Ali 提问时间:5/24/2023 更新时间:5/26/2023 访问量:215
如何在 flutter 应用程序中集成 Zoom Sdk 我在使用 flutter_zoom_sdk 时遇到错误
How to integrate Zoom Sdk in flutter app i am getting error while using flutter_zoom_sdk
问:
为此,我想将 Zoom SDK 集成到 Flutter 应用程序中,我尝试打包,但是当我将其添加到 pubspec.yaml 文件中并运行命令时flutter_zoom_sdk
flutter pub run flutter_zoom_sdk:unzip_zoom_sdk
并尝试运行应用程序(无需编写任何代码,只是将此包添加到 pubspec.yaml)我收到这些错误并且应用程序未运行
错误
/home/munsif/.pub-cache/hosted/pub.dev/flutter_zoom_sdk-1.1.0+4/android/src/main/java/com/evilratt/flutter_zoom_sdk/StatusStreamHandler.java:27: error: incompatible types: MeetingServiceListener is not a functional interface
statusListener = (meetingStatus, errorCode, internalErrorCode) -> {
^
multiple non-overriding abstract methods found in interface MeetingServiceListener
/home/munsif/.pub-cache/hosted/pub.dev/flutter_zoom_sdk-1.1.0+4/android/src/main/java/com/evilratt/flutter_zoom_sdk/FlutterZoomSdkPlugin.java:225: error: cannot find symbol
zoomSDK.loginWithZoom(options.get("userId"), options.get("userPassword"));
^
symbol: method loginWithZoom(String,String)
location: variable zoomSDK of type ZoomSDK
/home/munsif/.pub-cache/hosted/pub.dev/flutter_zoom_sdk-1.1.0+4/android/src/main/java/com/evilratt/flutter_zoom_sdk/FlutterZoomSdkPlugin.java:366: error: cannot find symbol
zoomSDK.loginWithZoom(options.get("userId"), options.get("userPassword"));
^
symbol: method loginWithZoom(String,String)
location: variable zoomSDK of type ZoomSDK
3 errors
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
> Android resource linking failed
ERROR:: AAPT: aapt2 W 05-23 21:40:19 128162 128162 LoadedArsc.cpp:682] Unknown chunk type '200'.
error: resource style/Widget.MaterialComponents.NavigationRailView (aka com.edutrainia.user:style/Widget.MaterialComponents.NavigationRailView) not found.
error: failed linking references.
3
* 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:
Execution failed for task ':flutter_zoom_sdk: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
在搜索错误并在包的 Java 文件中进行更改后,其他三个错误消失了,只得到这个错误
Execution failed for task ':app:processDebugResources'.
执行 com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction 时发生故障 Android 资源链接失败 错误:: AAPT:aapt2 W 05-23 21:40:19 128162 128162 LoadedArsc.cpp:682] 未知块类型“200”。 错误:找不到资源 style/Widget.MaterialComponents.NavigationRailView(又名 com.edutrainia.user:style/Widget.MaterialComponents.NavigationRailView)。 错误:链接引用失败。
答: 暂无答案
评论