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

No proguard-rules.pro file in Android Studio 1.0.1

My android studio project doesn't have a proguard-rules.pro file.

What do I do from here? Is it called something else now or do I need to create my own?

3 Answers

Gerd Hirschmann
Gerd Hirschmann
2,369 Points

If you switch from "Project" to "Production" (right above your app name on the tree on the left side) you can find the proguard-rules.pro file under the section app/app/.

Ya, already figured it out... just changed the file view in Android Studio. But this is the closest answer to what I did so I'll give this to ya. Thanks!

:)

I'm not sure about that file inparticular, however, in that version of android studio progruard was renamed to 'minifyEnabled.' My build.gradle (just a snip) looks like this:

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

Ok! But how do I edit the minify Enabled file? I can't find it anywhere.

Mike Fernandez
Mike Fernandez
4,991 Points

Ah, slept on it and figured it out right away. Not sure why it doesn't show up in the project directory for the latest Android release, but if you reveal the app folder in finder it's in that folder. just open the file with whatever text program you have on your computer.