Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Instant Run First-time takes too much time to launch app after installed

Tags:

I have installed android-instant-run introduced in android-studio-2.0

I am getting problem while running my app first time. Its appearing with blank screen for a 5 to 10 seconds then after launching activity.

enter image description here

It takes time to run first time only for every application but why it happens that I don't know.

Logcat : W/System: ClassLoader referenced unknown path: /data/app/com.package.name/lib/arm

like image 251
Pratik Butani Avatar asked Apr 15 '16 04:04

Pratik Butani


2 Answers

Hello I am also facing this issue when i update my Android Studio 2.0

This issue is resolved by changing minSDKVersion from 14 to 16 and change the gradle version to 2.4. This will work fine.

like image 66
patel135 Avatar answered Nov 16 '22 23:11

patel135


The question is already answered, but in my case, it is due to the strange issue with Android Studio 2.0 & 2.1. First time of launching application take longer than usual. This issue happens only in debug mode and not effect your released APK. Try creating a release build of your app and check. It should work perfectly.

like image 20
nnn Avatar answered Nov 16 '22 23:11

nnn