react-native-action-sheet icon indicating copy to clipboard operation
react-native-action-sheet copied to clipboard

Android getting issue execution failed

Open lavarajallu opened this issue 7 years ago • 4 comments

"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.

lavarajallu avatar May 23 '18 07:05 lavarajallu

Hello,

Try removing the @Override statement.

yfuks avatar May 23 '18 08:05 yfuks

Any news ?

yfuks avatar Jun 14 '18 09:06 yfuks

@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

jamesone avatar Aug 24 '18 05:08 jamesone

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();
}

jeremh2 avatar Sep 12 '18 09:09 jeremh2