Using the guide https://www.youtube.com/watch?v=7RHYDNSRSOs I want to deploy the application to Heroku. However, git push heroku master throws an error:
:compileJava NO-SOURCE
:processResources NO-SOURCE
:classes UP-TO-DATE
:findMainClass
:jar
:bootRepackage FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bootRepackage'.
> Unable to find main class
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 15.555 secs
! ERROR: Failed to run Gradle!
We're sorry this build is failing. If you can't find the issue in application
code, please submit a ticket so we can help: https://help.heroku.com
You can also try reverting to the previous version of the buildpack by running:
$ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-gradle#previous-version
Thanks,
Heroku
! Push rejected, failed to compile Gradle app.
! Push failed
The project normally works during compilation in IntelliJ. They work without a problem.
Related
I am currently working on Hyperskill (JetBrains academy) on Java Backend Developer track. Every project that I try to check from the Intellij Idea IDE gives me this error:
Failed to launch checking
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':Simple_Search_Engine-task:compileTestJava'.
Could not resolve all files for configuration ':Simple_Search_Engine-task:testCompileClasspath'.
Could not find com.github.hyperskill:hs-test:release-SNAPSHOT.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/github/hyperskill/hs-test/release-SNAPSHOT/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/github/hyperskill/hs-test/release-SNAPSHOT/hs-test-release-SNAPSHOT.pom
- https://jitpack.io/com/github/hyperskill/hs-test/release-SNAPSHOT/maven-metadata.xml
- https://jitpack.io/com/github/hyperskill/hs-test/release-SNAPSHOT/hs-test-release-v8-g6845035-132.pom
Required by:
project :Simple_Search_Engine-task
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
Task :Simple_Search_Engine-task:compileJava UP-TO-DATE
Task :Simple_Search_Engine-task:processResources NO-SOURCE
Task :Simple_Search_Engine-task:classes UP-TO-DATE
Task :util:compileJava NO-SOURCE
Task :util:processResources NO-SOURCE
Task :util:classes UP-TO-DATE
Task :util:compileTestJava NO-SOURCE
Task :util:processTestResources NO-SOURCE
Task :util:testClasses UP-TO-DATE
Task :Simple_Search_Engine-task:compileTestJava FAILED
2 actionable tasks: 1 executed, 1 up-to-date
My project: https://drive.google.com/drive/folders/1xEV47YXdkVRUfB0JPSEkmcPtBbb5rbvJ?usp=sharing
Project from hyperskill: https://hyperskill.org/projects/66?track=12
I tried reinstalling the IDE or changing the project that I am working but the same errors. When I am uploading the solve directly on hyperskill website it works perfectly fine.
Here is also a video if it is more helpful: https://youtu.be/nvrpHuVq44A
Please help me! :D
Go to the build.gradle file for this project and replace the following line:
'com.github.hyperskill:hs-test:release-SNAPSHOT'
With
'com.github.hyperskill:hs-test:master-SNAPSHOT'
It seems that the release branch has an error, so change it to master.
Then, open up IntelliJ and restart Gradle.
Could you please select JDK 17 as Gradle JVM in Settings/Preferences | Build, Execution, Deployment | Build Tools | Gradle?
After that, please ensure that JDK 17 is selected as Project SDK in File | Project Structure.
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 870 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
daemon not running; starting now at tcp:5037
daemon started successfully
info Installing the app...
Starting a Gradle Daemon, 1 busy and 1 incompatible Daemons could not be reused, use --status for details
Task :app:compileDebugJavaWithJavac
Task :app:mergeDebugNativeLibs FAILED
28 actionable tasks: 5 executed, 23 up-to-date
Note: D:\working-projects\TestProject\android\app\src\debug\java\com\testproject\ReactNativeFlipper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
java.io.IOException: Data error (cyclic redundancy check)
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 1m 25s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Note: D:\working-projects\TestProject\android\app\src\debug\java\com\testproject\ReactNativeFlipper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
java.io.IOException: Data error (cyclic redundancy check)
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 1m 25s
at makeError (D:\working-projects\TestProject\node_modules\#react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at D:\working-projects\TestProject\node_modules\#react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (D:\working-projects\TestProject\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (D:\working-projects\TestProject\node_modules\#react-native-community\cli\build\index.js:192:9)
info Run CLI with --verbose flag for more details.
Have been facing this issue all of a sudden
I have reinstalled the whole setup again for react native but still getting this same error. Getting no clues as to what is the exact issue.. All help appreciated..
I finally managed to get it working ... the issue was of bad sectors on HDD ... just ran chkdsk /f/r and everything started to work fine after its completion
I'm trying to create my APK app but it fails and prints this error in android studio terminal:
C:\flutter\bin\flutter.bat --no-color build apk
You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64.
If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size.
To generate an app bundle, run:
flutter build appbundle --target-platform android-arm,android-arm64,android-x64
Learn more on: https://developer.android.com/guide/app-bundle
To split the APKs per ABI, run:
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
Learn more on: https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
Running Gradle task 'assembleRelease'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.
> Failed to transform libs.jar to match attributes {artifactType=processed-jar, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: E:\flutter\2021\my_flutter_app\build\app\intermediates\flutter\debug\libs.jar.
> Transform's input file does not exist: E:\flutter\2021\my_flutter_app\build\app\intermediates\flutter\debug\libs.jar. (See https://issuetracker.google.com/issues/158753935)
* 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 9m 19s
Running Gradle task 'assembleRelease'... 562.4s (!)
Gradle task assembleRelease failed with exit code 1
Process finished with exit code 1
in the debugging mode the app work!!
I hope you can help me with the solution to fix the error
I'm trying to run react-native on Ubunty 16.04..When I go to my project folder and type
react-native run-android
I'm getting the following error
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not create an instance of type com.sun.tools.javac.api.JavacTool.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Please help me solve this issue
I've followed build instructions from here:
https://boofcv.org/index.php?title=Tutorial_Camera_Calibration
and get this strange error message:
C:\boofcv\applications>gradle applicationsJar
Skipping integration/android because ANDROID_HOME has not been set! See integration/android/readme.txt
Skipping integration/boofcv-openkinect because boofcv-openkinect/libfreenect is missing! See integration/openkinect/readme.txt
Parallel execution is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
Failed to capture snapshot of input files for task ':applications:applicationsJar' property 'rootSpec$1$1$2$1' during up-to-date check.
> A Jar can only accept a file or directory that exists: C:\boofcv\applications\build\osgi-classes
* 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 10s
38 actionable tasks: 10 executed, 28 up-to-date
my boofcv version is 0.27.