Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failing on Android #158

Open
desktp opened this issue Sep 6, 2017 · 11 comments
Open

Build failing on Android #158

desktp opened this issue Sep 6, 2017 · 11 comments

Comments

@desktp
Copy link

desktp commented Sep 6, 2017

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

@amorenew
Copy link

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

@marcusvbp
Copy link

same problem here

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

@amorenew
Copy link

amorenew commented Sep 18, 2017

@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

@marcusvbp
Copy link

@amorenew hi,

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

@amorenew
Copy link

@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

@minhnhatspk
Copy link

the same problem ~~

@mourice
Copy link

mourice commented Oct 8, 2017

@kodie
Copy link

kodie commented Jan 26, 2018

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

@Jakerevans
Copy link

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

@vladikoff
Copy link

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

@shai93
Copy link

shai93 commented Oct 22, 2018

"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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants