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

[Windows] Gradle release build fails when spaces are in directory path #34878

Closed
micahlt opened this issue Oct 6, 2022 · 35 comments
Closed

[Windows] Gradle release build fails when spaces are in directory path #34878

micahlt opened this issue Oct 6, 2022 · 35 comments
Assignees

Comments

@micahlt
Copy link

micahlt commented Oct 6, 2022

Description

I'm on Windows. When building my app for release in Android Studio, I receive the following error after Metro successfully generates the assets:

'C:\Users\Micah' is not is not recognized as an internal or external command, operable program or batch file.

The path of the repository is C:\Users\Micah Lindley\Documents\Code\repo. This appears to be an issue with switching over to Hermes as Android Studio says it's tied to this line:

exec {

Help on this is much appreciated, since this prevents my app from being built!

Version

0.70.2

Output of npx react-native info

System:
OS: Windows 10 10.0.22621
CPU: (16) x64 AMD Ryzen 9 5900HX with Radeon Graphics
Memory: 14.97 GB / 31.41 GB
Binaries:
Node: 16.15.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.18 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-212.5712.43.2112.8512546
Visual Studio: Not Found
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

  1. Create a RN app in a folder with a space in the name
  2. Open Android Studio
  3. Generate a release
  4. See the error

Snack, code example, screenshot, or link to a repository

https://github.com/micahlt/wasteofmobile/tree/reactnative

@cortinico
Copy link
Contributor

'C:\Users\Micah' is not is not recognized as an internal or external command, operable program or batch file.

Can you share your full build log?

@micahlt
Copy link
Author

micahlt commented Oct 6, 2022

Here you are:

> Task :react-native-gradle-plugin:compileKotlin
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (10, 37): 'BaseVariant' is deprecated. Deprecated in Java
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (119, 30): 'BaseVariant' is deprecated. Deprecated in Java
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (135, 26): 'BaseVariant' is deprecated. Deprecated in Java
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (157, 32): 'BaseVariant' is deprecated. Deprecated in Java
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (163, 31): 'BaseVariant' is deprecated. Deprecated in Java
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (171, 36): 'BaseVariant' is deprecated. Deprecated in Java
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\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: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (10, 37): 'ApplicationVariant' is deprecated. Deprecated in Java
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (11, 37): 'BaseVariant' is deprecated. Deprecated in Java
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (12, 37): 'LibraryVariant' is deprecated. Deprecated in Java
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (27, 51): 'BaseVariant' is deprecated. Deprecated in Java
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (130, 12): 'ApplicationVariant' is deprecated. Deprecated in Java
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (131, 12): 'LibraryVariant' is deprecated. Deprecated in Java
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (251, 14): 'BaseVariant' is deprecated. Deprecated in Java

> Task :react-native-gradle-plugin:compileJava NO-SOURCE
> Task :react-native-gradle-plugin:pluginDescriptors UP-TO-DATE
> Task :react-native-gradle-plugin:processResources UP-TO-DATE
> Task :react-native-gradle-plugin:classes UP-TO-DATE
> Task :react-native-gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE
> Task :react-native-gradle-plugin:jar UP-TO-DATE

> Configure project :react-native-reanimated
Native libs debug enabled: false
Android gradle plugin: 7.2.1
Gradle: 7.5.1
building Reanimated2
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

> Task :app:generatePackageList
> Task :app:preBuild
> Task :app:preDebugBuild
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :react-native-async-storage_async-storage:preBuild UP-TO-DATE
> Task :react-native-async-storage_async-storage:preDebugBuild UP-TO-DATE
> Task :react-native-async-storage_async-storage:compileDebugAidl NO-SOURCE
> Task :react-native-gesture-handler:assertNoMultipleInstances
> Task :react-native-gesture-handler:preBuild
> Task :react-native-gesture-handler:preDebugBuild
> Task :react-native-reanimated:preBuild UP-TO-DATE
> Task :react-native-reanimated:preDebugBuild UP-TO-DATE
> Task :react-native-reanimated:compileDebugAidl NO-SOURCE
> Task :react-native-gesture-handler:compileDebugAidl NO-SOURCE
> Task :react-native-image-colors:preBuild UP-TO-DATE
> Task :react-native-image-colors:preDebugBuild UP-TO-DATE
> Task :react-native-image-colors:compileDebugAidl NO-SOURCE
> Task :react-native-inappbrowser-reborn:preBuild UP-TO-DATE
> Task :react-native-inappbrowser-reborn:preDebugBuild UP-TO-DATE
> Task :react-native-inappbrowser-reborn:compileDebugAidl NO-SOURCE
> Task :react-native-restart:preBuild UP-TO-DATE
> Task :react-native-restart:preDebugBuild UP-TO-DATE
> Task :react-native-restart:compileDebugAidl NO-SOURCE
> Task :react-native-safe-area-context:preBuild UP-TO-DATE
> Task :react-native-safe-area-context:preDebugBuild UP-TO-DATE
> Task :react-native-safe-area-context:compileDebugAidl NO-SOURCE
> Task :react-native-screens:preBuild UP-TO-DATE
> Task :react-native-screens:preDebugBuild UP-TO-DATE
> Task :react-native-screens:compileDebugAidl NO-SOURCE
> Task :react-native-svg:preBuild UP-TO-DATE
> Task :react-native-svg:preDebugBuild UP-TO-DATE
> Task :react-native-svg:compileDebugAidl NO-SOURCE
> Task :react-native-vector-icons:preBuild UP-TO-DATE
> Task :react-native-vector-icons:preDebugBuild UP-TO-DATE
> Task :react-native-vector-icons:compileDebugAidl NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :react-native-async-storage_async-storage:packageDebugRenderscript NO-SOURCE
> Task :react-native-gesture-handler:packageDebugRenderscript NO-SOURCE
> Task :react-native-image-colors:packageDebugRenderscript NO-SOURCE
> Task :react-native-inappbrowser-reborn:packageDebugRenderscript NO-SOURCE
> Task :react-native-reanimated:packageDebugRenderscript NO-SOURCE
> Task :react-native-restart:packageDebugRenderscript NO-SOURCE
> Task :react-native-safe-area-context:packageDebugRenderscript NO-SOURCE
> Task :react-native-screens:packageDebugRenderscript NO-SOURCE
> Task :react-native-svg:packageDebugRenderscript NO-SOURCE
> Task :react-native-vector-icons:packageDebugRenderscript NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :react-native-async-storage_async-storage:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-gesture-handler:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-image-colors:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-inappbrowser-reborn:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-reanimated:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-restart:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-safe-area-context:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-screens:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-svg:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-vector-icons:writeDebugAarMetadata UP-TO-DATE
> Task :app:checkDebugAarMetadata UP-TO-DATE
> Task :app:generateDebugResValues UP-TO-DATE
> Task :app:bundleDebugJsAndAssets SKIPPED
> Task :app:mergeDebugShaders UP-TO-DATE
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:copyReactNativeVectorIconFonts UP-TO-DATE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :react-native-async-storage_async-storage:mergeDebugShaders UP-TO-DATE
> Task :react-native-async-storage_async-storage:compileDebugShaders NO-SOURCE
> Task :react-native-async-storage_async-storage:generateDebugAssets UP-TO-DATE
> Task :react-native-async-storage_async-storage:packageDebugAssets UP-TO-DATE
> Task :react-native-gesture-handler:mergeDebugShaders UP-TO-DATE
> Task :react-native-gesture-handler:compileDebugShaders NO-SOURCE
> Task :react-native-gesture-handler:generateDebugAssets UP-TO-DATE
> Task :react-native-gesture-handler:packageDebugAssets UP-TO-DATE
> Task :react-native-image-colors:mergeDebugShaders UP-TO-DATE
> Task :react-native-image-colors:compileDebugShaders NO-SOURCE
> Task :react-native-image-colors:generateDebugAssets UP-TO-DATE
> Task :react-native-image-colors:packageDebugAssets UP-TO-DATE
> Task :react-native-inappbrowser-reborn:mergeDebugShaders UP-TO-DATE
> Task :react-native-inappbrowser-reborn:compileDebugShaders NO-SOURCE
> Task :react-native-inappbrowser-reborn:generateDebugAssets UP-TO-DATE
> Task :react-native-inappbrowser-reborn:packageDebugAssets UP-TO-DATE
> Task :react-native-reanimated:mergeDebugShaders UP-TO-DATE
> Task :react-native-reanimated:compileDebugShaders NO-SOURCE
> Task :react-native-reanimated:generateDebugAssets UP-TO-DATE
> Task :react-native-reanimated:packageDebugAssets UP-TO-DATE
> Task :react-native-restart:mergeDebugShaders UP-TO-DATE
> Task :react-native-restart:compileDebugShaders NO-SOURCE
> Task :react-native-restart:generateDebugAssets UP-TO-DATE
> Task :react-native-restart:packageDebugAssets UP-TO-DATE
> Task :react-native-safe-area-context:mergeDebugShaders UP-TO-DATE
> Task :react-native-safe-area-context:compileDebugShaders NO-SOURCE
> Task :react-native-safe-area-context:generateDebugAssets UP-TO-DATE
> Task :react-native-safe-area-context:packageDebugAssets UP-TO-DATE
> Task :react-native-screens:mergeDebugShaders UP-TO-DATE
> Task :react-native-screens:compileDebugShaders NO-SOURCE
> Task :react-native-screens:generateDebugAssets UP-TO-DATE
> Task :react-native-screens:packageDebugAssets UP-TO-DATE
> Task :react-native-svg:mergeDebugShaders UP-TO-DATE
> Task :react-native-svg:compileDebugShaders NO-SOURCE
> Task :react-native-svg:generateDebugAssets UP-TO-DATE
> Task :react-native-svg:packageDebugAssets UP-TO-DATE
> Task :react-native-vector-icons:mergeDebugShaders UP-TO-DATE
> Task :react-native-vector-icons:compileDebugShaders NO-SOURCE
> Task :react-native-vector-icons:generateDebugAssets UP-TO-DATE
> Task :react-native-vector-icons:packageDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets UP-TO-DATE
> Task :app:copyDebugBundledJs SKIPPED
> Task :app:generateDebugResources UP-TO-DATE
> Task :react-native-async-storage_async-storage:compileDebugRenderscript NO-SOURCE
> Task :react-native-async-storage_async-storage:generateDebugResValues UP-TO-DATE
> Task :react-native-async-storage_async-storage:generateDebugResources UP-TO-DATE
> Task :react-native-async-storage_async-storage:packageDebugResources UP-TO-DATE
> Task :react-native-gesture-handler:compileDebugRenderscript NO-SOURCE
> Task :react-native-gesture-handler:generateDebugResValues UP-TO-DATE
> Task :react-native-gesture-handler:generateDebugResources UP-TO-DATE
> Task :react-native-gesture-handler:packageDebugResources UP-TO-DATE
> Task :react-native-image-colors:compileDebugRenderscript NO-SOURCE
> Task :react-native-image-colors:generateDebugResValues UP-TO-DATE
> Task :react-native-image-colors:generateDebugResources UP-TO-DATE
> Task :react-native-image-colors:packageDebugResources UP-TO-DATE
> Task :react-native-inappbrowser-reborn:compileDebugRenderscript NO-SOURCE
> Task :react-native-inappbrowser-reborn:generateDebugResValues UP-TO-DATE
> Task :react-native-inappbrowser-reborn:generateDebugResources UP-TO-DATE
> Task :react-native-inappbrowser-reborn:packageDebugResources UP-TO-DATE
> Task :react-native-reanimated:compileDebugRenderscript NO-SOURCE
> Task :react-native-reanimated:generateDebugResValues UP-TO-DATE
> Task :react-native-reanimated:generateDebugResources UP-TO-DATE
> Task :react-native-reanimated:packageDebugResources UP-TO-DATE
> Task :react-native-restart:compileDebugRenderscript NO-SOURCE
> Task :react-native-restart:generateDebugResValues UP-TO-DATE
> Task :react-native-restart:generateDebugResources UP-TO-DATE
> Task :react-native-restart:packageDebugResources UP-TO-DATE
> Task :react-native-safe-area-context:compileDebugRenderscript NO-SOURCE
> Task :react-native-safe-area-context:generateDebugResValues UP-TO-DATE
> Task :react-native-safe-area-context:generateDebugResources UP-TO-DATE
> Task :react-native-safe-area-context:packageDebugResources UP-TO-DATE
> Task :react-native-screens:compileDebugRenderscript NO-SOURCE
> Task :react-native-screens:generateDebugResValues UP-TO-DATE
> Task :react-native-screens:generateDebugResources UP-TO-DATE
> Task :react-native-screens:packageDebugResources UP-TO-DATE
> Task :react-native-svg:compileDebugRenderscript NO-SOURCE
> Task :react-native-svg:generateDebugResValues UP-TO-DATE
> Task :react-native-svg:generateDebugResources UP-TO-DATE
> Task :react-native-svg:packageDebugResources UP-TO-DATE
> Task :react-native-vector-icons:compileDebugRenderscript NO-SOURCE
> Task :react-native-vector-icons:generateDebugResValues UP-TO-DATE
> Task :react-native-vector-icons:generateDebugResources UP-TO-DATE
> Task :react-native-vector-icons:packageDebugResources UP-TO-DATE
> Task :app:mergeDebugResources UP-TO-DATE
> Task :app:mapDebugSourceSetPaths UP-TO-DATE
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
> Task :app:extractDeepLinksDebug UP-TO-DATE
> Task :react-native-async-storage_async-storage:extractDeepLinksDebug UP-TO-DATE
> Task :react-native-async-storage_async-storage:processDebugManifest UP-TO-DATE
> Task :react-native-gesture-handler:extractDeepLinksDebug UP-TO-DATE
> Task :react-native-gesture-handler:processDebugManifest UP-TO-DATE
> Task :react-native-image-colors:extractDeepLinksDebug UP-TO-DATE
> Task :react-native-image-colors:processDebugManifest UP-TO-DATE
> Task :react-native-inappbrowser-reborn:extractDeepLinksDebug UP-TO-DATE
> Task :react-native-inappbrowser-reborn:processDebugManifest UP-TO-DATE
> Task :react-native-reanimated:extractDeepLinksDebug UP-TO-DATE
> Task :react-native-reanimated:processDebugManifest UP-TO-DATE
> Task :react-native-restart:extractDeepLinksDebug UP-TO-DATE
> Task :react-native-restart:processDebugManifest UP-TO-DATE
> Task :react-native-safe-area-context:extractDeepLinksDebug UP-TO-DATE
> Task :react-native-safe-area-context:processDebugManifest UP-TO-DATE
> Task :react-native-screens:extractDeepLinksDebug UP-TO-DATE
> Task :react-native-screens:processDebugManifest UP-TO-DATE
> Task :react-native-svg:extractDeepLinksDebug UP-TO-DATE
> Task :react-native-svg:processDebugManifest UP-TO-DATE
> Task :react-native-vector-icons:extractDeepLinksDebug UP-TO-DATE
> Task :react-native-vector-icons:processDebugManifest UP-TO-DATE
> Task :app:processDebugMainManifest UP-TO-DATE
> Task :app:processDebugManifest UP-TO-DATE
> Task :app:processDebugManifestForPackage UP-TO-DATE
> Task :react-native-async-storage_async-storage:compileDebugLibraryResources UP-TO-DATE
> Task :react-native-async-storage_async-storage:parseDebugLocalResources UP-TO-DATE
> Task :react-native-async-storage_async-storage:generateDebugRFile UP-TO-DATE
> Task :react-native-gesture-handler:compileDebugLibraryResources UP-TO-DATE
> Task :react-native-gesture-handler:parseDebugLocalResources UP-TO-DATE
> Task :react-native-reanimated:parseDebugLocalResources UP-TO-DATE
> Task :react-native-reanimated:generateDebugRFile UP-TO-DATE
> Task :react-native-gesture-handler:generateDebugRFile UP-TO-DATE
> Task :react-native-image-colors:compileDebugLibraryResources UP-TO-DATE
> Task :react-native-image-colors:parseDebugLocalResources UP-TO-DATE
> Task :react-native-image-colors:generateDebugRFile UP-TO-DATE
> Task :react-native-inappbrowser-reborn:compileDebugLibraryResources UP-TO-DATE
> Task :react-native-inappbrowser-reborn:parseDebugLocalResources UP-TO-DATE
> Task :react-native-inappbrowser-reborn:generateDebugRFile UP-TO-DATE
> Task :react-native-reanimated:compileDebugLibraryResources UP-TO-DATE
> Task :react-native-restart:compileDebugLibraryResources UP-TO-DATE
> Task :react-native-restart:parseDebugLocalResources UP-TO-DATE
> Task :react-native-restart:generateDebugRFile UP-TO-DATE
> Task :react-native-safe-area-context:compileDebugLibraryResources UP-TO-DATE
> Task :react-native-safe-area-context:parseDebugLocalResources UP-TO-DATE
> Task :react-native-safe-area-context:generateDebugRFile UP-TO-DATE
> Task :react-native-screens:compileDebugLibraryResources UP-TO-DATE
> Task :react-native-screens:parseDebugLocalResources UP-TO-DATE
> Task :react-native-screens:generateDebugRFile UP-TO-DATE
> Task :react-native-svg:compileDebugLibraryResources UP-TO-DATE
> Task :react-native-svg:parseDebugLocalResources UP-TO-DATE
> Task :react-native-svg:generateDebugRFile UP-TO-DATE
> Task :react-native-vector-icons:compileDebugLibraryResources UP-TO-DATE
> Task :react-native-vector-icons:parseDebugLocalResources UP-TO-DATE
> Task :react-native-vector-icons:generateDebugRFile UP-TO-DATE
> Task :app:processDebugResources UP-TO-DATE
> Task :react-native-async-storage_async-storage:generateDebugBuildConfig UP-TO-DATE
> Task :react-native-async-storage_async-storage:javaPreCompileDebug UP-TO-DATE
> Task :react-native-async-storage_async-storage:compileDebugJavaWithJavac UP-TO-DATE
> Task :react-native-async-storage_async-storage:bundleLibCompileToJarDebug UP-TO-DATE
> Task :react-native-gesture-handler:generateDebugBuildConfig UP-TO-DATE
> Task :react-native-reanimated:generateDebugBuildConfig UP-TO-DATE
> Task :react-native-reanimated:javaPreCompileDebug UP-TO-DATE
> Task :react-native-reanimated:packageNdkLibs NO-SOURCE
> Task :react-native-reanimated:compileDebugJavaWithJavac UP-TO-DATE
> Task :react-native-reanimated:bundleLibCompileToJarDebug UP-TO-DATE
> Task :react-native-gesture-handler:compileDebugKotlin UP-TO-DATE
> Task :react-native-gesture-handler:javaPreCompileDebug UP-TO-DATE
> Task :react-native-gesture-handler:compileDebugJavaWithJavac UP-TO-DATE
> Task :react-native-gesture-handler:bundleLibCompileToJarDebug UP-TO-DATE
> Task :react-native-image-colors:generateDebugBuildConfig UP-TO-DATE
> Task :react-native-image-colors:compileDebugKotlin
> Task :react-native-image-colors:javaPreCompileDebug UP-TO-DATE
> Task :react-native-image-colors:compileDebugJavaWithJavac UP-TO-DATE
> Task :react-native-image-colors:bundleLibCompileToJarDebug UP-TO-DATE
> Task :react-native-inappbrowser-reborn:generateDebugBuildConfig UP-TO-DATE
> Task :react-native-inappbrowser-reborn:javaPreCompileDebug UP-TO-DATE
> Task :react-native-inappbrowser-reborn:compileDebugJavaWithJavac UP-TO-DATE
> Task :react-native-inappbrowser-reborn:bundleLibCompileToJarDebug UP-TO-DATE
> Task :react-native-restart:generateDebugBuildConfig UP-TO-DATE
> Task :react-native-restart:javaPreCompileDebug UP-TO-DATE
> Task :react-native-restart:compileDebugJavaWithJavac UP-TO-DATE
> Task :react-native-restart:bundleLibCompileToJarDebug UP-TO-DATE
> Task :react-native-safe-area-context:generateDebugBuildConfig UP-TO-DATE

> Task :react-native-safe-area-context:compileDebugKotlin
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-safe-area-context\android\src\main\java\com\th3rdwave\safeareacontext\SafeAreaView.kt: (50, 23): 'getter for uiImplementation: UIImplementation!' is deprecated. Deprecated in Java

> Task :react-native-safe-area-context:javaPreCompileDebug UP-TO-DATE
> Task :react-native-safe-area-context:compileDebugJavaWithJavac UP-TO-DATE
> Task :react-native-safe-area-context:bundleLibCompileToJarDebug UP-TO-DATE
> Task :react-native-screens:generateDebugBuildConfig UP-TO-DATE
> Task :react-native-screens:compileDebugKotlin UP-TO-DATE
> Task :react-native-screens:javaPreCompileDebug UP-TO-DATE
> Task :react-native-screens:compileDebugJavaWithJavac UP-TO-DATE
> Task :react-native-screens:bundleLibCompileToJarDebug UP-TO-DATE
> Task :react-native-svg:generateDebugBuildConfig UP-TO-DATE
> Task :react-native-svg:javaPreCompileDebug UP-TO-DATE
> Task :react-native-svg:compileDebugJavaWithJavac UP-TO-DATE
> Task :react-native-svg:bundleLibCompileToJarDebug UP-TO-DATE
> Task :react-native-vector-icons:generateDebugBuildConfig UP-TO-DATE
> Task :react-native-vector-icons:javaPreCompileDebug UP-TO-DATE
> Task :react-native-vector-icons:compileDebugJavaWithJavac UP-TO-DATE
> Task :react-native-vector-icons:bundleLibCompileToJarDebug UP-TO-DATE
> Task :app:compileDebugJavaWithJavac UP-TO-DATE
> Task :app:compressDebugAssets UP-TO-DATE
> Task :app:processDebugJavaRes NO-SOURCE
> Task :react-native-async-storage_async-storage:processDebugJavaRes NO-SOURCE
> Task :react-native-async-storage_async-storage:bundleLibResDebug NO-SOURCE
> Task :react-native-gesture-handler:processDebugJavaRes NO-SOURCE
> Task :react-native-gesture-handler:bundleLibResDebug UP-TO-DATE
> Task :react-native-image-colors:processDebugJavaRes NO-SOURCE
> Task :react-native-image-colors:bundleLibResDebug NO-SOURCE
> Task :react-native-inappbrowser-reborn:processDebugJavaRes NO-SOURCE
> Task :react-native-inappbrowser-reborn:bundleLibResDebug NO-SOURCE
> Task :react-native-reanimated:processDebugJavaRes NO-SOURCE
> Task :react-native-reanimated:bundleLibResDebug NO-SOURCE
> Task :react-native-restart:processDebugJavaRes NO-SOURCE
> Task :react-native-restart:bundleLibResDebug NO-SOURCE
> Task :react-native-safe-area-context:processDebugJavaRes NO-SOURCE
> Task :react-native-safe-area-context:bundleLibResDebug UP-TO-DATE
> Task :react-native-screens:processDebugJavaRes NO-SOURCE
> Task :react-native-screens:bundleLibResDebug UP-TO-DATE
> Task :react-native-svg:processDebugJavaRes NO-SOURCE
> Task :react-native-svg:bundleLibResDebug NO-SOURCE
> Task :react-native-vector-icons:processDebugJavaRes NO-SOURCE
> Task :react-native-vector-icons:bundleLibResDebug NO-SOURCE
> Task :app:mergeDebugJavaResource UP-TO-DATE
> Task :app:checkDebugDuplicateClasses UP-TO-DATE
> Task :app:desugarDebugFileDependencies UP-TO-DATE
> Task :app:mergeExtDexDebug UP-TO-DATE
> Task :react-native-async-storage_async-storage:bundleLibRuntimeToJarDebug UP-TO-DATE
> Task :react-native-gesture-handler:bundleLibRuntimeToJarDebug UP-TO-DATE
> Task :react-native-reanimated:bundleLibRuntimeToJarDebug UP-TO-DATE
> Task :react-native-image-colors:bundleLibRuntimeToJarDebug UP-TO-DATE
> Task :react-native-inappbrowser-reborn:bundleLibRuntimeToJarDebug UP-TO-DATE
> Task :react-native-restart:bundleLibRuntimeToJarDebug UP-TO-DATE
> Task :react-native-safe-area-context:bundleLibRuntimeToJarDebug UP-TO-DATE
> Task :react-native-screens:bundleLibRuntimeToJarDebug UP-TO-DATE
> Task :react-native-svg:bundleLibRuntimeToJarDebug UP-TO-DATE
> Task :react-native-vector-icons:bundleLibRuntimeToJarDebug UP-TO-DATE
> Task :app:dexBuilderDebug UP-TO-DATE
> Task :app:mergeLibDexDebug UP-TO-DATE
> Task :app:mergeProjectDexDebug UP-TO-DATE
> Task :app:mergeDebugJniLibFolders UP-TO-DATE
> Task :react-native-async-storage_async-storage:mergeDebugJniLibFolders UP-TO-DATE
> Task :react-native-async-storage_async-storage:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-async-storage_async-storage:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :react-native-gesture-handler:mergeDebugJniLibFolders UP-TO-DATE
> Task :react-native-gesture-handler:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-gesture-handler:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :react-native-image-colors:mergeDebugJniLibFolders UP-TO-DATE
> Task :react-native-image-colors:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-image-colors:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :react-native-inappbrowser-reborn:mergeDebugJniLibFolders UP-TO-DATE
> Task :react-native-inappbrowser-reborn:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-inappbrowser-reborn:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :react-native-reanimated:applyJavaPatches NO-SOURCE
> Task :react-native-reanimated:createNativeDepsDirectories UP-TO-DATE

> Task :react-native-reanimated:downloadHermes UP-TO-DATE
Download https://github.com/facebook/hermes/tarball/hermes-2022-09-14-RNv0.70.1-2a6b111ab289b55d7b78b5fdf105f466ba270fd7

> Task :react-native-reanimated:downloadBoost UP-TO-DATE
Download https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz

> Task :react-native-reanimated:unzipHermes UP-TO-DATE
> Task :react-native-reanimated:prepareHermes

> Task :react-native-reanimated:downloadDoubleConversion UP-TO-DATE
Download https://github.com/google/double-conversion/archive/v1.1.6.tar.gz

> Task :react-native-reanimated:downloadFolly UP-TO-DATE
Download https://github.com/facebook/folly/archive/v2021.07.22.00.tar.gz

> Task :react-native-reanimated:downloadGlog UP-TO-DATE
Download https://github.com/google/glog/archive/v0.3.5.tar.gz

> Task :react-native-reanimated:prepareBoost UP-TO-DATE
> Task :react-native-reanimated:downloadNdkBuildDependencies UP-TO-DATE
> Task :react-native-reanimated:prepareDoubleConversion UP-TO-DATE
> Task :react-native-reanimated:prepareFolly UP-TO-DATE
> Task :react-native-reanimated:prepareGlog UP-TO-DATE
> Task :react-native-reanimated:unpackReactNativeAAR UP-TO-DATE
> Task :react-native-reanimated:prepareThirdPartyNdkHeaders UP-TO-DATE
> Task :react-native-reanimated:extractAARHeaders
> Task :react-native-reanimated:extractSOFiles
> Task :react-native-reanimated:configureCMakeDebug[arm64-v8a]

> Task :react-native-reanimated:buildCMakeDebug[arm64-v8a]
C/C++: ninja: Entering directory `C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-reanimated\android\.cxx\Debug\4na6yu49\arm64-v8a'
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here

> Task :react-native-reanimated:configureCMakeDebug[armeabi-v7a]

> Task :react-native-reanimated:buildCMakeDebug[armeabi-v7a]
C/C++: ninja: Entering directory `C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-reanimated\android\.cxx\Debug\4na6yu49\armeabi-v7a'
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here

> Task :react-native-reanimated:configureCMakeDebug[x86]

> Task :react-native-reanimated:buildCMakeDebug[x86]
C/C++: ninja: Entering directory `C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-reanimated\android\.cxx\Debug\4na6yu49\x86'
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here

> Task :react-native-reanimated:configureCMakeDebug[x86_64]

> Task :react-native-reanimated:buildCMakeDebug[x86_64]
C/C++: ninja: Entering directory `C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-reanimated\android\.cxx\Debug\4na6yu49\x86_64'
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here

> Task :react-native-reanimated:externalNativeBuildDebug
> Task :react-native-reanimated:mergeDebugJniLibFolders UP-TO-DATE
> Task :react-native-reanimated:mergeDebugNativeLibs UP-TO-DATE
> Task :react-native-reanimated:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :react-native-restart:mergeDebugJniLibFolders UP-TO-DATE
> Task :react-native-restart:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-restart:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :react-native-safe-area-context:mergeDebugJniLibFolders UP-TO-DATE
> Task :react-native-safe-area-context:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-safe-area-context:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :react-native-screens:mergeDebugJniLibFolders UP-TO-DATE
> Task :react-native-screens:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-screens:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :react-native-svg:mergeDebugJniLibFolders UP-TO-DATE
> Task :react-native-svg:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-svg:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :react-native-vector-icons:mergeDebugJniLibFolders UP-TO-DATE
> Task :react-native-vector-icons:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-vector-icons:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :app:mergeDebugNativeLibs UP-TO-DATE
> Task :app:stripDebugDebugSymbols UP-TO-DATE
> Task :app:validateSigningDebug UP-TO-DATE
> Task :app:writeDebugAppMetadata UP-TO-DATE
> Task :app:writeDebugSigningConfigVersions UP-TO-DATE
> Task :app:packageDebug UP-TO-DATE
> Task :app:createDebugApkListingFileRedirect UP-TO-DATE
> Task :app:assembleDebug UP-TO-DATE
> Task :app:preReleaseBuild
> Task :react-native-async-storage_async-storage:preReleaseBuild UP-TO-DATE
> Task :react-native-async-storage_async-storage:compileReleaseAidl NO-SOURCE
> Task :react-native-async-storage_async-storage:mergeReleaseJniLibFolders UP-TO-DATE
> Task :react-native-async-storage_async-storage:mergeReleaseNativeLibs NO-SOURCE
> Task :react-native-async-storage_async-storage:stripReleaseDebugSymbols NO-SOURCE
> Task :react-native-async-storage_async-storage:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :react-native-async-storage_async-storage:compileReleaseRenderscript NO-SOURCE
> Task :react-native-async-storage_async-storage:generateReleaseBuildConfig UP-TO-DATE
> Task :react-native-async-storage_async-storage:generateReleaseResValues UP-TO-DATE
> Task :react-native-async-storage_async-storage:generateReleaseResources UP-TO-DATE
> Task :react-native-async-storage_async-storage:packageReleaseResources UP-TO-DATE
> Task :react-native-async-storage_async-storage:parseReleaseLocalResources UP-TO-DATE
> Task :react-native-async-storage_async-storage:processReleaseManifest UP-TO-DATE
> Task :react-native-async-storage_async-storage:generateReleaseRFile UP-TO-DATE
> Task :react-native-async-storage_async-storage:extractReleaseAnnotations UP-TO-DATE
> Task :react-native-async-storage_async-storage:javaPreCompileRelease UP-TO-DATE
> Task :react-native-async-storage_async-storage:compileReleaseJavaWithJavac UP-TO-DATE
> Task :react-native-async-storage_async-storage:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :react-native-async-storage_async-storage:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :react-native-async-storage_async-storage:mergeReleaseShaders UP-TO-DATE
> Task :react-native-async-storage_async-storage:compileReleaseShaders NO-SOURCE
> Task :react-native-async-storage_async-storage:generateReleaseAssets UP-TO-DATE
> Task :react-native-async-storage_async-storage:packageReleaseAssets UP-TO-DATE
> Task :react-native-async-storage_async-storage:packageReleaseRenderscript NO-SOURCE
> Task :react-native-async-storage_async-storage:prepareLintJarForPublish UP-TO-DATE
> Task :react-native-async-storage_async-storage:prepareReleaseArtProfile UP-TO-DATE
> Task :react-native-async-storage_async-storage:processReleaseJavaRes NO-SOURCE
> Task :react-native-async-storage_async-storage:mergeReleaseJavaResource UP-TO-DATE
> Task :react-native-async-storage_async-storage:syncReleaseLibJars UP-TO-DATE
> Task :react-native-async-storage_async-storage:writeReleaseAarMetadata UP-TO-DATE
> Task :react-native-async-storage_async-storage:bundleReleaseLocalLintAar UP-TO-DATE
> Task :react-native-gesture-handler:preReleaseBuild
> Task :react-native-reanimated:preReleaseBuild UP-TO-DATE
> Task :react-native-reanimated:compileReleaseAidl NO-SOURCE
> Task :react-native-gesture-handler:compileReleaseAidl NO-SOURCE
> Task :react-native-gesture-handler:mergeReleaseJniLibFolders UP-TO-DATE
> Task :react-native-gesture-handler:mergeReleaseNativeLibs NO-SOURCE
> Task :react-native-gesture-handler:stripReleaseDebugSymbols NO-SOURCE
> Task :react-native-gesture-handler:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :react-native-reanimated:packageReleaseRenderscript NO-SOURCE
> Task :react-native-gesture-handler:compileReleaseRenderscript NO-SOURCE
> Task :react-native-gesture-handler:generateReleaseBuildConfig UP-TO-DATE
> Task :react-native-gesture-handler:generateReleaseResValues UP-TO-DATE
> Task :react-native-gesture-handler:generateReleaseResources UP-TO-DATE
> Task :react-native-gesture-handler:packageReleaseResources UP-TO-DATE
> Task :react-native-gesture-handler:parseReleaseLocalResources UP-TO-DATE
> Task :react-native-gesture-handler:processReleaseManifest UP-TO-DATE
> Task :react-native-reanimated:compileReleaseRenderscript NO-SOURCE
> Task :react-native-reanimated:generateReleaseResValues UP-TO-DATE
> Task :react-native-reanimated:generateReleaseResources UP-TO-DATE
> Task :react-native-reanimated:packageReleaseResources UP-TO-DATE
> Task :react-native-reanimated:parseReleaseLocalResources UP-TO-DATE
> Task :react-native-reanimated:processReleaseManifest UP-TO-DATE
> Task :react-native-reanimated:generateReleaseRFile UP-TO-DATE
> Task :react-native-gesture-handler:generateReleaseRFile UP-TO-DATE
> Task :react-native-reanimated:generateReleaseBuildConfig UP-TO-DATE
> Task :react-native-reanimated:javaPreCompileRelease UP-TO-DATE

> Task :react-native-reanimated:compileReleaseJavaWithJavac
Execution optimizations have been disabled for task ':react-native-reanimated:compileReleaseJavaWithJavac' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: 'C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-reanimated\android\src\main\java'. Reason: Task ':react-native-reanimated:compileReleaseJavaWithJavac' uses this output of task ':react-native-reanimated:applyJavaPatches' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.

> Task :react-native-reanimated:bundleLibCompileToJarRelease UP-TO-DATE
> Task :react-native-gesture-handler:compileReleaseKotlin UP-TO-DATE
> Task :react-native-gesture-handler:extractReleaseAnnotations UP-TO-DATE
> Task :react-native-gesture-handler:javaPreCompileRelease UP-TO-DATE
> Task :react-native-gesture-handler:compileReleaseJavaWithJavac UP-TO-DATE
> Task :react-native-gesture-handler:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :react-native-gesture-handler:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :react-native-gesture-handler:mergeReleaseShaders UP-TO-DATE
> Task :react-native-gesture-handler:compileReleaseShaders NO-SOURCE
> Task :react-native-gesture-handler:generateReleaseAssets UP-TO-DATE
> Task :react-native-gesture-handler:packageReleaseAssets UP-TO-DATE
> Task :react-native-gesture-handler:packageReleaseRenderscript NO-SOURCE
> Task :react-native-gesture-handler:prepareLintJarForPublish UP-TO-DATE
> Task :react-native-gesture-handler:prepareReleaseArtProfile UP-TO-DATE
> Task :react-native-gesture-handler:processReleaseJavaRes NO-SOURCE
> Task :react-native-gesture-handler:mergeReleaseJavaResource UP-TO-DATE
> Task :react-native-gesture-handler:syncReleaseLibJars UP-TO-DATE
> Task :react-native-gesture-handler:writeReleaseAarMetadata UP-TO-DATE
> Task :react-native-gesture-handler:bundleReleaseLocalLintAar UP-TO-DATE
> Task :react-native-image-colors:preReleaseBuild UP-TO-DATE
> Task :react-native-image-colors:compileReleaseAidl NO-SOURCE
> Task :react-native-image-colors:mergeReleaseJniLibFolders UP-TO-DATE
> Task :react-native-image-colors:mergeReleaseNativeLibs NO-SOURCE
> Task :react-native-image-colors:stripReleaseDebugSymbols NO-SOURCE
> Task :react-native-image-colors:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :react-native-image-colors:compileReleaseRenderscript NO-SOURCE
> Task :react-native-image-colors:generateReleaseBuildConfig UP-TO-DATE
> Task :react-native-image-colors:generateReleaseResValues UP-TO-DATE
> Task :react-native-image-colors:generateReleaseResources UP-TO-DATE
> Task :react-native-image-colors:packageReleaseResources UP-TO-DATE
> Task :react-native-image-colors:parseReleaseLocalResources UP-TO-DATE
> Task :react-native-image-colors:processReleaseManifest UP-TO-DATE
> Task :react-native-image-colors:generateReleaseRFile UP-TO-DATE
> Task :react-native-image-colors:compileReleaseKotlin
> Task :react-native-image-colors:extractReleaseAnnotations UP-TO-DATE
> Task :react-native-image-colors:javaPreCompileRelease UP-TO-DATE
> Task :react-native-image-colors:compileReleaseJavaWithJavac UP-TO-DATE
> Task :react-native-image-colors:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :react-native-image-colors:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :react-native-image-colors:mergeReleaseShaders UP-TO-DATE
> Task :react-native-image-colors:compileReleaseShaders NO-SOURCE
> Task :react-native-image-colors:generateReleaseAssets UP-TO-DATE
> Task :react-native-image-colors:packageReleaseAssets UP-TO-DATE
> Task :react-native-image-colors:packageReleaseRenderscript NO-SOURCE
> Task :react-native-image-colors:prepareLintJarForPublish UP-TO-DATE
> Task :react-native-image-colors:prepareReleaseArtProfile UP-TO-DATE
> Task :react-native-image-colors:processReleaseJavaRes NO-SOURCE
> Task :react-native-image-colors:mergeReleaseJavaResource UP-TO-DATE
> Task :react-native-image-colors:syncReleaseLibJars UP-TO-DATE
> Task :react-native-image-colors:writeReleaseAarMetadata UP-TO-DATE
> Task :react-native-image-colors:bundleReleaseLocalLintAar UP-TO-DATE
> Task :react-native-inappbrowser-reborn:preReleaseBuild UP-TO-DATE
> Task :react-native-inappbrowser-reborn:compileReleaseAidl NO-SOURCE
> Task :react-native-inappbrowser-reborn:mergeReleaseJniLibFolders UP-TO-DATE
> Task :react-native-inappbrowser-reborn:mergeReleaseNativeLibs NO-SOURCE
> Task :react-native-inappbrowser-reborn:stripReleaseDebugSymbols NO-SOURCE
> Task :react-native-inappbrowser-reborn:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :react-native-inappbrowser-reborn:compileReleaseRenderscript NO-SOURCE
> Task :react-native-inappbrowser-reborn:generateReleaseBuildConfig UP-TO-DATE
> Task :react-native-inappbrowser-reborn:generateReleaseResValues UP-TO-DATE
> Task :react-native-inappbrowser-reborn:generateReleaseResources UP-TO-DATE
> Task :react-native-inappbrowser-reborn:packageReleaseResources UP-TO-DATE
> Task :react-native-inappbrowser-reborn:parseReleaseLocalResources UP-TO-DATE
> Task :react-native-inappbrowser-reborn:processReleaseManifest UP-TO-DATE
> Task :react-native-inappbrowser-reborn:generateReleaseRFile UP-TO-DATE
> Task :react-native-inappbrowser-reborn:extractReleaseAnnotations UP-TO-DATE
> Task :react-native-inappbrowser-reborn:javaPreCompileRelease UP-TO-DATE
> Task :react-native-inappbrowser-reborn:compileReleaseJavaWithJavac UP-TO-DATE
> Task :react-native-inappbrowser-reborn:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :react-native-inappbrowser-reborn:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :react-native-inappbrowser-reborn:mergeReleaseShaders UP-TO-DATE
> Task :react-native-inappbrowser-reborn:compileReleaseShaders NO-SOURCE
> Task :react-native-inappbrowser-reborn:generateReleaseAssets UP-TO-DATE
> Task :react-native-inappbrowser-reborn:packageReleaseAssets UP-TO-DATE
> Task :react-native-inappbrowser-reborn:packageReleaseRenderscript NO-SOURCE
> Task :react-native-inappbrowser-reborn:prepareLintJarForPublish UP-TO-DATE
> Task :react-native-inappbrowser-reborn:prepareReleaseArtProfile UP-TO-DATE
> Task :react-native-inappbrowser-reborn:processReleaseJavaRes NO-SOURCE
> Task :react-native-inappbrowser-reborn:mergeReleaseJavaResource UP-TO-DATE
> Task :react-native-inappbrowser-reborn:syncReleaseLibJars UP-TO-DATE
> Task :react-native-inappbrowser-reborn:writeReleaseAarMetadata UP-TO-DATE
> Task :react-native-inappbrowser-reborn:bundleReleaseLocalLintAar UP-TO-DATE
> Task :react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a]

> Task :react-native-reanimated:buildCMakeRelWithDebInfo[arm64-v8a]
C/C++: ninja: Entering directory `C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-reanimated\android\.cxx\RelWithDebInfo\3g224r3o\arm64-v8a'
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here

> Task :react-native-reanimated:configureCMakeRelWithDebInfo[armeabi-v7a]

> Task :react-native-reanimated:buildCMakeRelWithDebInfo[armeabi-v7a]
C/C++: ninja: Entering directory `C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-reanimated\android\.cxx\RelWithDebInfo\3g224r3o\armeabi-v7a'
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here

> Task :react-native-reanimated:configureCMakeRelWithDebInfo[x86]

> Task :react-native-reanimated:buildCMakeRelWithDebInfo[x86]
C/C++: ninja: Entering directory `C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-reanimated\android\.cxx\RelWithDebInfo\3g224r3o\x86'
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here

> Task :react-native-reanimated:configureCMakeRelWithDebInfo[x86_64]

> Task :react-native-reanimated:buildCMakeRelWithDebInfo[x86_64]
C/C++: ninja: Entering directory `C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-reanimated\android\.cxx\RelWithDebInfo\3g224r3o\x86_64'
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here

> Task :react-native-reanimated:externalNativeBuildRelease
> Task :react-native-reanimated:mergeReleaseJniLibFolders UP-TO-DATE
> Task :react-native-reanimated:mergeReleaseNativeLibs UP-TO-DATE
> Task :react-native-reanimated:stripReleaseDebugSymbols UP-TO-DATE
> Task :react-native-reanimated:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE

> Task :react-native-reanimated:extractReleaseAnnotations
Execution optimizations have been disabled for task ':react-native-reanimated:extractReleaseAnnotations' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: 'C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-reanimated\android\src\main\java'. Reason: Task ':react-native-reanimated:extractReleaseAnnotations' uses this output of task ':react-native-reanimated:applyJavaPatches' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.

> Task :react-native-reanimated:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :react-native-reanimated:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :react-native-reanimated:mergeReleaseShaders UP-TO-DATE
> Task :react-native-reanimated:compileReleaseShaders NO-SOURCE
> Task :react-native-reanimated:generateReleaseAssets UP-TO-DATE
> Task :react-native-reanimated:packageReleaseAssets UP-TO-DATE
> Task :react-native-reanimated:prepareLintJarForPublish UP-TO-DATE
> Task :react-native-reanimated:prepareReleaseArtProfile UP-TO-DATE
> Task :react-native-reanimated:processReleaseJavaRes NO-SOURCE
> Task :react-native-reanimated:mergeReleaseJavaResource UP-TO-DATE
> Task :react-native-reanimated:syncReleaseLibJars UP-TO-DATE
> Task :react-native-reanimated:writeReleaseAarMetadata UP-TO-DATE
> Task :react-native-reanimated:bundleReleaseLocalLintAar UP-TO-DATE
> Task :react-native-restart:preReleaseBuild UP-TO-DATE
> Task :react-native-restart:compileReleaseAidl NO-SOURCE
> Task :react-native-restart:mergeReleaseJniLibFolders UP-TO-DATE
> Task :react-native-restart:mergeReleaseNativeLibs NO-SOURCE
> Task :react-native-restart:stripReleaseDebugSymbols NO-SOURCE
> Task :react-native-restart:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :react-native-restart:compileReleaseRenderscript NO-SOURCE
> Task :react-native-restart:generateReleaseBuildConfig UP-TO-DATE
> Task :react-native-restart:generateReleaseResValues UP-TO-DATE
> Task :react-native-restart:generateReleaseResources UP-TO-DATE
> Task :react-native-restart:packageReleaseResources UP-TO-DATE
> Task :react-native-restart:parseReleaseLocalResources UP-TO-DATE
> Task :react-native-restart:processReleaseManifest UP-TO-DATE
> Task :react-native-restart:generateReleaseRFile UP-TO-DATE
> Task :react-native-restart:extractReleaseAnnotations UP-TO-DATE
> Task :react-native-restart:javaPreCompileRelease UP-TO-DATE
> Task :react-native-restart:compileReleaseJavaWithJavac UP-TO-DATE
> Task :react-native-restart:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :react-native-restart:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :react-native-restart:mergeReleaseShaders UP-TO-DATE
> Task :react-native-restart:compileReleaseShaders NO-SOURCE
> Task :react-native-restart:generateReleaseAssets UP-TO-DATE
> Task :react-native-restart:packageReleaseAssets UP-TO-DATE
> Task :react-native-restart:packageReleaseRenderscript NO-SOURCE
> Task :react-native-restart:prepareLintJarForPublish UP-TO-DATE
> Task :react-native-restart:prepareReleaseArtProfile UP-TO-DATE
> Task :react-native-restart:processReleaseJavaRes NO-SOURCE
> Task :react-native-restart:mergeReleaseJavaResource UP-TO-DATE
> Task :react-native-restart:syncReleaseLibJars UP-TO-DATE
> Task :react-native-restart:writeReleaseAarMetadata UP-TO-DATE
> Task :react-native-restart:bundleReleaseLocalLintAar UP-TO-DATE
> Task :react-native-safe-area-context:preReleaseBuild UP-TO-DATE
> Task :react-native-safe-area-context:compileReleaseAidl NO-SOURCE
> Task :react-native-safe-area-context:mergeReleaseJniLibFolders UP-TO-DATE
> Task :react-native-safe-area-context:mergeReleaseNativeLibs NO-SOURCE
> Task :react-native-safe-area-context:stripReleaseDebugSymbols NO-SOURCE
> Task :react-native-safe-area-context:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :react-native-safe-area-context:compileReleaseRenderscript NO-SOURCE
> Task :react-native-safe-area-context:generateReleaseBuildConfig UP-TO-DATE
> Task :react-native-safe-area-context:generateReleaseResValues UP-TO-DATE
> Task :react-native-safe-area-context:generateReleaseResources UP-TO-DATE
> Task :react-native-safe-area-context:packageReleaseResources UP-TO-DATE
> Task :react-native-safe-area-context:parseReleaseLocalResources UP-TO-DATE
> Task :react-native-safe-area-context:processReleaseManifest UP-TO-DATE
> Task :react-native-safe-area-context:generateReleaseRFile UP-TO-DATE

> Task :react-native-safe-area-context:compileReleaseKotlin
w: C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native-safe-area-context\android\src\main\java\com\th3rdwave\safeareacontext\SafeAreaView.kt: (50, 23): 'getter for uiImplementation: UIImplementation!' is deprecated. Deprecated in Java

> Task :react-native-safe-area-context:extractReleaseAnnotations UP-TO-DATE
> Task :react-native-safe-area-context:javaPreCompileRelease UP-TO-DATE
> Task :react-native-safe-area-context:compileReleaseJavaWithJavac UP-TO-DATE
> Task :react-native-safe-area-context:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :react-native-safe-area-context:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :react-native-safe-area-context:mergeReleaseShaders UP-TO-DATE
> Task :react-native-safe-area-context:compileReleaseShaders NO-SOURCE
> Task :react-native-safe-area-context:generateReleaseAssets UP-TO-DATE
> Task :react-native-safe-area-context:packageReleaseAssets UP-TO-DATE
> Task :react-native-safe-area-context:packageReleaseRenderscript NO-SOURCE
> Task :react-native-safe-area-context:prepareLintJarForPublish UP-TO-DATE
> Task :react-native-safe-area-context:prepareReleaseArtProfile UP-TO-DATE
> Task :react-native-safe-area-context:processReleaseJavaRes NO-SOURCE
> Task :react-native-safe-area-context:mergeReleaseJavaResource UP-TO-DATE
> Task :react-native-safe-area-context:syncReleaseLibJars UP-TO-DATE
> Task :react-native-safe-area-context:writeReleaseAarMetadata UP-TO-DATE
> Task :react-native-safe-area-context:bundleReleaseLocalLintAar UP-TO-DATE
> Task :react-native-screens:preReleaseBuild UP-TO-DATE
> Task :react-native-screens:compileReleaseAidl NO-SOURCE
> Task :react-native-screens:mergeReleaseJniLibFolders UP-TO-DATE
> Task :react-native-screens:mergeReleaseNativeLibs NO-SOURCE
> Task :react-native-screens:stripReleaseDebugSymbols NO-SOURCE
> Task :react-native-screens:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :react-native-screens:compileReleaseRenderscript NO-SOURCE
> Task :react-native-screens:generateReleaseBuildConfig UP-TO-DATE
> Task :react-native-screens:generateReleaseResValues UP-TO-DATE
> Task :react-native-screens:generateReleaseResources UP-TO-DATE
> Task :react-native-screens:packageReleaseResources UP-TO-DATE
> Task :react-native-screens:parseReleaseLocalResources UP-TO-DATE
> Task :react-native-screens:processReleaseManifest UP-TO-DATE
> Task :react-native-screens:generateReleaseRFile UP-TO-DATE
> Task :react-native-screens:compileReleaseKotlin UP-TO-DATE
> Task :react-native-screens:extractReleaseAnnotations UP-TO-DATE
> Task :react-native-screens:javaPreCompileRelease UP-TO-DATE
> Task :react-native-screens:compileReleaseJavaWithJavac UP-TO-DATE
> Task :react-native-screens:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :react-native-screens:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :react-native-screens:mergeReleaseShaders UP-TO-DATE
> Task :react-native-screens:compileReleaseShaders NO-SOURCE
> Task :react-native-screens:generateReleaseAssets UP-TO-DATE
> Task :react-native-screens:packageReleaseAssets UP-TO-DATE
> Task :react-native-screens:packageReleaseRenderscript NO-SOURCE
> Task :react-native-screens:prepareLintJarForPublish UP-TO-DATE
> Task :react-native-screens:prepareReleaseArtProfile UP-TO-DATE
> Task :react-native-screens:processReleaseJavaRes NO-SOURCE
> Task :react-native-screens:mergeReleaseJavaResource UP-TO-DATE
> Task :react-native-screens:syncReleaseLibJars UP-TO-DATE
> Task :react-native-screens:writeReleaseAarMetadata UP-TO-DATE
> Task :react-native-screens:bundleReleaseLocalLintAar UP-TO-DATE
> Task :react-native-svg:preReleaseBuild UP-TO-DATE
> Task :react-native-svg:compileReleaseAidl NO-SOURCE
> Task :react-native-svg:mergeReleaseJniLibFolders UP-TO-DATE
> Task :react-native-svg:mergeReleaseNativeLibs NO-SOURCE
> Task :react-native-svg:stripReleaseDebugSymbols NO-SOURCE
> Task :react-native-svg:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :react-native-svg:compileReleaseRenderscript NO-SOURCE
> Task :react-native-svg:generateReleaseBuildConfig UP-TO-DATE
> Task :react-native-svg:generateReleaseResValues UP-TO-DATE
> Task :react-native-svg:generateReleaseResources UP-TO-DATE
> Task :react-native-svg:packageReleaseResources UP-TO-DATE
> Task :react-native-svg:parseReleaseLocalResources UP-TO-DATE
> Task :react-native-svg:processReleaseManifest UP-TO-DATE
> Task :react-native-svg:generateReleaseRFile UP-TO-DATE
> Task :react-native-svg:extractReleaseAnnotations UP-TO-DATE
> Task :react-native-svg:javaPreCompileRelease UP-TO-DATE
> Task :react-native-svg:compileReleaseJavaWithJavac UP-TO-DATE
> Task :react-native-svg:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :react-native-svg:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :react-native-svg:mergeReleaseShaders UP-TO-DATE
> Task :react-native-svg:compileReleaseShaders NO-SOURCE
> Task :react-native-svg:generateReleaseAssets UP-TO-DATE
> Task :react-native-svg:packageReleaseAssets UP-TO-DATE
> Task :react-native-svg:packageReleaseRenderscript NO-SOURCE
> Task :react-native-svg:prepareLintJarForPublish UP-TO-DATE
> Task :react-native-svg:prepareReleaseArtProfile UP-TO-DATE
> Task :react-native-svg:processReleaseJavaRes NO-SOURCE
> Task :react-native-svg:mergeReleaseJavaResource UP-TO-DATE
> Task :react-native-svg:syncReleaseLibJars UP-TO-DATE
> Task :react-native-svg:writeReleaseAarMetadata UP-TO-DATE
> Task :react-native-svg:bundleReleaseLocalLintAar UP-TO-DATE
> Task :react-native-vector-icons:preReleaseBuild UP-TO-DATE
> Task :react-native-vector-icons:compileReleaseAidl NO-SOURCE
> Task :react-native-vector-icons:mergeReleaseJniLibFolders UP-TO-DATE
> Task :react-native-vector-icons:mergeReleaseNativeLibs NO-SOURCE
> Task :react-native-vector-icons:stripReleaseDebugSymbols NO-SOURCE
> Task :react-native-vector-icons:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :react-native-vector-icons:compileReleaseRenderscript NO-SOURCE
> Task :react-native-vector-icons:generateReleaseBuildConfig UP-TO-DATE
> Task :react-native-vector-icons:generateReleaseResValues UP-TO-DATE
> Task :react-native-vector-icons:generateReleaseResources UP-TO-DATE
> Task :react-native-vector-icons:packageReleaseResources UP-TO-DATE
> Task :react-native-vector-icons:parseReleaseLocalResources UP-TO-DATE
> Task :react-native-vector-icons:processReleaseManifest UP-TO-DATE
> Task :react-native-vector-icons:generateReleaseRFile UP-TO-DATE
> Task :react-native-vector-icons:extractReleaseAnnotations UP-TO-DATE
> Task :react-native-vector-icons:javaPreCompileRelease UP-TO-DATE
> Task :react-native-vector-icons:compileReleaseJavaWithJavac UP-TO-DATE
> Task :react-native-vector-icons:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :react-native-vector-icons:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :react-native-vector-icons:mergeReleaseShaders UP-TO-DATE
> Task :react-native-vector-icons:compileReleaseShaders NO-SOURCE
> Task :react-native-vector-icons:generateReleaseAssets UP-TO-DATE
> Task :react-native-vector-icons:packageReleaseAssets UP-TO-DATE
> Task :react-native-vector-icons:packageReleaseRenderscript NO-SOURCE
> Task :react-native-vector-icons:prepareLintJarForPublish UP-TO-DATE
> Task :react-native-vector-icons:prepareReleaseArtProfile UP-TO-DATE
> Task :react-native-vector-icons:processReleaseJavaRes NO-SOURCE
> Task :react-native-vector-icons:mergeReleaseJavaResource UP-TO-DATE
> Task :react-native-vector-icons:syncReleaseLibJars UP-TO-DATE
> Task :react-native-vector-icons:writeReleaseAarMetadata UP-TO-DATE
> Task :react-native-vector-icons:bundleReleaseLocalLintAar UP-TO-DATE

> Task :app:bundleReleaseJsAndAssets
Execution optimizations have been disabled for task ':app:bundleReleaseJsAndAssets' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: 'C:\Users\Micah Lindley\Documents\Code\wasteofreact'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':react-native-async-storage_async-storage:bundleLibCompileToJarDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: 'C:\Users\Micah Lindley\Documents\Code\wasteofreact'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':react-native-async-storage_async-storage:bundleLibResDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.

- snipped duplicate CMake errors that aren't relevant -

warning: the transform cache was reset.
                Welcome to Metro v0.72.3
              Fast - Scalable - Integrated


info Writing bundle output to:, C:\Users\Micah Lindley\Documents\Code\wasteofreact\android\app\build\generated\assets\react\release\index.android.bundle
info Writing sourcemap output to:, C:\Users\Micah Lindley\Documents\Code\wasteofreact\android\app\build\intermediates\sourcemaps\react\release\index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 12 asset files
info Done copying assets

> Task :app:bundleReleaseJsAndAssets FAILED
:app:bundleReleaseJsAndAssets (Thread[Execution worker Thread 5,5,main]) completed. Took 34.898 secs.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Script 'C:\Users\Micah Lindley\Documents\Code\wasteofreact\node_modules\react-native\react.gradle' line: 286

* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
> Process 'command 'cmd'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org
* 
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.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/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

Execution optimizations have been disabled for 3 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
466 actionable tasks: 31 executed, 435 up-to-date

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Oct 6, 2022
@micahlt micahlt changed the title Cannot build when spaces are in directory path Gradle release build fails when spaces are in directory path Oct 6, 2022
@micahlt
Copy link
Author

micahlt commented Oct 15, 2022

Bumping this - any updates? I feel like this should be an easy thing to fix, but I'm not familiar with Gradle (which is where I believe the problem lies.

@cortinico
Copy link
Contributor

I feel like this should be an easy thing to fix

Nope it's not an easy fix.
For the time being I would suggest you move your project to a directory without spaces.

The problem is that it's failing inside the React Native CLI, most likely inside Metro. But I can't tell exactly from your stacktrace.
Feel free to send over a PR, I'm happy to review and merge it 👍

@micahlt
Copy link
Author

micahlt commented Oct 19, 2022

Gotcha. Thanks for your response. I look forward to this being solved in the future!

@sandisahdewo
Copy link

I'm also having the same issue.

@micahlt
Copy link
Author

micahlt commented Oct 25, 2022

Apparently this isn't high priority, even though it fully breaks RN on any modern Windows machine (since Windows Setup automatically creates a home folder with a space in it. The only solution is to create a new folder somewhere like C:\Code and build the project from there. You just have to set up the permissions correctly.

@cortinico
Copy link
Contributor

Apparently this isn't high priority, even though it fully breaks RN on any modern Windows machine (since Windows Setup automatically creates a home folder with a space in it

I understand that this is frustrating for you @micahlt but in this case there is a viable workaround which is the one suggested (also I can totally recommend to take the source code in your source root as Windows is not doing great at handling long paths). We have several other bugs/build issues on Windows that are not having a workaround.

Feel free to send a PR or do some investigation for this issue, it will be really appreciated.

@micahlt
Copy link
Author

micahlt commented Oct 28, 2022

Sorry if that comment sounded passive-agressive! I've already gotten my project to work in another folder on my machine. Just clarifying to @sandisahdewo that this issue isn't high priority. Thanks for your response to this issue!

@jrom20
Copy link

jrom20 commented Nov 20, 2022

Apparently this isn't high priority, even though it fully breaks RN on any modern Windows machine (since Windows Setup automatically creates a home folder with a space in it. The only solution is to create a new folder somewhere like C:\Code and build the project from there. You just have to set up the permissions correctly.

Thank you for posting this @micahlt... I almost give up on learning react native... changing the folder name works for me

@micahlt
Copy link
Author

micahlt commented Nov 20, 2022

Thank you for posting this @micahlt... I almost give up on learning react native... changing the folder name works for me

You're welcome! Best of luck with your continued learning. Hopefully someone will resolve this in the RN codebase soon!

@cortinico
Copy link
Contributor

Hopefully someone will resolve this in the RN codebase soon!

Also I'm happy to review a PR if someone has some spare time to look into this 👍

@shivenmian
Copy link
Contributor

I'm working on a fix. You can assign this to me.

@cortinico
Copy link
Contributor

@micahlt could you give it a try with 0.71.0-rc3 and check if this issue is resolved?

@micahlt
Copy link
Author

micahlt commented Dec 7, 2022

@micahlt could you give it a try with 0.71.0-rc3 and check if this issue is resolved?

Hopefully I'll have time to test it. I tried upgrading from 0.70.6 to 0.71.0-rc.3 with npx react-native upgrade and got a diff error, so I'll have to do the upgrade manually. It'll take a bit.

@kelset
Copy link
Contributor

kelset commented Dec 7, 2022

@micahlt can you try on a fresh new project first? npx react-native init RN0710RC3 --version 0.71.0-rc.3

@micahlt
Copy link
Author

micahlt commented Dec 8, 2022

Can confirm that a fresh project compiles and runs correctly! 🎉

@kelset kelset closed this as completed Dec 8, 2022
@cortinico cortinico added Resolution: Fixed A PR that fixes this issue has been merged. and removed Needs: Attention Issues where the author has responded to feedback. labels Dec 8, 2022
@micahlt
Copy link
Author

micahlt commented Dec 8, 2022

Whoops - looks like I spoke too soon. I just ran npm run android instead of npx react-native run-android --variant=release. Debug variant works, but trying to build a release is still broken.

@kelset kelset reopened this Dec 8, 2022
@kelset
Copy link
Contributor

kelset commented Dec 8, 2022

ok, reopening for now until we get some confirmation that release also works

@cortinico
Copy link
Contributor

but trying to build a release is still broken

I suspect that's a bug somewhere inside how we pass paths to metro. Can you share the full build log?

@micahlt
Copy link
Author

micahlt commented Dec 8, 2022

Output of npx react-native run-android --variant=release --verbose:

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
info Starting JS server...
* daemon not running; starting now at tcp:5037
* daemon started successfully
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
debug Running command "cd android && gradlew.bat app:installRelease -PreactNativeDevServerPort=8081"
Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused, use --status for details

> Task :app:createBundleReleaseJsAndAssets
warning: the transform cache was reset.
                Welcome to Metro v0.73.5
              Fast - Scalable - Integrated


info Writing bundle output to:, C:\Users\Micah Lindley\Documents\Code\RN0710RC3D\android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle
info Writing sourcemap output to:, C:\Users\Micah Lindley\Documents\Code\RN0710RC3D\android\app\build\intermediates\sourcemaps\react\release\index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 1 asset files
info Done copying assets

> Task :app:createBundleReleaseJsAndAssets FAILED
13 actionable tasks: 2 executed, 11 up-to-date
'C:\Users\Micah' is not recognized as an internal or external command,
operable program or batch file.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:createBundleReleaseJsAndAssets'.
> Process 'command 'cmd'' finished with non-zero exit value 1

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* 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 26s

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.bat app:installRelease -PreactNativeDevServerPort=8081
'C:\Users\Micah' is not recognized as an internal or external command,
* 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 26s

    at makeError (C:\Users\Micah Lindley\Documents\Code\RN0710RC3D\node_modules\execa\index.js:174:9)
    at C:\Users\Micah Lindley\Documents\Code\RN0710RC3D\node_modules\execa\index.js:278:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async runOnAllDevices (C:\Users\Micah Lindley\Documents\Code\RN0710RC3D\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
    at async Command.handleAction (C:\Users\Micah Lindley\Documents\Code\RN0710RC3D\node_modules\@react-native-community\cli\build\index.js:142:9)

@cortinico cortinico removed the Resolution: Fixed A PR that fixes this issue has been merged. label Dec 8, 2022
@cortinico
Copy link
Contributor

'C:\Users\Micah' is not recognized as an internal or external command,

I suspect the bug is here:

val detectedHermesCommand = detectOSAwareHermesCommand(root.get().asFile, hermesCommand.get())

The path of hermesc is truncated for you as there is a space in your path.
I believe that if you turn hermes off in your gradle.properties the build should be green 🤔

@micahlt
Copy link
Author

micahlt commented Dec 8, 2022

I'll attempt to do this. However, doesn't that mean the project won't have access to Hermes' performance improvements?

@kelset
Copy link
Contributor

kelset commented Dec 8, 2022

I think Nicola just want to verify that his suspicion is correct, not that it is a work around for you to use :)

@cortinico
Copy link
Contributor

I think Nicola just want to verify that his suspicion is correct, not that it is a work around for you to use :)

Yeah essentially this, as I don't have a Windows machine and I need one to reproduce/fix this bug.

@micahlt
Copy link
Author

micahlt commented Dec 8, 2022

I think Nicola just want to verify that his suspicion is correct, not that it is a work around for you to use :)

Gotcha, thanks for clarifying! I'll see if that fixes the issue.

@micahlt
Copy link
Author

micahlt commented Dec 8, 2022

@cortinico Your suspicions are correct. Setting hermesEnabled to false allows the app to build correctly. I'd be glad to help out with a fix, but I don't have experience with Kotlin. Any way I can assist?

@cortinico
Copy link
Contributor

I'll get back to this on Monday when I'll have access to my Windows machine to fix it.

@cortinico cortinico changed the title Gradle release build fails when spaces are in directory path [Windows] Gradle release build fails when spaces are in directory path Dec 12, 2022
@cortinico
Copy link
Contributor

I've spent some time on this and I'm not able to find a simple solution. We would need to properly escape the path for Windows only. This seems to be non trivial with Gradle.
I'm happy to review a PR if someone is willing to try to debug/solve this (I can provide codepointers if needed).

As this is happening only on Windows and only on Hermes and only inside folders that have a space in the path, I think this is not a release blocker (for .71).

I have the suspect this was broken even before.
I would appreciate if someone from Microsoft can take a look at this @mganandraj @kelset

@mganandraj
Copy link
Contributor

@cortinico, @kelset, @shivenmian is working on a fix ..
This issue brings back the topic of the recommended shell for RN development on Windows, as the escaping strategy differs between powershell and cmd (and others..) .. Ideally the fix should work across all the shells.

@ablack34
Copy link

ablack34 commented Feb 6, 2023

Hey, thanks for looking into this! Just to confirm the short-term work around for this is too disable Hermes or move the project to a path that has no spaces? Any further updates/developments on this?

@kelset
Copy link
Contributor

kelset commented Feb 6, 2023

haven't heard back from @shivenmian - I'll ping internally

@shivenmian
Copy link
Contributor

I have a fix for this issue - will send a PR today.

@micahlt
Copy link
Author

micahlt commented Feb 6, 2023

Hey, thanks for looking into this! Just to confirm the short-term work around for this is too disable Hermes or move the project to a path that has no spaces? Any further updates/developments on this?

Until the fix is merged, yes - moving the project to a location without spaces (I used C:\Users\Public\Documents) will fix the issue.

cortinico pushed a commit to cortinico/react-native that referenced this issue Feb 7, 2023
…36076)

Summary:
For Android release builds on Windows, gradle release build fails if there are spaces in path (facebook#34878). This is due to gradle improperly handling arguments with spaces (this is also [an open issue](gradle/gradle#6072) on Gradle). Since the Hermes compilation and other Gradle exec invocations involve arguments which will contain spaces (if there are spaces in your path), this also means it is hard to get around this by simply escaping the spaces (eg: by using double quotes), since these arguments are not properly handled by Gradle itself.

As a workaround, this PR uses relative paths for all Gradle commands invoked for Android. As long as there aren't any spaces in the react-native directory structure (i.e this repo), this fix should work.

## Changelog

[Android][Fixed] - Used relative paths for gradle commands

Pull Request resolved: facebook#36076

Test Plan: `npx react-native run-android` builds and runs the app successfully on Android device, when run inside an RN0711 project with a path containing spaces (and with the changes in this PR applied) on Windows. This includes release builds (i.e with the `--variant=release` flag).

Reviewed By: cipolleschi

Differential Revision: D43080177

Pulled By: cortinico

fbshipit-source-id: d245b2e92e1bd4cde8f12cdb2789913bdfee70a9
facebook-github-bot pushed a commit that referenced this issue Feb 7, 2023
Summary:
Pull Request resolved: #36080

For Android release builds on Windows, gradle release build fails if there are spaces in path (#34878). This is due to gradle improperly handling arguments with spaces (this is also [an open issue](gradle/gradle#6072) on Gradle). Since the Hermes compilation and other Gradle exec invocations involve arguments which will contain spaces (if there are spaces in your path), this also means it is hard to get around this by simply escaping the spaces (eg: by using double quotes), since these arguments are not properly handled by Gradle itself.

As a workaround, this PR uses relative paths for all Gradle commands invoked for Android. As long as there aren't any spaces in the react-native directory structure (i.e this repo), this fix should work.

## Changelog

[Android][Fixed] - Used relative paths for gradle commands

Pull Request resolved: #36076

Test Plan: `npx react-native run-android` builds and runs the app successfully on Android device, when run inside an RN0711 project with a path containing spaces (and with the changes in this PR applied) on Windows. This includes release builds (i.e with the `--variant=release` flag).

Reviewed By: cipolleschi

Differential Revision: D43080177

Pulled By: cortinico

fbshipit-source-id: 7625f3502af47e9b28c6fc7dfe1459d7c7f1362d
@cortinico
Copy link
Contributor

This has been fixed by @shivenmian here:

We'll ship it in the next version or point release for 0.71 👍

cipolleschi pushed a commit that referenced this issue Feb 13, 2023
Summary:
Pull Request resolved: #36080

For Android release builds on Windows, gradle release build fails if there are spaces in path (#34878). This is due to gradle improperly handling arguments with spaces (this is also [an open issue](gradle/gradle#6072) on Gradle). Since the Hermes compilation and other Gradle exec invocations involve arguments which will contain spaces (if there are spaces in your path), this also means it is hard to get around this by simply escaping the spaces (eg: by using double quotes), since these arguments are not properly handled by Gradle itself.

As a workaround, this PR uses relative paths for all Gradle commands invoked for Android. As long as there aren't any spaces in the react-native directory structure (i.e this repo), this fix should work.

## Changelog

[Android][Fixed] - Used relative paths for gradle commands

Pull Request resolved: #36076

Test Plan: `npx react-native run-android` builds and runs the app successfully on Android device, when run inside an RN0711 project with a path containing spaces (and with the changes in this PR applied) on Windows. This includes release builds (i.e with the `--variant=release` flag).

Reviewed By: cipolleschi

Differential Revision: D43080177

Pulled By: cortinico

fbshipit-source-id: 7625f3502af47e9b28c6fc7dfe1459d7c7f1362d
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this issue May 22, 2023
…36080)

Summary:
Pull Request resolved: facebook#36080

For Android release builds on Windows, gradle release build fails if there are spaces in path (facebook#34878). This is due to gradle improperly handling arguments with spaces (this is also [an open issue](gradle/gradle#6072) on Gradle). Since the Hermes compilation and other Gradle exec invocations involve arguments which will contain spaces (if there are spaces in your path), this also means it is hard to get around this by simply escaping the spaces (eg: by using double quotes), since these arguments are not properly handled by Gradle itself.

As a workaround, this PR uses relative paths for all Gradle commands invoked for Android. As long as there aren't any spaces in the react-native directory structure (i.e this repo), this fix should work.

## Changelog

[Android][Fixed] - Used relative paths for gradle commands

Pull Request resolved: facebook#36076

Test Plan: `npx react-native run-android` builds and runs the app successfully on Android device, when run inside an RN0711 project with a path containing spaces (and with the changes in this PR applied) on Windows. This includes release builds (i.e with the `--variant=release` flag).

Reviewed By: cipolleschi

Differential Revision: D43080177

Pulled By: cortinico

fbshipit-source-id: 7625f3502af47e9b28c6fc7dfe1459d7c7f1362d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants