Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29618

APK failing to build release because of bundleReleaseJsAndAssets

$
0
0

Running ./gradlew AssembleRelease or trying to generate a signed release APK via Android Studio both throw error in npx.cmd on bundleReleaseJsAndAssets, bolded in code below.

Have tried enabling and disabling Hermes, cleaning, stopping daemons and rebuilding the project over 10 times from Android Studio, VS Code, and from an Admin Powershell. Running the app in debug mode in an emulator works fine.

Task :app:bundleReleaseJsAndAssets warning: the transform cache was reset. Loading dependency graph, done. info Writing bundle output to:, C:\Users\juan.castelli\Desktop\master info Writing sourcemap output to:, C:\Users\juan.castelli\Desktop\master info Done writing bundle output info Done writing sourcemap output info Copying 34 asset files error EEXIST: file already exists, mkdir 'C:\Users\juan.castelli\Desktop\master'. Run CLI with --verbose flag for more details. Error: EEXIST: file already exists, mkdir 'C:\Users\juan.castelli\Desktop\master' Task :app:bundleReleaseJsAndAssets FAILED FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:bundleReleaseJsAndAssets'. Process 'command 'npx.cmd'' finished with non-zero exit value 1 BUILD FAILED in 1m 58s 151 actionable tasks: 2 executed, 149 up-to-date

Several tasks from the npm packages give NO-SOURCE for each of these tasks: compileReleaseRenderscript, packageReleaseRenderscript, compileReleaseAidl, but I am not sure what that means.

Thank you in advance.


Viewing all articles
Browse latest Browse all 29618

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>