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

Gradle 8 #1093

Open
leotm opened this issue Oct 22, 2022 · 1 comment
Open

Gradle 8 #1093

leotm opened this issue Oct 22, 2022 · 1 comment
Labels
android Native Android changes (Java, Gradle, Kotlin) gradle Gradle p: Gradle priority: medium
Milestone

Comments

@leotm
Copy link
Owner

leotm commented Oct 22, 2022

distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-rc-1-all.zip


distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-milestone-2-all.zip

yarn android / cd android && ./gradlew clean

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.
@leotm leotm added android Native Android changes (Java, Gradle, Kotlin) gradle Gradle labels Oct 22, 2022
@leotm leotm added this to the Gradle 8 milestone Oct 22, 2022
@leotm leotm changed the title Gradle 8 milestone 2 Gradle 8 Oct 22, 2022
@leotm leotm added this to In progress in 1337 - Template+ Oct 22, 2022
@leotm
Copy link
Owner Author

leotm commented Oct 30, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Native Android changes (Java, Gradle, Kotlin) gradle Gradle p: Gradle priority: medium
Projects
1337 - Template+
  
In progress
Development

No branches or pull requests

1 participant