【问题标题】:Error: ConstantsService is not abstract and does not override abstract method getAppScopeKey() in ConstantsInterface错误:ConstantsService 不是抽象的,并且不会覆盖 ConstantsInterface 中的抽象方法 getAppScopeKey()
【发布时间】:2021-12-26 08:33:49
【问题描述】:

我正在尝试在 Android 上编译一个 react 本机应用程序,我得到:

错误:命令失败:./gradlew app:installDebug -PreactNativeDevServerPort=8081 /Users/dorianmariefr/src/socializus/react-native/node_modules/expo-constants/android/src/main/java/expo/modules/constants/ConstantsService.java:29:错误:ConstantsService 不是抽象的,不会覆盖抽象ConstantsInterface 中的方法 getAppScopeKey() 公共类 ConstantsService 实现 InternalModule, ConstantsInterface { ^ 注意:/Users/dorianmariefr/src/socializus/react-native/node_modules/expo-constants/android/src/main/java/expo/modules/constants/ConstantsService.java 使用或覆盖了已弃用的 API。

我在 expo-constants@~11.0.2react native 0.66.3

【问题讨论】:

    标签: android react-native gradle expo


    【解决方案1】:

    我需要删除 unimodules 包并移至世博会:https://docs.expo.dev/bare/installing-expo-modules/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多