Octavian Catusanu
Octavian Catusanu

Reputation: 139

Android Studio app crashes on first launch

I'm building my first ever Android Studio application. I tested it in the emulator and there are no problems whatsoever. After I generate the signed APK and install it on my phone, the first time I open the app it crashes instantly. When I try to run it again, there's no problems. Is there any way to find the root cause of this?

Upvotes: 0

Views: 2020

Answers (1)

Szymon Haxik
Szymon Haxik

Reputation: 141

  1. Change Build Variant to release (you can find it in bottom left corner)
  2. Configure signingConfigs in File > Project Structure... > (Modules) app > Signing
  3. Run app using release variant on emulator or real device and observe Logcat

Upvotes: 3

Related Questions