so I'm trying to compile my gradle project, and am using intellij. I keep getting this error on compilation
Execution failed for task ':Main.main()'.
> Process 'command 'C:/Program Files/AdoptOpenJDK/jdk-15.0.2.7-hotspot/bin/java.exe'' 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.
And I have tried clearing cache and re-starting but nothing seems to work. Here is the class that is throwing this error.
It worked when I had one system tray menu item, and when I added the about one it stopped working. I tried reverting it but still got the same error. Really confused.
Thanks in advance
Check your project path to make sure it's not under the 'Downloads' directory.
Related
I am trying to follow directions on how to build the necessary jars on https://github.com/kaleido-io/kaleido-corda-samples/blob/master/README.md but I am met with the following messages:
C:\Windows\System32>d:
D:\>cd D:\gradle-6.7.1
D:\gradle-6.7.1>Gradle buildAll
FAILURE: Build failed with an exception.
* What went wrong:
Task 'buildAll' not found in root project 'gradle-6.7.1'.
* Try:
Run gradle tasks to get a list of available tasks. 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 791ms
"D:\gradle-6.7.1" is the directory of my Gradle folder.
If I understand correctly, I need to create a root project first but I don't know how to do that.
I'm using VS code without Android studio in Ubuntu 20.04. While running the first app in flutter in debugging mode in an real device produced this error given below. I also tried to change my JDK version but it didn't worked.
Launching lib/main.dart on Nokia 6 1 Plus in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
* 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 12s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 18.3s
Exception: Gradle task assembleDebug failed with exit code 1
Please suggest a solution!
Your gradle sync has failed for some reason.
Do this
File > Open
Navigate to your project
You will see an android folder there open that as project in a new window
Check the gradle sync issues and resolve those
by running gradlew run on Window 10 The following error is displayed in the terminal :
> Task :storage:run FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':storage:run'.
> A problem occurred starting process 'command 'C:\Program Files\AdoptOpenJDK\jdk-11.0.6.10-hotspot\bin\java.exe''
* 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 1s
2 actionable tasks: 1 executed, 1 up-to-date
Any suggestion is welcome
Not really sure what just happened; but for me, working in a spring-boot project, changing Shorten command line option in Run/Debug Configurations to JAR manifest from none solved the issue.
I am making a nativescript app and want to add a carousel by using nativescript-ng2-carousel but after I did npm i nativescript-ng2-carousel I get an error saying
Warning: there already is an extend called com.tns.NativeScriptActivity.
Warning: there already is an extend called com.tns.FragmentClass.
Exception in thread "main" java.io.IOException: File already exists. This may lead to undesired behavior.
Please change the name of one of the extended classes.
File:D:\Documents\coursera_examples\nativescript\VilcabambaHotel\platforms\android\app\src\main\java\com\tns\gen\java\lang\Object_button_19_32_ClickListenerImpl.java Class:
at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:81)
at org.nativescript.staticbindinggenerator.Main.main(Main.java:47)
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:runSbg'.
Process 'command 'C:\Program Files\Android\Android Studio\jre\bin\java.exe'' 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 10s
Command gradlew.bat failed with exit code 1
I have tried updating my typescript, I have deleted node_modules and reinstalled, I have removed and added platforms and still get the same error
So I opened my app the next day and it said this error.
* What went wrong:
Execution failed for task ':app:prepareComAndroidSupportAppcompatV72510Library'.
Could not expand ZIP 'C:\Users\Jenna\AppData\Local\Android\sdk\extras\android\m2repository\com\android\support\appcompat-v7\25.1.0\appcompat-v7-25.1.0.aar'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I'm not exactly sure what this error means and I didn't change anything about the file (to my knowledge). If anyone could help with a step by step way to fix this, that would be greatly appreciated.