We have acceptance tests that use gradle build with the following configuration:
webdriverBinaries {
chromedriver chromeDriverVersion
geckodriver geckoDriverVersion
}
where:
chromeDriverVersion = '95.0.4638.17'
gebVersion = '5.1'
geckoDriverVersion = '0.30.0'
Starting it under Mac Intel Architecture works fine. But under ARM (Apple M1 Chip) I am getting following error:
Execution failed for task ':configureChromeDriverBinary'.
> java.lang.reflect.InvocationTargetException
* 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.
Is there any way to fix it?
Related
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
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!
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
i know some intermediate Java, but i wanted to start learning kotlin
i want to use intellj or android studio but they both show the same error...
Could not open init generic class cache for initialization script 'C:\Users\triim\AppData\Local\Temp\wrapper_init3.gradle' (C:\Users\triim.gradle\caches\7.1\scripts\a3km84diab7o92uj57csy2v6x).
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 61
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.
**
Input:
C:\Users\Irvin\Desktop\Robotium\gradlew.bat -Dorg.gradle.daemon=true
assembleDebugAndroidTest -u -b
C:\Users\Irvin\Desktop\Robotium\executorproject\build.gradle
Output:
FAILURE: Build failed with an exception. * What went wrong: A
problem occurred configuring root project 'executorproject'. > Failed
to notify project evaluation listener. >
com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)V
* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. * Get more help at https://help.gradle.org BUILD FAILED in 2s
What actually went wrong here ? I still cant figure it out for 3 days.