How to solve “Gradle DSL method
not found: ‘runProguard()'”in Android Studio Project
Hello
friends, today we are going to solve “Gradle DSL method not found:
‘runProguard ()'” Error in android studio.
You might
get this error when you download android studio project from the internet and
try to run it in your machine. This is because the application is developed
using previous version of android studio & its app build.gradle file is not
matching with your current version of android studio.
Let’s take
a look at build.gradle file (app module)
Under buildTypes you will find
runProguard false
Which doesn’t exist anymore with later versions
of android studio. So you have to replace this code with J
minifyEnabled
false
Now your modified code segment should look
like this
There are
many useful projects in the internet which are publicly shared for learning purposes.
Among those some of android studio projects may give this error because they
are build using previous versions of android studio IDE. Edit your code and
have a great experience :P
No comments:
Post a Comment