Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after adding module to my project #2

Open
eitangabay opened this issue Jul 28, 2014 · 1 comment
Open

Error after adding module to my project #2

eitangabay opened this issue Jul 28, 2014 · 1 comment

Comments

@eitangabay
Copy link

Hi,

After adding this module to my project I'm getting a gradle error:

"Build script error unsupported gradle dsl method was found release()"
you can see my question on StackOverflow:
http://stackoverflow.com/questions/24990837/build-script-error-unsupported-gradle-dsl-method-was-found-release

@minixxie
Copy link

Hi eitangabay,
I've tried modifying like this, and it works:

-    release {
-        runProguard false
-        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
+    buildTypes {
+        release {
+            minifyEnabled false
+            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
+        }

This is my temporary fix only. I'm using gradle 2.2.1 on Mac OS X 10.10.1.
Yet, I'm still debugging how to integrate this into my android application project. The gradle successfully built an apk but seems that the class com/giljulio/imagepicker/ui/ImagePickerActivity is still not found.
Regards,
Simon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants