Java – When running the app on the same phone, the APK crash generated by Android Studio works fine. What’s wrong?

When running the app on the same phone, the APK crash generated by Android Studio works fine. What’s wrong?… here is a solution to the problem.

When running the app on the same phone, the APK crash generated by Android Studio works fine. What’s wrong?

First of all, I am new to all this.

I’m using Android Studio 2.1. When I run the code for the app on my phone, everything works fine. However, when I create a signed APK and install the app on my phone (after deleting the file from the software run), it somehow starts lagging a lot, a black screen appears, the user interface stops working, the memory and CPU usage spikes, and the app stops working together with the phone.

When I create the APK, I set it to debug build. I’ve tried both signed APKs and unsigned APKs. In both cases, the same thing happened.

Not only that, but the app

suddenly occupies 12MB, while the app only has 6 Activities, without any image except the launch icon.

Can someone help me? Thanks in advance.

Solution

I

had the same issue and then I compiled
“Classpath ‘com.android.tools.build:gradle:1.5.0′”
This gradle, it works fine..,

Related Problems and Solutions