[Android Apps and Games] Naveen Singh:
crashes on Android Lollipop

When Launching version 5.1 or 5.1.1 of your ported launcher on a android lollipop phone (msm8916, Snapdragon 410), it crashes even without entering home screen.

See the log :-

I/PackageManager( 3936): Setting last chosen activity com.google.android.apps.nexuslauncher/.NexusLauncherActivity for user 0:

I/PackageManager( 3936): Action: "android.intent.action.MAIN"

I/PackageManager( 3936): Category: "android.intent.category.HOME"

I/PackageManager( 3936): Category: "android.intent.category.DEFAULT"

I/ActivityManager( 3936): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x13200000 cmp=com.google.android.apps.nexuslauncher/.NexusLauncherActivity} from uid 1000 on display 0

V/WindowManager( 3936): addAppToken: AppWindowToken{11d2a8d3 token=Token{1008f2c2 ActivityRecord{1109830d u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity t9}}} to stack=0 task=9 at 0

I/ActivityManager( 3936): Start proc 15726:com.google.android.apps.nexuslauncher/u0a68 for activity com.google.android.apps.nexuslauncher/.NexusLauncherActivity

I/art (15726): Late-enabling -Xcheck:jni

V/WindowManager( 3936): rotationForOrientationLw(orient=5, last=0); user=0

V/Launcher(15726): LauncherAppState initiated

I/art (15726): Rejecting re-init on previously-failed class java.lang.Class<com.android.launcher3.graphics.FixedScaleDrawable>

I/art (15726): Rejecting re-init on previously-failed class java.lang.Class<com.android.launcher3.graphics.FixedScaleDrawable>

I/art (15726): Rejecting re-init on previously-failed class java.lang.Class<com.android.launcher3.dragndrop.FolderAdaptiveIcon>

I/art (15726): Rejecting re-init on previously-failed class java.lang.Class<com.android.launcher3.dragndrop.FolderAdaptiveIcon>

I/art (15726): Rejecting re-init on previously-failed class java.lang.Class<com.google.android.apps.nexuslauncher.qsb.-$$Lambda$k$mvWufLhFbPNO4vRpkLpL4hjf2Ac>

I/art (15726): Rejecting re-init on previously-failed class java.lang.Class<com.google.android.apps.nexuslauncher.qsb.-$$Lambda$k$mvWufLhFbPNO4vRpkLpL4hjf2Ac>

I/art (15726): Rejecting re-init on previously-failed class java.lang.Class<com.google.android.apps.nexuslauncher.qsb.-$$Lambda$k$mvWufLhFbPNO4vRpkLpL4hjf2Ac>

D/AndroidRuntime(15726): Shutting down VM

--------- beginning of crash

E/AndroidRuntime(15726): FATAL EXCEPTION: main

E/AndroidRuntime(15726): Process: com.google.android.apps.nexuslauncher, PID: 15726

E/AndroidRuntime(15726): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.apps.nexuslauncher/com.google.android.apps.nexuslauncher.NexusLauncherActivity}: android.view.InflateException: Binary XML file line #5: Error inflating class com.google.android.apps.nexuslauncher.qsb.HotseatQsbWidget

E/AndroidRuntime(15726):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2370)

E/AndroidRuntime(15726):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2432)

E/AndroidRuntime(15726):	at android.app.ActivityThread.access$900(ActivityThread.java:154)

E/AndroidRuntime(15726):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)

E/AndroidRuntime(15726):	at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime(15726):	at android.os.Looper.loop(Looper.java:135)

E/AndroidRuntime(15726):	at android.app.ActivityThread.main(ActivityThread.java:5310)

E/AndroidRuntime(15726):	at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime(15726):	at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime(15726):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)

E/AndroidRuntime(15726):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)

E/AndroidRuntime(15726): Caused by: android.view.InflateException: Binary XML file line #5: Error inflating class com.google.android.apps.nexuslauncher.qsb.HotseatQsbWidget

E/AndroidRuntime(15726):	at android.view.LayoutInflater.createView(LayoutInflater.java:633)

E/AndroidRuntime(15726):	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)

E/AndroidRuntime(15726):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)

E/AndroidRuntime(15726):	at android.view.LayoutInflater.parseInclude(LayoutInflater.java:916)

E/AndroidRuntime(15726):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:802)

E/AndroidRuntime(15726):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)

E/AndroidRuntime(15726):	at android.view.LayoutInflater.inflate(LayoutInflater.java:504)

E/AndroidRuntime(15726):	at android.view.LayoutInflater.inflate(LayoutInflater.java:414)

E/AndroidRuntime(15726):	at android.view.LayoutInflater.inflate(LayoutInflater.java:365)

E/AndroidRuntime(15726):	at com.android.launcher3.Launcher.onCreate(SourceFile:329)

E/AndroidRuntime(15726):	at android.app.Activity.performCreate(Activity.java:6865)

E/AndroidRuntime(15726):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)

E/AndroidRuntime(15726):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2323)

E/AndroidRuntime(15726):	... 10 more

E/AndroidRuntime(15726): Caused by: java.lang.reflect.InvocationTargetException

E/AndroidRuntime(15726):	at java.lang.reflect.Constructor.newInstance(Native Method)

E/AndroidRuntime(15726):	at java.lang.reflect.Constructor.newInstance(Constructor.java:288)

E/AndroidRuntime(15726):	at android.view.LayoutInflater.createView(LayoutInflater.java:607)

E/AndroidRuntime(15726):	... 22 more

E/AndroidRuntime(15726): Caused by: java.lang.NoClassDefFoundError: com.google.android.apps.nexuslauncher.qsb.-$$Lambda$k$mvWufLhFbPNO4vRpkLpL4hjf2Ac

E/AndroidRuntime(15726):	at com.google.android.apps.nexuslauncher.qsb.k.<init>(SourceFile:115)

E/AndroidRuntime(15726):	at com.google.android.apps.nexuslauncher.qsb.k.h(SourceFile:77)

E/AndroidRuntime(15726):	at com.google.android.apps.nexuslauncher.qsb.HotseatQsbWidget.<init>(SourceFile:79)

E/AndroidRuntime(15726):	at com.google.android.apps.nexuslauncher.qsb.HotseatQsbWidget.<init>(SourceFile:74)

E/AndroidRuntime(15726):	... 25 more

W/ActivityManager( 3936): Force finishing activity 1 com.google.android.apps.nexuslauncher/.NexusLauncherActivity

I/ActivityManager( 3936): Clearing package preferred activities from com.google.android.apps.nexuslauncher

I/OpenGLRenderer( 3936): Initialized EGL, version 1.4

W/ActivityManager( 3936): Activity pause timeout for ActivityRecord{1109830d u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity t9 f}

I/Timeline(15148): Timeline: Activity_idle id: android.os.BinderProxy@3e2c6a05 time:582144

I/ActivityManager( 3936): Killing 8580:com.android.settings/1000 (adj 15): empty #17

D/WifiService( 3936): Client connection lost with reason: 4

W/art ( 3936): Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService.activityIdle(android.os.IBinder, android.content.res.Configuration, boolean) from ActivityManagerService.java:6167 waiters=0 for 114ms

W/ActivityManager( 3936): Finishing task with all activities already finished

W/ActivityManager( 3936): Duplicate finish request for ActivityRecord{343c7ae0 u0 android/com.android.internal.app.ResolverActivity t8 f}

I/Timeline( 3936): Timeline: Activity_windows_visible id: ActivityRecord{14aaaa9d u0 com.google.android.googlequicksearchbox/com.google.android.launcher.GEL t4} time:582416

W/ResourceType( 4753): No package identifier when getting value for resource number 0x00000000

W/PackageManager( 4753): Failure retrieving resources for android: Resource ID #0x0

I/Process (15726): Sending signal. PID: 15726 SIG: 9

I/GoogleInputMethod( 6210): onFinishInput() : Dummy InputConnection bound

I/GoogleInputMethod( 6210): onStartInput() : Dummy InputConnection bound

I/ActivityManager( 3936): Process com.google.android.apps.nexuslauncher (pid 15726) has died

PasteBin :- https://pastebin.com/embed_js/XxD3Qv23

Thanks [MENTION=6018897]paphonb[/MENTION] !