Build log:
:volley:javadoc
FAILURE: Build failed with an exception.
What went wrong:
Failed to capture snapshot of input files for task 'javadoc' during up-to-date check. See stacktrace for details.
Could not normalize path for file 'C:\Users\JC\AppData\Local\Android\sdk\platforms\android-23\android.jar;C:\Users\JC\AppData\Local\Android\sdk\platforms\android-23\optional\org.apache.http.legacy.jar'.
This issue is occurring only on windows. With the same setup build goes fine on mac.
Please help.
Try to update your Android SDK to api v23
Removed volley project, its dependencies in settings.gradle and build.gradle
Removed apache http legacy jar dependency
Added http://mvnrepository.com/artifact/com.mcxiaoke.volley/library/1.0.0 this jar in my build dependencies.
This built my project fine. However, its not the official volley jar.
Related
java vscode doesn't work well with multi-project layout gradle project. I can simply reproduce this with the sample project generated by gradle init.
The error msg looks like some building task dependency issues: Cannot use Gradle object after build has finished
I've described the issue here https://github.com/redhat-developer/vscode-java/issues/1984
Just want see if anyone have met such issue before and any idea for a workaround?
I create a demo gradle project by Spring Initializr Java Support, with build.gradle and settings.gradle generated automatically, so when i run gradle init, it would throw > Task :init SKIPPED because settings file and build file already existed.
After i delete them manually, gradle init could be executed successfully and re-generate build.gradle and settings.gradle:
I've noticed the comment below your github issue:
This issue seems similar to another one I'm seeing with eclipse
buildship, so most likely it's an issue happening in latest gradle
version
And I'm using Gradle 7.0.2, there's no error shown. You may have a try.
I'm new to Jenkins. I want to build apk using Jenkins but it failed due to this error:
What went wrong:
Could not determine the dependencies of task ':app:compileReleaseJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'.
Could not resolve project :library.
Required by:
project :app
Unable to find a matching configuration of project :library: None of the consumable configurations have attributes.
I'm always getting this error whenever I set/specify the task at Invoke Gradle on Build section.
screenshot of Invoke Gradle fields
When I empty that "Task" field, the build status will SUCCESS but there's no build file stored on my workspace.
Fyi, I'm using:
Windows 10,
Gradle 4.1.,
JDK 8u152
Thanks!
Update:
I just notice that this error (exactly same) also happens on my Android Studio.
#bongo
This is the contents of my root folder:
contents of root folder
I am trying to build the Java project located at here: https://github.com/garlicPasta/dotServer
I'm new to Gradle. I downloaded the latest Gradle now (v4.0). I added the bin folder of Gradle (which includes gradle.bat) to the path so I can run gradle command everywhere. Looks like the project requires Google protobuf which it downloads automatically. But when I start the command gradle build, I get the following error:
> Configure project :
You are using Gradle 4.0: This version of the protobuf plugin works with Gradle version 2.12+
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'dotServer'.
> No signature of method: org.gradle.api.internal.tasks.DefaultTaskInputs.source() is applicable for argument types: (com.google.protobuf.gradle.ProtobufSourceDirectorySet_Decorated) values: [main Proto source]
Possible solutions: collect(), use([Ljava.lang.Object;)
Where is the problem coming from? Can someone try to build the project and let me know?
I just upgraded to Android Studio 3 and had the same problem when I upgrade Gradle and it's plugin.
We use Google's Protobuf which was included in build.gradle with version 0.7.6. I just changed to 0.8.3 and it builds now.
buildscript {
...
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
}
}
I am using android studio 2.1.3. I am getting the following error, in spite of clearing the project and rebuilding it again, restarting etc... How to solve it?
Error:Execution failed for task :app:transformClassesWithJavaResourcesVerifierForDebug.
org.gradle.api.internal.changedetection.rules.DescriptiveChange cannot be cast to org.gradle.api.tasks.incremental.InputFileDetails
ay be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Thanks.
I am using Windows 8.1
I tried deleting the folder .gradle in the application folder. Then I cleaned the project and build it again. IT WORKS FINE NOW.
Have you cleaned your project through terminal ?
If not use ./gradlew clean this from root project.
Also check your gradle files, Is everything is up-to-date and correctly written there. Check for dependencies also.
I have been using maven for project management and have no idea on running gradle. This is the Uber Java sdk which uses Gradle for build purposes.
https://github.com/uber/rides-java-sdk
Until now I had been using the SDK by adding the following artifact to my pom.xml file:
<dependency>
<groupId>com.uber.sdk</groupId>
<artifactId>rides</artifactId>
<version>0.2.0</version>
</dependency>
The last version which was officially released was 0.2.0. Since then, support for getting ride receipts has been added which can be seen in the source code. I need to fetch ride receipts and hence require the latest changes.
It seems the build.gradle file has a line "apply plugin: 'maven'" which should add the project to my local maven repo. However, when I run
gradle install, I get the following error:
Failed to notify task execution listener.
Changelog must be updated with v{0.2.1} before release. Please check /home/user/projects/rides-java-sdk-master/CHANGELOG.md
How do I rectify this error and get the latest build in my local maven repo?
After I changed the CHANGELOG.md file to begin with V0.2.1, I get the following error:
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':install'.
Could not publish configuration 'archives'
Cannot publish artifact 'rides-java-sdk-master.zip (com.uber.sdk:rides-java-sdk-master:0.2.1)'
(/home/nikhar/projects/rides-java-sdk-master/build/distributions/rides-java-sdk-master-0.2.1.zip)
as it does not exist.
You shouldn't need to fork the repo, build it, or install the pom locally to get the latest chnages. Just referencing the artifact from maven central (ie https://mvnrepository.com/artifact/com.uber.sdk/rides/0.2.0) should work.