与 react-native-ble-plx 链接后 react-native run-android 失败
Task :react-native-ble-plx:compileDebugJavaWithJavac FAILED
这是一个新创建的带有 react-native init 的应用程序,除了 min sdk 没有任何改变。已经尝试清理项目,将 min sdk 设置为 18,尝试使用 android studio 构建以获得更具体的错误,但仍然无法理解问题出在哪里。
我得到的错误:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
12 actionable tasks: 2 executed, 10 up-to-date
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
/Users/oriamd/Documents/MyDev/DudeWheresMyCar/node_modules/react-native-ble-plx/android/src/main/java/com/polidea/reactnativeble/converter/RxBleScanResultConverter.java:3: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/Users/oriamd/Documents/MyDev/DudeWheresMyCar/node_modules/react-native-ble-plx/android/src/main/java/com/polidea/reactnativeble/wrapper/Characteristic.java:5: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
完整的日志在这里: https ://pastebin.com/NJAmjUJm
如果需要,可以提供更多信息。谢谢