Flutter 颤振无法导入“颤振”\u webrtc.dart`
为什么我不能导入flatter\u webrtc.dart?这是我遵循的文档 霍姆·达特Flutter 颤振无法导入“颤振”\u webrtc.dart`,flutter,dart,Flutter,Dart,为什么我不能导入flatter\u webrtc.dart?这是我遵循的文档 霍姆·达特 import 'package:flutter_webrtc/flutter_webrtc.dart'; 公开发行 dependencies: http: ^0.12.2 flutter_section_table_view: ^1.0.3 page_transition: ^1.1.7+6 path_provider: ^1.6.24 cupertino_icons: ^1.0.0
import 'package:flutter_webrtc/flutter_webrtc.dart';
公开发行
dependencies:
http: ^0.12.2
flutter_section_table_view: ^1.0.3
page_transition: ^1.1.7+6
path_provider: ^1.6.24
cupertino_icons: ^1.0.0
flutter_webrtc: ^0.5.8
flutter:
sdk: flutter
错误是
C:\Users\Users\AndroidStudioProjects\TossGame\android\app\src\debug\AndroidManifest.xml Error:
uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [:flutter_webrtc] C:\Users\Users\AndroidStudioProjects\TossGame\build\flutter_webrtc\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 21,
or use tools:overrideLibrary="com.cloudwebrtc.webrtc" to force usage (may lead to runtime failures)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [:flutter_webrtc] C:\Users\Users\AndroidStudioProjects\TossGame\build\flutter_webrtc\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 21,
or use tools:overrideLibrary="com.cloudwebrtc.webrtc" to force usage (may lead to runtime failures)
* 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 18s
Exception: Gradle task assembleDebug failed with exit code 1
在应用程序级build.gradle文件中需要minSdkversion 21更改minSdkversion=21,在应用程序级build.gradle文件中需要minSdkversion 21更改minSdkversion=21,将
minSdkversion
设置为21。您可以在build中找到它。gradle
它将解决您的问题。将minSdkVersion
设置为21。你可以在build中找到它。gradle
它会解决你的问题。是的,你肯定可以查看你的“闲逛”消息框。是的,你肯定可以查看你的“闲逛”消息框。@JanviPatel我已经投了我的票though@JanviPatel我已经投了我的票了