“方法不会覆盖或实现”React Native电影示例

时间:2016-06-17 15:35:31

标签: android gradle react-native

我正在运行React Native Movies示例:

https://github.com/facebook/react-native/tree/master/Examples/Movies

通过运行:

./gradlew :Examples:Movies:android:app:installDebug

我明白了: Error screenshot

对于标准的MoviesActivity:

public class MoviesActivity extends ReactActivity {
@Override
    protected String getMainComponentName() {
        return "MoviesApp";
    }

  @Override // line 31
  protected @Nullable String getBundleAssetName() {
    return "MoviesApp.android.bundle";
  };

  @Override // line 36
  protected String getJSMainModuleName() {
    return "Examples/Movies/MoviesApp.android";
  }

  @Override
  protected boolean getUseDeveloperSupport() {
    return true;
  }

@Override // line 46
    protected List<ReactPackage> getPackages() {
        return Arrays.<ReactPackage>asList(
                new MainReactPackage()
            );
    }
}

0 个答案:

没有答案