Please provide all the information requested. Issues that do not follow this format are likely to stall.
> Task :app:bundleOrgReleaseJsAndAssets FAILED
FAILURE: Build failed with an exception.
* Where:
Script '/Users/tapani/projects/org/app/node_modules/react-native/react.gradle' line: 165
* What went wrong:
Execution failed for task ':app:bundleOrgReleaseJsAndAssets'.
> react_c6fqktz01lbn92un4jk0a399q$_run_closure4$_closure6$_closure7$_closure12$_closure13
System:
OS: macOS 10.15.4
CPU: (4) x64 Intel(R) Core(TM) i7-6567U CPU @ 3.30GHz
Memory: 495.52 MB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.16.2 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 28, 29
Build Tools: 21.1.1, 21.1.2, 22.0.0, 22.0.1, 23.0.1, 23.0.2, 23.0.3, 24.0.1, 25.0.0, 25.0.2, 25.0.3, 26.0.0, 26.0.2, 27.0.3, 28.0.0, 28.0.2, 28.0.3, 29.0.2
Android NDK: Not Found
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6241897
Xcode: 11.4.1/11E503a - /usr/bin/xcodebuild
Languages:
Python: 2.7.17 - /usr/local/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
*react-native*: Not Found
Provide a detailed list of steps that reproduce the issue.
cd android && ./gradlew assembleOrgRelease && cd -An APK is created.
Adding --scan parameter to the gradle command makes the build succeed. --info or --debug do not show any errors and the build fails with them.
Plugins from the Gradle scan:
android 3.5.3 External 1 use com.android.build.gradle.AppPlugin
android-library 3.5.3 External 15 uses com.android.build.gradle.LibraryPlugin
com.android.base 3.5.3 External 16 uses com.android.build.gradle.api.AndroidBasePlugin
com.github.ben-manes.versions 0.28.0 External 1 use com.github.benmanes.gradle.versions.VersionsPlugin
com.google.firebase.crashlytics 2.0.0-beta04 External 1 use com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsPlugin
com.google.gms.google-services 4.3.3 External 1 use com.google.gms.googleservices.GoogleServicesPlugin
com.gradle.enterprise 3.1.1 External 1 use com.gradle.enterprise.gradleplugin.GradleEnterprisePlugin
org.jetbrains.kotlin.android 1.3.72 External 2 uses org.jetbrains.kotlin.gradle.plugin.KotlinAndroidPluginWrapper
org.jetbrains.kotlin.android.extensions 1.3.72 External 1 use org.jetbrains.kotlin.gradle.internal.AndroidExtensionsSubpluginIndicator
base - Gradle 16 uses org.gradle.api.plugins.BasePlugin
build-init - Gradle 18 uses org.gradle.buildinit.plugins.BuildInitPlugin
help-tasks - Gradle 18 uses org.gradle.api.plugins.HelpTasksPlugin
java-base - Gradle 16 uses org.gradle.api.plugins.JavaBasePlugin
lifecycle-base - Gradle 16 uses org.gradle.language.base.plugins.LifecycleBasePlugin
maven - Gradle 2 uses org.gradle.api.plugins.MavenPlugin
reporting-base - Gradle 16 uses org.gradle.api.plugins.ReportingBasePlugin
wrapper - Gradle 18 uses org.gradle.buildinit.plugins.WrapperPlugin
| :warning: | Missing Reproducible Example |
|---|---|
| :information_source: | It looks like your issue is missing a reproducible example. Please provide a Snack or a repository that demonstrates the issue you are reporting in a minimal, complete, and reproducible manner. |
Hi @tapz could you create a minimal repro with the latest template? It would help to get an isolated understanding to investigate the problem.
When running one plugin I got this message:
Failed to notify build listener.
* What went wrong:
Failed to notify build listener.
> build_a921r4bw2gvi4k4bjauly2b48$_run_closure2$_closure10
> fonts_8g8t0jzyuorsl2jjycistnsvz$_run_closure1$_closure2
Now it started to give this with react-native run-android too. And since I can't pass the --scan argument to gradlew, there is no workaround.
Error: Command failed: ./gradlew app:installXXXDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* Where:
Script '/Users/tapani/projects/xxx/xxxapp/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 128
* What went wrong:
Execution failed for task ':app:generatePackageList'.
> ReactNativeModules$_generatePackagesFile_closure3
Any chance this got attention? I'm struggling with the exact same issue:
Cause: react_18grxeqkidx3smppn0lsre3n5$_run_closure4$_closure6$_closure10$_closure18
Now it started to give this with
react-native run-androidtoo. And since I can't pass the --scan argument to gradlew, there is no workaround.Error: Command failed: ./gradlew app:installXXXDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * Where: Script '/Users/tapani/projects/xxx/xxxapp/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 128 * What went wrong: Execution failed for task ':app:generatePackageList'. > ReactNativeModules$_generatePackagesFile_closure3
use cd android && ./gradlew app:installDebug -PreactNativeDevServerPort=8081 --scan .
this worked for me.
I am using Android Studio and restarting Android Studio fixed for me.
In my case, it was caused by these packagingOptions
android {
...
packagingOptions {
pickFirst 'lib/x86/libjsc.so'
pickFirst 'lib/x86_64/libjsc.so'
pickFirst 'lib/armeabi-v7a/libjsc.so'
pickFirst 'lib/arm64-v8a/libjsc.so'
}
}
I was able to remove it and it still works fine for me.
Most helpful comment
Any chance this got attention? I'm struggling with the exact same issue:
Cause: react_18grxeqkidx3smppn0lsre3n5$_run_closure4$_closure6$_closure10$_closure18