react-native-oauth icon indicating copy to clipboard operation
react-native-oauth copied to clipboard

Build failing on Android

Open desktp opened this issue 8 years ago • 11 comments

Hello,

Building for Android is failing in a fresh project with the following message:

:react-native-oauth:compileReleaseJavaWithJavac
:react-native-oauth:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/home/desk/dev/gistreader/node_modules/react-native-oauth/android/src/main/java/io/fullstack/oauth/OAuthManagerPackage.java:39: error: method does not override or implement a method from a supertype
    @Override
    ^
Note: /home/desk/dev/gistreader/node_modules/react-native-oauth/android/src/main/java/io/fullstack/oauth/OAuthManagerDialogFragment.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:react-native-oauth:compileReleaseJavaWithJavac FAILED

Commenting the @Override in node_modules/react-native-oauth/android/src/main/java/io/fullstack/oauth/OAuthManagerPackage.java createJSModules method makes the build succeed:

// @Override
    public List<Class<? extends JavaScriptModule>> createJSModules() {
        return Collections.emptyList();
    }

Versions: react-native: 0.48.1 react-native-oauth: ^2.2.0

desktp avatar Sep 06 '17 00:09 desktp

As I remeber createJSModules is not required in new react native. check react native issues with keyword "createJSModules"

amorenew avatar Sep 11 '17 07:09 amorenew

same problem here

"react": "16.0.0-alpha.12",
"react-native": "0.48.3",
"react-native-oauth": "^2.2.0"

marcusvbp avatar Sep 18 '17 14:09 marcusvbp

@marcusvbp the library is good but if your needs to use a native facebook app or twitter you need to use several other libraries the library is using webview not the installed apps

amorenew avatar Sep 18 '17 14:09 amorenew

@amorenew hi,

I need to implement Google and Facebook authentication . What libs you suggest?

marcusvbp avatar Sep 18 '17 14:09 marcusvbp

@marcusvbp As I tried and did a great effort here it is: Facebook: https://github.com/facebook/react-native-fbsdk Twitter: https://github.com/GoldenOwlAsia/react-native-twitter-signin Google: https://github.com/devfd/react-native-google-signin

amorenew avatar Sep 18 '17 14:09 amorenew

the same problem ~~

minhnhatspk avatar Sep 21 '17 04:09 minhnhatspk

#https://github.com/react-native-community/react-native-blur/pull/226

mourice avatar Oct 08 '17 16:10 mourice

Ran into this issue as well. Commenting out the @Override line worked.

kodie avatar Jan 26 '18 18:01 kodie

Commenting out the @Override line worked for me as well.

Jakerevans avatar Mar 02 '18 15:03 Jakerevans

Well this is wacky, do we need to pull request to those libs or what is exactly happening here?

vladikoff avatar Mar 23 '18 21:03 vladikoff

"react-native": "^0.55.4", didn't work evern after removin @override from RNGoogleSigninPackage.java

Error: Task :react-native-google-signin:compileDebugJavaWithJavac FAILED

android/src/main/java/co/apptailor/googlesignin/RNGoogleSigninPackage.java:25: error: method does not override or implement a method from a supertype @Override ^ 1 error

shai93 avatar Oct 22 '18 05:10 shai93