Unable to run react native app after ejecting from expo: error: constructor DevSettingsModule in class DevSettingsModule cannot be applied to given types; new DevSettingsModule(catalystApplicationContext, reactInstanceManager.getDevSupportManager())
krishlahoti opened this issue · 0 comments
The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build.
This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal.
Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects.
If the parent project does not need the plugin, add 'apply false' to the plugin line.
See: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl
The Kotlin plugin was loaded in the following projects: ':expo-error-recovery', ':react-native-webview'
> Task :react-native-threads:compileDebugJavaWithJavac FAILED
297 actionable tasks: 2 executed, 295 up-to-date
/Users/krishnalahoti/IdeaProjects/pretech-UI/node_modules/react-native-threads/android/src/main/java/com/reactlibrary/ThreadBaseReactPackage.java:52: error: constructor DevSettingsModule in class DevSettingsModule cannot be applied to given types;
new DevSettingsModule(catalystApplicationContext, reactInstanceManager.getDevSupportManager())
^
required: DevSupportManager
found: ReactApplicationContext,DevSupportManager
reason: 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-threads: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 33s
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
/Users/krishnalahoti/IdeaProjects/pretech-UI/node_modules/react-native-threads/android/src/main/java/com/reactlibrary/ThreadBaseReactPackage.java:52: error: constructor DevSettingsModule in class DevSettingsModule cannot be applied to given types;
new DevSettingsModule(catalystApplicationContext, reactInstanceManager.getDevSupportManager())
^
required: DevSupportManager
found: ReactApplicationContext,DevSupportManager
reason: 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-threads: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 33s
at checkExecSyncError (child_process.js:611:11)
at execFileSync (child_process.js:629:15)
at runOnAllDevices (/Users/krishnalahoti/IdeaProjects/pretech-UI/node_modules/react-native/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:39)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ android: react-native run-android
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ android script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/krishnalahoti/.npm/_logs/2020-06-16T07_51_19_547Z-debug.log