futurice / freesound-android

Unofficial Android client for the Freesound Project
Apache License 2.0
85 stars 16 forks source link

Gradle project sync failed on release proguard settings #73

Closed ghost closed 8 years ago

ghost commented 8 years ago

Error: Error:(56, 0) Cannot convert the provided notation to a File or URI: [./proguard-rules/android-support-rules.pro, ./proguard-rules/autovalue-rules.pro, ./proguard-rules/okhttp3-rules.pro, ./proguard-rules/picasso-rules.pro, ./proguard-rules/retrofit2-rules.pro, ./proguard-rules/retrolambda-rules.pro, ./proguard-rules/rxjava2-rules.pro, ./proguard-rules/okio-rules.pro, ./proguard-rules/picasso-rules.pro]. The following types/formats are supported:

Line:
proguardFiles getDefaultProguardFile('proguard-android.txt'), releaseProguardFiles

P.S. If comment this line build work :)

Thanks

Ubuntu 16.04

peter-tackage commented 8 years ago

This occurs when using classpath 'com.android.tools.build:gradle:2.2.0', it behaves correctly using 2.1.3.

peter-tackage commented 8 years ago

We need to define a solution for abstractly defining a list of Proguard file which works on the latest Gradle build.

ghost commented 8 years ago

Hmmm I use 2.2.1

peter-tackage commented 8 years ago

My guess is that the API changed slightly after 2.1.3 which has broken it for us. Stick with 2.1.3 for now.