Skip to content Skip to sidebar Skip to footer

App Is Working Fine In Usb Debug Mode, But When I Generate Signed APK And Install It, Its Not Working

I have tried different solutions like giving INTERNET PERMISION in manifest file && Turning off PROGUARD by useProguard false My app name: SMS_VOICE_NOTIFICATION My app d

Solution 1:

While making signed android build obfuscation is applied which sometimes removes the necessary parts of your application code. So, attach the test device in case you are not working with an emulator and carefully watch the logcat where you can see the issue where application code is breaking. Now you need to add exceptional cases where you don't want to obfuscate your code. For this :

  • Open proguard-rules.pro file which is under your app directory somewhere below build.gradle file.

  • Now add exceptional cases by adding classes causing crashes like this:

    -keep public class com.app.YourActivtyOrFragment { public <methods>; public <fields>; }


Solution 2:


Post a Comment for "App Is Working Fine In Usb Debug Mode, But When I Generate Signed APK And Install It, Its Not Working"