Open leotm opened 2 years ago
Welcome to Gradle 8.0-milestone-3!
For more details see https://docs.gradle.org/8.0-milestone-3/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :react-native-gradle-plugin:compileKotlin
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (10, 37): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (119, 30): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (135, 26): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (157, 32): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (163, 31): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (171, 36): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt: (114, 48): 'reactRoot: DirectoryProperty' is deprecated. reactRoot was confusing and has been replace with root to point to your root project and reactNativeDir to point to the folder of the react-native NPM package
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (10, 37): 'ApplicationVariant' is deprecated. Deprecated in Java
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (11, 37): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (12, 37): 'LibraryVariant' is deprecated. Deprecated in Java
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (27, 51): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (130, 12): 'ApplicationVariant' is deprecated. Deprecated in Java
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (131, 12): 'LibraryVariant' is deprecated. Deprecated in Java
w: /Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (251, 14): 'BaseVariant' is deprecated. Deprecated in Java
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/8.0-milestone-3/userguide/command_line_interface.html#sec:command_line_warnings
5 actionable tasks: 5 executed
FAILURE: Build failed with an exception.
* Where:
Script '/Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native/react.gradle' line: 395
* What went wrong:
A problem occurred configuring project ':app'.
> Could not create task ':app:copyDebugBundledJs'.
> Could not create task ':app:mergeDebugAssets'.
> Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle_core() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.
* 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 40s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 -PreactNativeDebugArchitectures=arm64-v8a -PreactNativeArchitectures=arm64-v8a
FAILURE: Build failed with an exception.
* Where:
Script '/Users/leo/Documents/GitHub/react-native-template-new-architecture/node_modules/react-native/react.gradle' line: 395
* What went wrong:
A problem occurred configuring project ':app'.
> Could not create task ':app:copyDebugBundledJs'.
> Could not create task ':app:mergeDebugAssets'.
> Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle_core() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.
https://github.com/leotm/react-native-template-new-architecture/blob/c794902e2fd490a2e3d03052f8686ca6ca3d6289/android/gradle/wrapper/gradle-wrapper.properties#L5
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-milestone-2-all.zip
yarn android
/cd android && ./gradlew clean