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 trialFabrice Cochet
1,035 PointsLog always present
I made the modification in the two files build.gradle and proguad-rules.pro and I check that android:debuggable was not present.
But when we start the app, the log are always present.
1 Answer
Fabrice Cochet
1,035 PointsI understand why there is this behaviour.
I tought that : "Run" is in release mode and "Debug" is in debug mode
In fact, "Run" and "Debug" are both in debug mode.
In the build.gradle, I changed
buildTypes { release { runProguard true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } }
by
buildTypes { build { runProguard true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } }
And the log disapeared.
Ben Jakuben
Treehouse TeacherBen Jakuben
Treehouse TeacherSorry for the confusion here! You can also test a release APK by putting the APK file on your device and installing it from there. You just need to allow installations from unknown sources to go this route.