Reputation: 33
Please help me friends. There is no error in code. When I use Instant Run app opens perfectly on device but I cannot extract that apk to test on other device.
Upvotes: 3
Views: 4414
Reputation: 33
To Fix this Issue no need to enable gradle online mode. I just cleaned Project and done rebuild. Then restarted Android studio. Now it's build apk very fast. It's recommend to enable gradle offline mode (not for initial build and when importing new libs)
Upvotes: -1
Reputation: 29783
You need to disable Instant Run first, because debug apk built with Instant Run will not run on phone with different api level from your test device.
Then you need to clean up and build the apk. If building apk seems like forever, make sure your internet connection is up.
Upvotes: 5