Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Publish an Android App Publishing on Google Play Removing Log Calls

Francesco Di Vito
Francesco Di Vito
4,502 Points

Removing Log Calls for publish app

Hi guys, i have develop a complex app that have more third library. Now i must publish my app and i have seen the video how to remove all log calls by application. This is my progruard-rules.pro:

-assumenosideeffects class android.util.Log { public static boolean isLoggable(java.lang.String, int); public static int v(...); public static int i(...); public static int w(...); public static int d(...); public static int e(...); public static int E(...); }

-dontwarn com.squareup.okhttp.* -keep class com.db.models.** -keepclassmembers class com.db.models.** { ; } -keep class android.app.Activity -keep class android.app.* -keep class org.sqlite.** { ; } -keep class org.sqlite.database.* { *; }

and this is the app.grandle configuration:

buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } }

Now when i run app by Android Studio on my device in logact i still see the E: that i have set as log. Why? Is there something to wrang in my code? Any help is great

Thanks Regards