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

Android getting issue execution failed #27

Open
lavarajallu opened this issue May 23, 2018 · 4 comments
Open

Android getting issue execution failed #27

lavarajallu opened this issue May 23, 2018 · 4 comments

Comments

@lavarajallu
Copy link

"react": "^16.2.0",
"react-native": "^0.50.3",

error showing like

:react-native-action-sheet:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/Users/stellent/Desktop/MentorMentee/konnect-react-native/node_modules/@yfuks/react-native-action-sheet/android/src/main/java/com/actionsheet/ActionSheetPackage.java:19: error: method does not override or implement a method from a supertype
  @Override
  ^
1 error
:react-native-action-sheet:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

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

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

I suggested and followed all documents and downgraded also but still getting this error.

@yfuks
Copy link
Owner

yfuks commented May 23, 2018

Hello,

Try removing the @Override statement.

@yfuks
Copy link
Owner

yfuks commented Jun 14, 2018

Any news ?

@jamesone
Copy link

jamesone commented Aug 24, 2018

@yfuks I tried removing the @OverRide statement but the same error shows up

yfuks/react-native-action-sheet/android/src/main/java/com/actionsheet/ActionSheetPackage.java:13: error: ActionSheetPackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class ActionSheetPackage implements ReactPackage {
       ^
1 error


FAILURE: Build failed with an exception.

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

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 18s
61 actionable tasks: 2 executed, 59 up-to-date
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:

My env:

"react-native": "0.56.0",

I'm also using Gradle3

@jeremh2
Copy link

jeremh2 commented Sep 12, 2018

I have the same problem with "react-native": "~0.55.2"

I tried removing the @OverRide statement with no success.

Then, I added the following method, copied and pasted from another react-native package, to the ActionSheetPackage class, which make it works.

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

davidtrogers added a commit to incnition/react-native-action-sheet that referenced this issue Mar 5, 2019
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

4 participants