Gradle project refresh failed (AS 0.5.5) - android

I have no idea what on earth is wrong, the project was working fine till I merged code from co-developer:
Cause: org.gradle.plugins.ide.internal.IdeDependenciesExtractor.extractRepoFileDependencies(Lorg/gradle/api/artifacts/ConfigurationContainer;Ljava/util/Collection;Ljava/util/Collection;ZZ)Ljava/util/List;
Gradle settings

Resolved the issue by upgrading to Android Studio beta version

Related

Gradle Sync Failed :No Such Property:Gradle Version For class:JetGradlePlugin

I had Tried various ways to resolve the issue that are given by the people on the same questions been asked in past,but that is realted to the intellij idea
I had tried below ways ,but it didn't worked for me -_-
* deleted the .gradle file and then agained opened the project(in hope that android studio automatically would installed the needed version of the gradle)
changed the gradle version and have done trial and error but didn't worked.
My original version of the Gradle and Android PLugin version are has shown below in the picture.
My version of the android studio that I had installed is 3.0.1
Pls someone help
Thank You
Hey Guys ,I got the answer ,all and only we have to do is go to project structure in android studio and then go to project and then change your gradle version to 4.1 and android plugin version to 3.0.1
Click OK
And see the magic 😊

Data binding with errror dataBindingArtifactOutputDir

I have a weird problem when building my app.
Cannot write to file
'myapp/app/build/intermediates/data-binding/dev/debug/bundle-bin'
specified for property 'dataBindingArtifactOutputDir' as it is a
directory.
It 's weird because when I clean project, I can build app. But when building app the second time, the above error happens. If I want to build app, must clean app.
I also set
dataBinding {
enabled true
}
Thanks for any support!
I really found the problems. I took me 1 day. I updated the gradle plugin and Android Studio to the newest version. And this is the reason why.
The newest gradle build tool is 3.4.1, it use the gradle version 5.1.1. When I downgrade the gradle build tool to 3.1.4 as my old project, and clean build app again error still happens. I think this way did not work but this is problem of Android Studio, it did not change the gradle version in gradle/wrapper/gradle-wrapper.properties. I manually update to old gradle version
distributionUrl=https://services.gradle.org/distributions/gradle-4.4-all.zip
It works now luckily. Everytime Android Studio updates, the weird problems happens again. Expect everything will work well in the future. :|

Error: Execution failed for task ':app:packageDebug'

I am using Android Studio 2.1.1 and many times at Gradle building it gives me below message.
Can anybody help me with it! I think there some memory issue in Android Studio.
Error:Execution failed for task ':app:packageDebug'.
> value (119282) > 0x0000ffff
And after restart, it works perfect. It's strange because in previous version 1.5.0 this issue has never occur to me.
It's a bug in latest android Studio Build,
For Windows, Kill "OpenJDK Plateform Binary" Task from task Manager and It'll disappear for some next Build. Currently, There is no permanaent solution of this issue.
My issue is solved by changing gradle version from "gradle:2.2.0-alpha1" to newly arrived version "gradle:2.1.2" which was released in this month. Also I have not changed Android Studio.
I am using Android Studio 2.1.1. I think it's due to alpha version of gradle.
May be this would help to others also.

Kotlin Android Project failed to sync Gradle Project

I created an Android project with the newest Android Studio version (v2 Preview 5) and converted it into a kotlin project. Now gradle is not able to sync and build the project, see the screenshot:
I didn't do anything to any build file and I also deleted my entire gradle cache as well as restarting, killing daemons etc. I used the newest kotlin version 1.0.0-beta-4584
As the error message suggest I guess the reason is the kotlin plugin, so does anyone know how to solve this problem?
The kotlin gradle plugin is not compatible with the latest alpha plugin of android (2.0.0-alpha6) or alpha5 for that matter.
Until this is the case, you can use 2.0.0-alpha3 instead.

Android Studio - Failed to complete Gradle execution - getPid()

I just installed Android Studio, I installed the recommended packages from the SDK Manager, now I am trying to build a sample app. I got this error message:
Failed to complete Gradle execution:
Cause:
net.rubygrapefruit.platform.internal.jni.PosixProcessFunctions.getPid()
Any ideas how to solve this?
I got same issue, I restarted IDE. It started working fine after that.
Personally, I have updated the version of the Gradle Wrapper to the latest.
Open the file gradle-wrapper.properties.
Change the url of distributionUrl.
Example:
distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-bin.zip
Refresh the Gragle project and you should be good to go.

Categories

Resources