1

So I am trying to publish an Android app to the store, and I get the error message to remove all debugging from the app. Well I started to do research and the only thing I can find are post from nearly 4 years ago and people saying to use ProGuard. Well I am not exactly a Android Developer, and I don't really know any Java. I am using Android Studio to create a simple WebView application for my website. So what files and exact code do I add/remove to so I can get this published. I have added the below code the AndroidManifest.xml to the activity:

android:debuggable="false"

What else? I don't know exactly where to put the code I have seen in past StackOverflow questions. Is ProGuard now integrated into Android? I'm so confused.

EDIT** I have made sure that there are zero calls to Log, and there are no startMethodTracing() and stopMethodTracing() in my code. I am simply following the guide on how to create a simple webview app. I have created only one class myself. Also I cannot find the project.properties file in Android studio.

1 Answer 1

0

A few things to try:

  1. If there are any calls to stopMethodTracing() or startMethodTracing(), make sure you remove them.
  2. Make sure android:debuggable="false" (as you have done)
  3. Remove or comment any references to android.util.Log such as Log.d() or Log.i()
  4. Export your app as a signed application package, using your developer key. This automatically runs zipalign and cleans up any unnecessary resources.
  5. (Optional) Modify your project.properties file to and uncomment the proguard.config line. This should point to a proguard.cfg file that was probably generated automatically when you created the project. Proguard will obfuscate and minimize your code.
3
  • 1. There isn't any. 2. Done 3. What file should this be in? 4. I have an I am getting the Android Developer console telling me to remove logging and debugging 5. Where is project.properties in Android Studio? Can't find it. Feb 6, 2014 at 19:34
  • for 3. Any class could have a reference to this. Just search all classes for anything that imports android.util.Log. 5. I see that things are handled a little differently in Android Studio, this might be in the .idea file in the project root.
    – AWT
    Feb 6, 2014 at 19:41
  • Thanks for you response, but I still can't find a 'project.properties' files in .idea. And in any of my classes there is zero reference to android.util.log. I have only created 1 class personally, the rest was created by Android Studio. I'm simply following this guide: developers.google.com/chrome/mobile/docs/webview/gettingstarted Feb 6, 2014 at 19:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.