My android app works very well in debug mode and when I generate the signed apk. When I applied Proguard I don't get any error. But when I installed the signed apk with proguard the app crash, I don't know what is the error because I only got "Unfortunately, my app has stopped".
Please give me a cable to know how can I detect what happens with my app, thanks
Related
I have an app that works on my device while debugging on Android Studio. It works too when I generate the apk copy it to my phone and install it from there. But it doesn't work anymore if i install it from the market.
I just have an error message "Unfortunately, xxxxx has stopped". I checked the crash report in Google Play Console but I have 0 crash, at least for now... Is there a way to get some crash log or some clue to debug this ?
Install crashlytics or firebase crash dependencies and you'll be able to see the crash logs on their consoles. If you don't want that, you yourself can override the Thread.UncaughtexceptionHandler and set your custom handler as the default handler. Just Google how to do that as it's a lengthy thing to explain here.
Also if you are using proguard, firebase crash will need other configurations apart from just adding the dependency. Crashlytics handles this on its own.
My app works perfectly when I install it using a usb cable. When I download using HockeyApp or Google Drive it installs, but when I click the app icon it says 'App has stopped'. It will not open the application.
I am using React-Native and Android Studio to build the apk. I generate a signed release and check both signature (v1, v2) boxes.
Any ideas on what the issue could be?
****Edit Fixed****
Thank you for all the suggestions.
I have no idea what changed but I started getting a different error so was troubleshooting the new one and everything started working.
Answer of the following post worked:
error "Could not get BatchedBridge, make sure your bundle is packaged properly" on start of app
For installing an app from any unknown source, you must check it is released app as you define that app is released version then there may be any duplicity in the manifest file.
If you want to check what is the error you must run app from Android Studio and change build variant to relase and for debug app in relase mode
release {
debuggable true
}
it will show what error is comming when you start app in Android Monitor
I'm found similar apk install issue 1month ago
Crash on app(app is New project)
but I’m found resolve way for this problem
The way is add jackOptions, gradle
jackOptions {
enabled true
}
..I have no idea, Why this problem is resolved..
But resolved this problem
good luck
I installed the app through android studio and its working fine, but when I create the apk and then I installed the apk, on some devices my app is crashing.
Can someone know how we can see the logs or errors in case when we installed through apk, in can't debug the app bcos its working that time.
here are few details,
build variant: debug,
my apk name: app-debug.apk,
and I am using 2 3rd party libs as an .aar files
If you have installed the apk also you can able to get the logs if you have connected your device with studio. For that you have set the No Filter in Android Monitor.
In the phones, your app is crashing, don't just install the app by apk there. May be some of your 3rd party dependency is not compatible with those versions or phones.
Debug your app in those phone with cable and check error logs. You will get to know the problem
I'm trying to install a generated APK on my phone, but it's giving me 'App not installed' error. The app is not unsigned and everything regarding the keystore seems fine.
I also tried generating APK for a different app and then installing it on my phone and had no problems doing so, it worked immediately and gave me no errors. I also checked the permissions in Manifest file and the dependencies in gradle file, couldn't see anything wrong with that also.
The app does compile and runs when I do it via USB & Android Studio.
Does anyone know what to do? I'm probably just doing some stupid rookie mistake or something.
You can view the project on Github here.
EDIT: So I tried sending the apk file to a friend to see whether it's just me having this problem and that turned out to be the case. Still not quite sure why won't install on my phone, but at least others can get their hands on it :)
I have an app that runs absolutely fine when I build it using the debug keystore. For the first time, I made a signed APK for release on Google PlayStore. I transferred the signed apk to my phone via the USB cable, installed the app and now when I try to run it, it crashes. It crashes right when I try to open it.
I have crash reporting enabled via Crashlytics and that doesn't report any new crashes either.
When I build it from Eclipse and run it, it all runs fine.
Where do I look for the problem?
Logcat when the app crashes:
07-16 01:23:28.200: E/ActivityThread(28536): Failed to find provider info for com.facebook.wakizashi.provider.MessagesForegroundProvider
07-16 01:23:28.200: E/ActivityThread(28536): Failed to find provider info for com.facebook.katana.provider.MessagesForegroundProvider
The real issue was that ProGuard could not find certain annotations for Parse library. I had to add the following line to get it to work:
-keepattributes *Annotation*
I assume you made your signed apk with eclipse? You've probably used proguard unintentionally. Try to make it again but pay attention to checkboxes.