Task :app:transformClassesWithMultidexlistForLive - android-gradle-plugin

Task :app:transformClassesWithMultidexlistForLive FAILED
Error in /app/multidex-config.pro:
Failed to read file: /app/multidex-config.pro
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForLive'.
com.android.build.api.transform.TransformException: Error while generating the main dex list.
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 20s
51 actionable tasks: 26 executed, 25 up-to-date

Related

when used sharedpreferences packge in yaml found error

Launching lib\main.dart on Redmi Note 7 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
Where:
Script 'C:\Users\DELL\Downloads\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\Users\DELL\Downloads\flutter\bin\flutter.bat'' 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.
Get more help at https://help.gradle.org
BUILD FAILED in 4s
Exception: Gradle task assembleDebug failed with exit code 1
what is the solution

Cannot run the app execution failed in react-native

FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:processDevelopmentDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
> Android resource linking failed
ERROR:C:\Hool\hoolers\Hoolapp\android\app\build\intermediates\incremental\developmentDebug\mergeDevelopmentDebugResources\merged.dir\values\values.xml:404: AAPT: error: resource drawable/rn_edit_text_material (aka com.hoolproject.beta:drawable/rn_edit_text_material) not found.
* 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
I am trying to run the react-native app, but it always shows ':app:processDevelopmentDebugResources'.
I tried all of the solutions in stackoverflow but it doesn't resolve
--stacktrace:
Configure project :app
Reading env from: .env
Configure project :react-native-reanimated
AAR for react-native-reanimated has been found
C:\Hool\hoolers\Hoolapp\node_modules\react-native-reanimated\android\react-native-reanimated-70-jsc.aar
FAILURE: Build failed with an exception.
What went wrong:
Task 'installDebug' is ambiguous in root project 'hool'. Candidates are: 'installBotDebug', 'installBotDebugAndroidTest', 'installDebugAndroidTest', 'installDevelopmentDebug', 'installDevelopmentDebugAndroidTest', 'installProductionDebug', 'installProductionDebugAndroidTest'.
Try:
Run gradlew tasks to get a list of available tasks.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Exception is:
org.gradle.execution.TaskSelectionException: Task 'installDebug' is ambiguous in root project 'hool'. Candidates are: 'installBotDebug', 'installBotDebugAndroidTest', 'installDebugAndroidTest', 'installDevelopmentDebug', 'installDevelopmentDebugAndroidTest', 'installProductionDebug', 'installProductionDebugAndroidTest'.
Thanks in advance!

android build failure for react native source code

I am building official react native cloned fro git hub and check out to version v0.69.6. But failed to build.
The official document doesn't help much, I don't know what is wrong.
1: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':ReactAndroid:prepareJSC' (type 'PrepareJSCTask').
- In plugin 'com.facebook.react' type 'com.facebook.react.tasks.internal.PrepareJSCTask' property 'jscPackagePath' doesn't have a configured value.
Reason: This property isn't marked as optional and no value has been configured.
Possible solutions:
1. Assign a value to 'jscPackagePath'.
2. Mark property 'jscPackagePath' as optional.
Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#value_not_set for more details about this problem.
* 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:
Execution failed for task ':packages:rn-tester:android:app:buildCodegenCLI'.
> Process 'command '/home/ANT.AMAZON.COM/chngang/opensource/react-native-dev/node_modules/react-native/node_modules/react-native-codegen/scripts/oss/build.sh'' finished with non-zero exit value 254
* 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 8s
19 actionable tasks: 7 executed, 12 up-to-date
Someone met the same issue with any solution

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':react-native-screens:compileDebugKotlin'

I'm working on a react native project and while trying to run, I'm getting this error, any idea as to what might be wrong
Task :react-native-screens:compileDebugKotlin FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':react-native-screens:compileDebugKotlin'.
Compilation error. See log for more details
Try:
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':react-native-screens:compileDebugKotlin'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecut...

Flutter Plugin Issue image_cropper and images_picker

How to use all Plugin together.
image_cropper: ^1.4.1
image_picker: ^0.8.2
images_picker: ^1.2.0
Something wrong in AndroidManifest.xml:49:17-73 Error:
D:\imagepiker\android\app\src\debug\AndroidManifest.xml:49:17-73 Error:
Attribute activity#com.yalantis.ucrop.UCropActivity#theme value=(#style/Theme.AppCompat.Light.NoActionBar) from AndroidManifest.xml:49:17-73
is also present at [com.github.LuckSiege.PictureSelector:picture_library:v2.6.1] AndroidManifest.xml:66:13-58 value=(#style/Base.Theme.NoActionBar).
Suggestion: add 'tools:replace="android:theme"' to <activity> element at AndroidManifest.xml to override.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed with multiple errors, see logs
* 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 3s