我试图通过运行react-native run-android
在Android模拟器上运行我的react native应用,它会带来此错误RealmReactPackage.java:18: error: method does not override or implement a method from a supertype
@Override
^
请引起此错误的原因
RealmReactPackage.java
package io.realm.react;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import java.util.Collections;
import java.util.List;
public class RealmReactPackage implements ReactPackage {
@Override
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
return Collections.<NativeModule>singletonList(new RealmReactModule(reactContext));
}
@Override //line 18
public List<Class<? extends JavaScriptModule>> createJSModules() {
return Collections.emptyList();
}
@Override
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
return Collections.emptyList();
}
}