I am trying to build a production version .aab file of an android application, using react-native and expo.
When I launch gradlew bundleRelease (in Windows) in the android/ folder, the exact error message is as follows:
> Task :app:signReleaseBundle FAILED
Caching disabled for task ':app:signReleaseBundle' because:
Build cache is disabled
Task ':app:signReleaseBundle' is not up-to-date because:
Task has failed previously.
:app:signReleaseBundle (Thread[Execution worker,5,main]) completed. Took 0.014 secs.
w: Detected multiple Kotlin daemon sessions at build\kotlin\sessions
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:signReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable
> java.lang.NullPointerException (no error message)
I added org.gradle.jvmargs=-Xmx4608m to my gradle.properties file but that does not seem to have any effect...
Related
I'm executing cordova build -d but keep getting this error at 94% complete:
Here's a screenshot of the MacOs terminal error
Here's a partial transcription of the screenshot:
* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> Too many zip entries 236220 (MAX=65535)
I haven't been able to find any info about this online. Does anyone have any ideas how to resolve?
I tried gradle clean then gradle build, increasing org.gradle.jvmargs size, and updating from gradle 7.6 to 8.
Hello i recently got this error while running npx react-native run-android --variant=release --no-jetifier
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageRelease'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> com.android.ide.common.signing.KeytoolException: Failed to read key my-key from store "/Users/ad8kunle/Documents/react-native-projects/mvmarket/android/app/my-upload-key.keystore": Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available
It used to work fine, not sure what went wrong. Debug version runs fine.
GRADLE 7.3.3
REACT - NATIVE 8.6.0
I'm trying to install react-native-async-storage/async-storage to my project but I can't. I tried to install with yarn but I got Execution failed for task ':app:mergeLibDexDebug'. error and I can't install with npm.
Execution failed for task ':app:mergeLibDexDebug'.
A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingTaskDelegate
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:desugarDebugFileDependencies'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Error while dexing.
I think there is a conflict when upgrading to the new desugar version (V2.0.0 in my case). I just deleted all the desugar folders in:
..\ProjectFolder\app\build\intermediates
The app then built properly.
GitHub action build failed with the below exception
> Task :app:spotlessKotlinCheck FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:spotlessKotlinCheck'.
The following files had format violations:
app/src/androidTest/java/com/example/androiddevchallenge/ExampleInstrumentedTest.kt
While I running this locally
./gradlew :app:spotlessKotlinCheck
It shows build success.
How to fix this?