I want to compile an open source android project (Netguard) using gradel (gradlew clean build) But I encountered this Error:
A problem occurred
The issue comes mostly when you are cloning a previous project specially from github. What you can do is
classpath 'com.android.tools.build:gradle:3.2.1'
in your project level gradle.
Then Change all the instances of compile with implementation except compileSdkVersion keep it as it is in your app level gradle.
Instead of sync now click on make project(Ctrl+F9)
Add google maven repositories if needed.
Upgrade the gradle wrapper if needed.
(Android Studio IDE will ask / guide you with the same for steps 4 and 5)
it fixes!! Enjoy Coding