React-native-config: ReactNativeConfigPackage is not abstract and does not override abstract method createJSModules() in ReactPackage

Created on 30 Aug 2017  路  8Comments  路  Source: luggit/react-native-config

/.../node_modules/react-native-config/android/src/main/java/com/lugg/ReactNativeConfig/ReactNativeConfigPackage.java:13: error: ReactNativeConfigPackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class ReactNativeConfigPackage implements ReactPackage {
       ^
1 error
:react-native-config:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-config:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Most helpful comment

error: ReactNativeContacts is not abstract and does not override abstract method createJSModules() in ReactPackagepublic class ReactNativeContacts implements ReactPackage {^1 error:react-native-contacts:compileReleaseJavaWithJavac FAILED

Got this module working by adding the following to ReactNativeContacts.java.

import com.facebook.react.bridge.JavaScriptModule;

@Override public List> createJSModules() { return Collections.emptyList(); }

All 8 comments

This PR #144 fix problem but need to merge ASAP

Agreed. I am also waiting on this PR to be merged.

This issue was resolved when #144 was merged.

:+1:!

error: ReactNativeContacts is not abstract and does not override abstract method createJSModules() in ReactPackage
public class ReactNativeContacts implements ReactPackage {
^
1 error
:react-native-contacts:compileReleaseJavaWithJavac FAILED

Still i am facing error on
react-native-cli: 2.0.1
react-native: 0.46.0

@saurabhspatil did you find a solution?

error: ReactNativeContacts is not abstract and does not override abstract method createJSModules() in ReactPackagepublic class ReactNativeContacts implements ReactPackage {^1 error:react-native-contacts:compileReleaseJavaWithJavac FAILED

Got this module working by adding the following to ReactNativeContacts.java.

import com.facebook.react.bridge.JavaScriptModule;

@Override public List> createJSModules() { return Collections.emptyList(); }

I am still getting this error

:react-native-contacts:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
C:\Users\Oserlab\Desktop\YC_ReactNative\youngclaynode_modulesreact-native-contactsandroid\src\main\java\com\rt2zz\reactnativecontactsReactNativeContacts.java:13: error: ReactNativeContacts is not abstract and does not override abstract method createJSModules() in ReactPackage
public class ReactNativeContacts implements ReactPackage {
^
1 error
:react-native-contacts:compileReleaseJavaWithJavac FAILED

I am using:-
"react-native-contacts": "1.0.4",
"react-native": "0.46.0",
"react-native-cli": 2.0.1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aajkishore picture aajkishore  路  3Comments

jstlaurent picture jstlaurent  路  4Comments

francisrod01 picture francisrod01  路  3Comments

NachtRitter picture NachtRitter  路  4Comments

sonlexqt picture sonlexqt  路  4Comments