I'm able to create builds for my android app, but when I turn on proguard i'm getting numerouos warnings, and then the build fails. The warnings are like the ones below:
Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpRequest Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpEntity Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.params.HttpParams Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.conn.ClientConnectionManager Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.client.methods.HttpUriRequest Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpResponse Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.client.methods.HttpUriRequest Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.protocol.HttpContext Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpResponse Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpHost Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpRequest Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpResponse Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpHost Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpRequest Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.protocol.HttpContext Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpResponse Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.client.methods.HttpUriRequest Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.client.ResponseHandler Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.client.methods.HttpUriRequest Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.client.ResponseHandler Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.protocol.HttpContext Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpHost Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpRequest Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.client.ResponseHandler Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpHost Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpRequest Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.client.ResponseHandler Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.protocol.HttpContext Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.entity.AbstractHttpEntity It's complaining about libraries that were used in my project. My settings are below:
buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' proguardFile file('proguard-rules.txt') signingConfig signingConfigs.release } } Within my proguard-rules.txt I have the following:
-libraryjars libs All of my libraries are stored in the libs folder. Is there anything else i'm doing wrong?