【发布时间】:2019-04-26 10:52:08
【问题描述】:
因为我想在我的应用程序上使用蓝牙,所以我下载并链接了 react-native-ble-plx。 当我尝试 react-native run-Android 时出现以下错误:
Task :app:processDebugManifest FAILED
C:\Users\Aurelien\Desktop\Leroy-Somer\AMJE nativ\AMJE\android\app\src\debug\AndroidManifest.xml Error:
uses-sdk:minSdkVersion 16 cannot be smaller than version 18 declared in library [:react-native-ble-plx] C:\Users\Aurelien\Desktop\Leroy-Somer\AMJE nativ\AMJE\node_modules\react-native-ble-plx\android\build\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 18,
or use tools:overrideLibrary="com.polidea.reactnativeble" to force usage (may lead to runtime failures)
我知道我有错误的 SDK 版本,但我不知道如何更新它
如何更新?
我必须在更新后创建一个新的 React Native 项目吗?
【问题讨论】:
标签: android react-native cmd sdk android-gradle-plugin