简体   繁体   English

错误:ConstantsService 不是抽象的,并且不会覆盖 ConstantsInterface 中的抽象方法 getAppScopeKey()

[英]error: ConstantsService is not abstract and does not override abstract method getAppScopeKey() in ConstantsInterface

I'm trying to compile a react native app on Android and I get:我正在尝试在 Android 上编译一个 React Native 应用程序,我得到:

Error: Command failed: ./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: error: ConstantsService is not abstract and does not override abstract method getAppScopeKey() in ConstantsInterface
public class ConstantsService implements InternalModule, ConstantsInterface {
       ^
Note: /Users/dorianmariefr/src/socializus/react-native/node_modules/expo-constants/android/src/main/java/expo/modules/constants/ConstantsService.java uses or overrides a deprecated API.

I'm on expo-constants@~11.0.2 and react native 0.66.3我在expo-constants@~11.0.2并对原生 0.66.3 做出反应

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:MainApplication 不是抽象的,并且不会覆盖抽象方法 - error: MainApplication is not abstract and does not override abstract method 不抽象,不覆盖抽象方法 - Not abstract and does not override abstract method 错误:MainActivity 不是抽象的,并且不会覆盖 OnClickListener 中的抽象方法 onClick(View) - Error: MainActivity is not abstract and does not override abstract method onClick(View) in OnClickListener 它显示错误不是抽象的,并且不会覆盖 OnClickListener 中的抽象方法 onClick(View) - It shows error is not abstract and does not override abstract method onClick(View) in OnClickListener 错误:不是抽象的,并且不会覆盖OnTabSelectedListener中的抽象方法onTabReselected(Tab) - Error : is not abstract and does not override abstract method onTabReselected(Tab) in OnTabSelectedListener 错误:MainActivity 不是抽象的,并且不会覆盖 FABProgressListener 中的 onFABProgressAnimationEnd() 抽象方法 - error: MainActivity is not abstract and does not override abstract method onFABProgressAnimationEnd() in FABProgressListener 错误:匿名类不是抽象的,并且不覆盖抽象方法 - Error: anonymous class is not abstract and does not override abstract method 不是抽象的,并且不重写onConnectionFailed(ConnectionResult)的抽象方法 - Is not abstract and does not override abstract method onConnectionFailed(ConnectionResult) StatusBar不是抽象的,不会覆盖onPreferenceChange上的抽象方法 - StatusBar is not abstract and does not override abstract method onPreferenceChange 不是抽象的,并且不覆盖抽象方法createViewManagers - Not abstract and does not override abstract method createViewManagers
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM