Skip to content

Build failing on Android #158

Open
Open

Description

@desktp

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

Activity

  1. amorenew commented on Sep 11, 2017

    @amorenew

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

  2. marcusvbp commented on Sep 18, 2017

    @marcusvbp

    same problem here

    "react": "16.0.0-alpha.12",
    "react-native": "0.48.3",
    "react-native-oauth": "^2.2.0"
    
  3. amorenew commented on Sep 18, 2017

    @amorenew

    @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

  4. marcusvbp commented on Sep 18, 2017

    @marcusvbp

    @amorenew hi,

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

  5. amorenew commented on Sep 18, 2017

    @amorenew
  6. minhnhatspk commented on Sep 21, 2017

    @minhnhatspk

    the same problem ~~

  7. mourice commented on Oct 8, 2017

    @mourice
  8. kodie commented on Jan 26, 2018

    @kodie

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

  9. Jakerevans commented on Mar 2, 2018

    @Jakerevans

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

  10. vladikoff commented on Mar 23, 2018

    @vladikoff

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

  11. added a commit that references this issue on Jul 19, 2018
  12. shai93 commented on Oct 22, 2018

    @shai93

    "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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions