thecodingmachine / react-native-boilerplate

A React Native template for building solid applications 🐙, using JavaScript 💛 or Typescript 💙 (you choose).
https://thecodingmachine.github.io/react-native-boilerplate/
MIT License
4.75k stars 864 forks source link

[BUG]: react-native-gesture-handler:compileDebugKotlin FAILED :react-native-screens:compileDebugKotlin' ':react-native-safe-area-context:compileDebugKotlin'. #370

Closed ShaheerRiaz closed 1 year ago

ShaheerRiaz commented 1 year ago

react-native environment setup

Description

follow your provided steps npx react-native init MyApp --template @thecodingmachine/react-native-boilerplate and run project
image

Version

3.70

On which OS this issue appear on?

Desktop OS

windows

mrsaadabbasi commented 1 year ago

Facing this issue: Multiple build operations failed. Could not create task ':react-native-safe-area-context:compileDebugKotlin'. Could not create task ':react-native-screens:compileDebugKotlin'. Could not create task ':react-native-safe-area-context:compileDebugKotlin'. Cannot use @TaskAction annotation on method AbstractKotlinCompile.execute() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Exception is: com.intellij.openapi.externalSystem.model.ExternalSystemException: Multiple build operations failed. Could not create task ':react-native-safe-area-context:compileDebugKotlin'. Could not create task ':react-native-screens:compileDebugKotlin'. Could not create task ':react-native-safe-area-context:compileDebugKotlin'. Cannot use @TaskAction annotation on method AbstractKotlinCompile.execute() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method. at org.jetbrains.plugins.gradle.model.ProjectImportAction.addBuildModels(ProjectImportAction.java:383) at org.jetbrains.plugins.gradle.model.ProjectImportAction.access$600(ProjectImportAction.java:42) at org.jetbrains.plugins.gradle.model.ProjectImportAction$1.accept(ProjectImportAction.java:142) at org.jetbrains.plugins.gradle.model.ProjectImportAction.forEachNestedBuild(ProjectImportAction.java:206) at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:135) at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:42) at org.gradle.tooling.internal.consumer.connection.InternalBuildActionAdapter.execute(InternalBuildActionAdapter.java:64) at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.runAction(AbstractClientProvidedBuildActionRunner.java:131) at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.fromBuildModel(AbstractClientProvidedBuildActionRunner.java:104) at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.fromBuildModel(AbstractClientProvidedBuildActionRunner.java:84) at org.gradle.internal.buildtree.DefaultBuildTreeModelCreator.fromBuildModel(DefaultBuildTreeModelCreator.java:57) at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$fromBuildModel$2(DefaultBuildTreeLifecycleController.java:81)

JeremyDolle commented 1 year ago

Can you give me the version of kotlin used in Android Studio ? You can find it here: Preferences > Languages & Frameworks > Kotlin

For my side: image

mrsaadabbasi commented 1 year ago

kotlin

ShaheerRiaz commented 1 year ago

@JeremyDolle we resolve the above issue build successfully but we face this error image

JeremyDolle commented 1 year ago

Like it's said in the emulator, did you forget to run yarn start on another terminal ?

ShaheerRiaz commented 1 year ago

@JeremyDolle yes i run image

JeremyDolle commented 1 year ago

Can you try: yarn start --reset-cache ?

JeremyDolle commented 1 year ago

@ShaheerRiaz any update ?