Android Studio: Failed to Complete Gradle Execution, Cause Is Empty

Android Studio: failed to complete gradle execution, cause is empty

I had the same issue, this problem will be fixed by doing the below step.

Go to

File->Setting->Gradle->Gradle Vm Option

For Android Studio 1.2

File->Setting->Build, Deployment &Execution->Build Tools->Gradle->Gradle Vm Option

, Now put this value -Xmx256m in the box, and hit the Apply button.

Android Studio: Failed to complete gradle execution. Cause is empty

Downgraded to version 1.0.1 to make everything work flawlessly. I'm using same project files, it works fine on this version n number of times and same project files are giving above empty error on studio version 1.2.2

Failed to complete gradle execution. Cause is empty. 65K Methods Limit

I found the solution:

The problem lies not in GCM. The problem arises when I try to compile the app. I used the command;

gradlew assembleDebug --stacktrace

and I threw this error:

Unable to execute dex : method ID not in [0 , 0xFFFF ] : 65536.

I've solved with the steps described Google here:
Building Apps with Over 65K Methods

Android Studio failed to complete Gradle execution without cause

With an update to the newest Android Studio Version 1.3 (beta), the problem is gone. The console shows the same warnings but Android Studio does not fail.



Related Topics



Leave a reply



Submit