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

Error: no suitable constructor found for Event(int) #64

Closed
sam17896 opened this issue Jul 20, 2020 · 2 comments
Closed

Error: no suitable constructor found for Event(int) #64

sam17896 opened this issue Jul 20, 2020 · 2 comments

Comments

@sam17896
Copy link

I am getting this error Error: no suitable constructor found for Event(int) while running the application this morning, it was running fine 2 days ago.
Complete stack trace. I am using android and latest react-native version 0.63

 react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1316 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Installing the app...

> Configure project :app
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

> Configure project :react-native-firebase_app
:react-native-firebase_app package.json found at D:\Projects\ui-team-demos\clearview-mobile\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_app:firebase.bom using default value: 25.3.1
:react-native-firebase_app package.json found at D:\Projects\ui-team-demos\clearview-mobile\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_app:version set from package.json: 8.0.0 (8,0,0 - 8000000)
:react-native-firebase_app:android.compileSdk using custom value: 29
:react-native-firebase_app:android.targetSdk using custom value: 29
:react-native-firebase_app:android.minSdk using custom value: 16
:react-native-firebase_app:reactNativeAndroidDir D:\Projects\ui-team-demos\clearview-mobile\node_modules\react-native\android

> Configure project :react-native-firebase_messaging
:react-native-firebase_messaging package.json found at D:\Projects\ui-team-demos\clearview-mobile\node_modules\@react-native-firebase\messaging\package.json
:react-native-firebase_app package.json found at D:\Projects\ui-team-demos\clearview-mobile\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_messaging:firebase.bom using default value: 25.3.1
:react-native-firebase_messaging package.json found at D:\Projects\ui-team-demos\clearview-mobile\node_modules\@react-native-firebase\messaging\package.json
:react-native-firebase_messaging:version set from package.json: 7.2.1 (7,2,1 - 7002001)
:react-native-firebase_messaging:android.compileSdk using custom value: 29
:react-native-firebase_messaging:android.targetSdk using custom value: 29
:react-native-firebase_messaging:android.minSdk using custom value: 16
:react-native-firebase_messaging:reactNativeAndroidDir D:\Projects\ui-team-demos\clearview-mobile\node_modules\react-native\android

> Task :react-native-community_checkbox:compileDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
39 actionable tasks: 19 executed, 20 up-to-date
D:\Projects\ui-team-demos\clearview-mobile\node_modules\@react-native-community\checkbox\android\src\main\java\com\reactnativecommunity\checkbox\ReactCheckBoxEvent.java:22: error: no suitable constructor found for Event(int)
    super(viewId);
    ^
    constructor Event.Event() is not applicable
      (actual and formal argument lists differ in length)
    constructor Event.Event(int,long) is not applicable
      (actual and formal argument lists differ in length)
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-community_checkbox: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 23s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
D:\Projects\ui-team-demos\clearview-mobile\node_modules\@react-native-community\checkbox\android\src\main\java\com\reactnativecommunity\checkbox\ReactCheckBoxEvent.java:22: error: no suitable constructor found for Event(int)
@sam17896
Copy link
Author

Its just some other library that i added messing up the project.

@IliasseWahbi
Copy link

hi, please let people now what you did / which library you removed, thanks.

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

2 participants