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
How to Remove the Unnecessary Top Padding of the Navigation View
How to Disable Recyclerview Items from Clicking
How to Emulate Gps Location in the Android Emulator
How to Remove the Black Bar Appearing At the Bottom
Changing Background Color of the Layout on a Button Click in Android
How to Change Firebase Project Directory
How to Show Only Specific Part of Website in Android Webview
How to Make Image Fill Relativelayout Background Without Stretching
Image Scale Type Center Crop on Flutter
Ship an Application With a Database
Onclick() to Change Button Border Color Rather Changing Button Color
How to Get the Value of a Listview Item Which Is Clicked in Android
Android Textview Text Not Getting Wrapped
How to Fix Attempt to Invoke Interface Method on a Null Object Reference
Remove Scroll Bar Track from Scrollview in Android
Retrofit Body Giving Null Values But Coming Perfect in Postman