leotm / react-native-template-new-architecture

React Native 0.71.12 โšก M1, Ubuntu ๐Ÿ’ป Hermes โš™๏ธ Fabric ๐Ÿš… Turbo Modules ๐Ÿ’จ TypeScript 5 โœ… Gradle 7.6, JDK 19, NDK 25 ๐ŸŽ Xcode 15b, Sonoma 14b, Ruby 3 ๐Ÿ’Ž Bison 2.3 ๐Ÿฆฌ ccache โ™ป๏ธ Yarn 4rc ๐Ÿ“ฆ ESLint ๐Ÿงน Prettier โœจ SES, LavaMoat, Buck2 ๐Ÿšง Babel ๐Ÿ—ผ GitHub Actions โœ”๏ธ Node 19 โฌข Storybook 6.5rc ๐Ÿ““ libs ๐Ÿ“š for curious early adopters :suspect: #RNEU #APPJS
https://reactnative.dev/blog/2022/06/16/resources-migrating-your-react-native-library-to-the-new-architecture#migration-status-of-popular-libraries
240 stars 29 forks source link

Gradle 8 #1093

Open leotm opened 2 years ago

leotm commented 2 years ago

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

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 commented 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.