React Native Execution failed for task ':app:mergeLibDexDebug' - android

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

Related

build of gradlew bundleRelease fails, "no error message"

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

React-native fails to sign release build

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

Execution failed for task app:desugarDebugFileDependencies

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.

Why i am getting this issue Flutter Upi Package Build Error

Execution failed for task ':upi_pay:compileDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

Execution failed for task ':app:processDebugResources'. react-native

There is an error while run project on windows for android. Everything was good but I installed react-natigation and react-native-gesture-handler#~1.0.14 than I started project with react-native run-android command.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Could not read path 'D:\ProjectFolder\android\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\androidx\lifecycle'.
I solved my problem. If somebody need this, remove react-navigation and install #react-navigation/native

Categories

Resources