I am trying to build the project and run it in my google glass but when ever i am trying to build it is showing that
Error:(20, 0) Gradle DSL method not found: 'runProguard()' Possible causes:
Updated Manifest
<?xml version="1.0" encoding="utf-8"?>
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="19" />
<application>
<uses-library android:name="android.test.runner" />
</application>
<instrumentation android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.google.android.glass.sample.stopwatch"
android:handleProfiling="false"
android:functionalTest="false"
android:label="Tests for com.google.android.glass.sample.stopwatch"/>
It happens because the gradle plugin for Android 2.1.3 doesn't exist.
Don't confuse the gradle version with the gradle plugin.
Use
About the
runProguard
change your script with:Use
minifyEnabled()
instead ofrunProguard()
So the code will look like
Issue Error with gradle plugin not getting updated resolved - If you are getting this error you should update the plugin version to 2.1.2 or 2.3.1 (Be careful it is 2.1.2 and not not 2.12). Here is the sample project level build.gradle that resolved my error-