Closed ShaheerRiaz closed 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)
Can you give me the version of kotlin used in Android Studio ? You can find it here: Preferences > Languages & Frameworks > Kotlin
For my side:
@JeremyDolle we resolve the above issue build successfully but we face this error
Like it's said in the emulator, did you forget to run yarn start
on another terminal ?
@JeremyDolle yes i run
Can you try: yarn start --reset-cache
?
@ShaheerRiaz any update ?
react-native environment setup
Description
follow your provided steps npx react-native init MyApp --template @thecodingmachine/react-native-boilerplate and run project
![image](https://github.com/thecodingmachine/react-native-boilerplate/assets/24607573/05dbe456-5912-4338-9a00-44ffc25b4e09)
Version
3.70
On which OS this issue appear on?
Desktop OS
windows