App Is Working Fine In Usb Debug Mode, But When I Generate Signed APK And Install It, Its Not Working
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:
Is your app registered as the device's default SMS or assistant handler? You're no longer able to use permissions like READ_SMS unless your app is the default handler:
Post a Comment for "App Is Working Fine In Usb Debug Mode, But When I Generate Signed APK And Install It, Its Not Working"