Gradle Error: Could Not Execute Build Using Gradle Distribution

Error with Gradle using VS Code: Could not run build action using Gradle distribution

I assume the error was being caused as the Gradle configuration in the project directory became outdated. I managed to make VS Code to work again after reinitialising the Gradle config in the project directory as follows:

1, Take a backup of both build.gradle and settings.gradle

2. delete both of them

3. run the
command gradle init

4. Restore both files

EDIT:

Updated as per the useful comment from @ankitj

Error : Internal Error, Could not execute build using Gradle distribution

I just put your gradle dependancies in new project. It seems Failed to apply plugin. Configuration on demand is not supported by the current version of the Android Gradle plugin since you are using Gradle version 4.6 or above.

Suggestion is file or use a Gradle version less than 4.6.

I just have replaced version of facebook sdk version to,

compile 'com.facebook.android:facebook-android-sdk:4.35.0'

Gradle build successful



Related Topics



Leave a reply



Submit