Understanding a recurring android logcat error - android

After compiling my ROM, I'm getting a constant recurring SystemUI crash notification, right after booting into the OS.
I'm kinda hazy on the log generated, & not able to exactly trace the cause of error.
Can someone please help me understand it?
D/SystemUIService( 5810): loading: class com.android.systemui.statusbar.phone.PhoneStatusBar
D/SystemUIService( 5810): running: com.android.systemui.statusbar.phone.PhoneStatusBar#41cd3358
I/StatusBarManagerService( 2314): registerStatusBar bar=com.android.internal.statusbar.IStatusBar$Stub$Proxy#41cedcd8
W/ResourceType( 5810): Failure getting entry for 0x7f0d0068 (t=12 e=104) in package 0 (error -75)
D/AndroidRuntime( 5810): Shutting down VM
W/dalvikvm( 5810): threadid=1: thread exiting with uncaught exception (group=0x41993a08)
E/AndroidRuntime( 5810): FATAL EXCEPTION: main
E/AndroidRuntime( 5810): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #99: Error inflating class <unknown>
E/AndroidRuntime( 5810): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2671)
E/AndroidRuntime( 5810): at android.app.ActivityThread.access$1600(ActivityThread.java:156)
E/AndroidRuntime( 5810): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1332)
E/AndroidRuntime( 5810): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 5810): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 5810): at android.app.ActivityThread.main(ActivityThread.java:5229)
E/AndroidRuntime( 5810): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 5810): at java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime( 5810): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
E/AndroidRuntime( 5810): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
E/AndroidRuntime( 5810): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 5810): Caused by: android.view.InflateException: Binary XML file line #99: Error inflating class <unknown>
E/AndroidRuntime( 5810): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
E/AndroidRuntime( 5810): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 5810): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
E/AndroidRuntime( 5810): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
E/AndroidRuntime( 5810): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
E/AndroidRuntime( 5810): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5810): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5810): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5810): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:830)
E/AndroidRuntime( 5810): at android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
E/AndroidRuntime( 5810): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
E/AndroidRuntime( 5810): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
E/AndroidRuntime( 5810): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
E/AndroidRuntime( 5810): at android.view.View.inflate(View.java:16465)
E/AndroidRuntime( 5810): at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:372)
E/AndroidRuntime( 5810): at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:2192)
E/AndroidRuntime( 5810): at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:2168)
E/AndroidRuntime( 5810): at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:388)
E/AndroidRuntime( 5810): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:349)
E/AndroidRuntime( 5810): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:104)
E/AndroidRuntime( 5810): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2661)
E/AndroidRuntime( 5810): ... 10 more
E/AndroidRuntime( 5810): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 5810): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 5810): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
E/AndroidRuntime( 5810): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
E/AndroidRuntime( 5810): ... 30 more
E/AndroidRuntime( 5810): Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
E/AndroidRuntime( 5810): at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:463)
E/AndroidRuntime( 5810): at android.view.View.<init>(View.java:3340)
E/AndroidRuntime( 5810): at android.widget.ImageView.<init>(ImageView.java:114)
E/AndroidRuntime( 5810): at android.widget.ImageView.<init>(ImageView.java:110)
E/AndroidRuntime( 5810): ... 33 more
W/ActivityManager( 2314): Process com.android.systemui has crashed too many times: killing!

Related

Flutter java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/appcompat/app/AppCompatActivity

I am writing a flutter plugin which will start an Activity from the plugin and this Activity has to be AppCompactActivity
I have this dependency in both the app and the plugin dependencies
implementation 'androidx.appcompat:appcompat:1.3.0'
but I am getting this error once startActivity called and the app crashes
E/AndroidRuntime( 1212): java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/appcompat/app/AppCompatActivity;
E/AndroidRuntime( 1212): at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:17)
E/AndroidRuntime( 1212): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 1212): at io.flutter.embedding.engine.plugins.util.GeneratedPluginRegister.registerGeneratedPlugins(GeneratedPluginRegister.java:34)
E/AndroidRuntime( 1212): at io.flutter.embedding.android.FlutterActivity.configureFlutterEngine(FlutterActivity.java:928)
E/AndroidRuntime( 1212): at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:180)
E/AndroidRuntime( 1212): at io.flutter.embedding.android.FlutterActivity.onCreate(FlutterActivity.java:409)
E/AndroidRuntime( 1212): at android.app.Activity.performCreate(Activity.java:8198)
E/AndroidRuntime( 1212): at android.app.Activity.performCreate(Activity.java:8182)
E/AndroidRuntime( 1212): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
E/AndroidRuntime( 1212): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3765)
E/AndroidRuntime( 1212): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3968)
E/AndroidRuntime( 1212): at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
E/AndroidRuntime( 1212): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
E/AndroidRuntime( 1212): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
E/AndroidRuntime( 1212): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
E/AndroidRuntime( 1212): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime( 1212): at android.os.Looper.loop(Looper.java:246)
E/AndroidRuntime( 1212): at android.app.ActivityThread.main(ActivityThread.java:8512)
E/AndroidRuntime( 1212): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 1212): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
E/AndroidRuntime( 1212): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
E/AndroidRuntime( 1212): Caused by: java.lang.ClassNotFoundException: androidx.appcompat.app.AppCompatActivity
E/AndroidRuntime( 1212): at java.lang.VMClassLoader.findLoadedClass(Native Method)
E/AndroidRuntime( 1212): at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
E/AndroidRuntime( 1212): at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
E/AndroidRuntime( 1212): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime( 1212): ... 21 more
E/AndroidRuntime( 1212): Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/fragment/app/FragmentActivity;
E/AndroidRuntime( 1212): ... 21 more
E/AndroidRuntime( 1212): Caused by: java.lang.ClassNotFoundException: androidx.fragment.app.FragmentActivity
E/AndroidRuntime( 1212): at java.lang.VMClassLoader.findLoadedClass(Native Method)
E/AndroidRuntime( 1212): at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
E/AndroidRuntime( 1212): at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
E/AndroidRuntime( 1212): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime( 1212): ... 21 more
E/AndroidRuntime( 1212): Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/activity/ComponentActivity;
E/AndroidRuntime( 1212): ... 21 more
E/AndroidRuntime( 1212): Caused by: java.lang.ClassNotFoundException: androidx.activity.ComponentActivity
E/AndroidRuntime( 1212): at java.lang.VMClassLoader.findLoadedClass(Native Method)
E/AndroidRuntime( 1212): at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
E/AndroidRuntime( 1212): at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
E/AndroidRuntime( 1212): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime( 1212): ... 21 more
E/AndroidRuntime( 1212): Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/HasDefaultViewModelProviderFactory;
E/AndroidRuntime( 1212): ... 21 more
E/AndroidRuntime( 1212): Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.lifecycle.HasDefaultViewModelProviderFactory" on path: DexPathList[[zip file "/data/app/~~Pt2eWtOSiNwV3ewUp8Bkfw==/Pa4pjhLz_vC1nMrdJxNEEg==/base.apk"],nativeLibraryDirectories=[/data/app/~~Pt2eWtOSiNwV3ewUp8Bkfw==/Pa4pjhLz_vC1nMrdJxNEEg==/lib/arm64, /data/app/~~Pt2eWtOSiNwV3ewUp8Bkfw==/Pa4pjhLz_vC1nMrdJxNEEg==/base.apk!/lib/arm64-v8a, /system/lib64]]
E/AndroidRuntime( 1212): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
E/AndroidRuntime( 1212): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime( 1212): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime( 1212): ... 21 more
I/Process ( 1212): Sending signal. PID: 1212 SIG: 9
Lost connection to device.
Exited (sigterm)

java.lang.ClassNotFoundException when inflating a view from a jar

I want to replace the rotating icon in progress dialog with my custom icon. The custom icon is part of my own jar placed inside /device//package_name/Custom_View.java. When this class is referenced in my frameworks/base/core/res/res/layout/progress_dialog_holo.xml. I am having this crash
please help me resolve this issue.
E/AndroidRuntime( 699): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
E/AndroidRuntime( 699): android.view.InflateException: Binary XML file line #39: Error inflating class com.iamplus.aware.AwareProgressView
E/AndroidRuntime( 699): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:698)
E/AndroidRuntime( 699): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
E/AndroidRuntime( 699): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 699): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
E/AndroidRuntime( 699): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
E/AndroidRuntime( 699): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
E/AndroidRuntime( 699): at android.app.ProgressDialog.onCreate(ProgressDialog.java:164)
E/AndroidRuntime( 699): at android.app.Dialog.dispatchOnCreate(Dialog.java:355)
E/AndroidRuntime( 699): at android.app.Dialog.show(Dialog.java:260)
E/AndroidRuntime( 699): at com.android.server.pm.ShutdownThread.beginShutdownSequence(ShutdownThread.java:223)
E/AndroidRuntime( 699): at com.android.server.pm.ShutdownThread.access$000(ShutdownThread.java:57)
E/AndroidRuntime( 699): at com.android.server.pm.ShutdownThread$1.onClick(ShutdownThread.java:140)
E/AndroidRuntime( 699): at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:190)
E/AndroidRuntime( 699): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 699): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 699): at com.android.server.wm.WindowManagerService$PolicyThread.run(WindowManagerService.java:882)
E/AndroidRuntime( 699): Caused by: java.lang.ClassNotFoundException: com.iamplus.aware.AwareProgressView
E/AndroidRuntime( 699): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
E/AndroidRuntime( 699): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
E/AndroidRuntime( 699): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
E/AndroidRuntime( 699): at android.view.LayoutInflater.createView(LayoutInflater.java:552)
E/AndroidRuntime( 699): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
E/AndroidRuntime( 699): ... 15 more
Make sure that you have added the external jar to your project build path.
After that, go to Project -> Properties -> Java Build Path -> Order and Export and mark the checkbox corresponding to your external jar.
Clean and build the project before you run.

Porting Contacts

I'm trying to port the Contacts APK from the galaxy S5 to the Galaxy S4.
I got a FC when I tried to launch the application. I would like to get some help fixing this issue.
E/AndroidRuntime( 3085): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.contacts/com.android.contacts.activities.PeopleActivity}: android.view.InflateException: Binary XML file line #71: Error inflating class <unknown>
E/AndroidRuntime( 3085): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305)
E/AndroidRuntime( 3085): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363)
E/AndroidRuntime( 3085): at android.app.ActivityThread.access$900(ActivityThread.java:161)
E/AndroidRuntime( 3085): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
E/AndroidRuntime( 3085): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3085): at android.os.Looper.loop(Looper.java:157)
E/AndroidRuntime( 3085): at android.app.ActivityThread.main(ActivityThread.java:5356)
E/AndroidRuntime( 3085): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3085): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 3085): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
E/AndroidRuntime( 3085): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
E/AndroidRuntime( 3085): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
E/AndroidRuntime( 3085): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3085): Caused by: android.view.InflateException: Binary XML file line #71: Error inflating class <unknown>
E/AndroidRuntime( 3085): at android.view.LayoutInflater.createView(LayoutInflater.java:626)
E/AndroidRuntime( 3085): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 3085): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)
E/AndroidRuntime( 3085): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)
E/AndroidRuntime( 3085): at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
E/AndroidRuntime( 3085): at android.view.LayoutInflater.inflate(LayoutInflater.java:498)
E/AndroidRuntime( 3085): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 3085): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:627)
E/AndroidRuntime( 3085): at android.view.LayoutInflater.inflate(Native Method)
E/AndroidRuntime( 3085): at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
E/AndroidRuntime( 3085): at com.android.dialer.dialpad.DialpadFragment.onCreateView(DialpadFragment.java:672)
E/AndroidRuntime( 3085): at android.app.Fragment.performCreateView(Fragment.java:1700)
E/AndroidRuntime( 3085): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:890)
E/AndroidRuntime( 3085): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
E/AndroidRuntime( 3085): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1044)
E/AndroidRuntime( 3085): at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1853)
E/AndroidRuntime( 3085): at android.app.Activity.performCreate(Activity.java:5429)
E/AndroidRuntime( 3085): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
E/AndroidRuntime( 3085): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269)
E/AndroidRuntime( 3085): ... 12 more
E/AndroidRuntime( 3085): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 3085): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 3085): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
E/AndroidRuntime( 3085): at android.view.LayoutInflater.createView(LayoutInflater.java:600)
E/AndroidRuntime( 3085): ... 30 more
E/AndroidRuntime( 3085): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/dialpad_background.xml from drawable resource ID #0x7f0200e2
E/AndroidRuntime( 3085): at android.content.res.Resources.loadDrawable(Resources.java:3010)
E/AndroidRuntime( 3085): at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
E/AndroidRuntime( 3085): at android.content.res.XResources$XTypedArray.getDrawable(XResources.java:797)
E/AndroidRuntime( 3085): at android.view.View.<init>(View.java:3694)
E/AndroidRuntime( 3085): at android.view.View.<init>(View.java:3624)
E/AndroidRuntime( 3085): ... 33 more
E/AndroidRuntime( 3085): Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #17: <bitmap> requires a valid src attribute
E/AndroidRuntime( 3085): at android.graphics.drawable.BitmapDrawable.inflate(BitmapDrawable.java:577)
E/AndroidRuntime( 3085): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:973)
E/AndroidRuntime( 3085): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:913)
E/AndroidRuntime( 3085): at android.content.res.Resources.loadDrawable(Resources.java:3006)
E/AndroidRuntime( 3085): ... 37 more
W/ActivityManager( 1126): Force finishing activity com.android.contacts/.activities.PeopleActivity
Here is the zip containing the files from the app from apktool.
SecContacts

How do I tell which binary XML file is causing an error in Android?

I decompiled an .apk for an input method which I'm trying to change the on-screen layout for. My desired changes succeeded on Nexus 10, but my Nexus 4 crashed with the following error in logcat. How do I tell which exact .xml file is causing the error? There are literally hundreds of .xml files all spaghetti-referencing each other.
E/AndroidRuntime( 5344): FATAL EXCEPTION: main
E/AndroidRuntime( 5344): java.lang.RuntimeException: Binary XML file line #5: You must supply a layout_width attribute.
E/AndroidRuntime( 5344): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:491)
E/AndroidRuntime( 5344): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:5819)
E/AndroidRuntime( 5344): at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:5988)
E/AndroidRuntime( 5344): at android.widget.LinearLayout$LayoutParams.<init>(LinearLayout.java:1831)
E/AndroidRuntime( 5344): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1743)
E/AndroidRuntime( 5344): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:58)
E/AndroidRuntime( 5344): at android.view.LayoutInflater.rInflate(LayoutInflater.java:757)
E/AndroidRuntime( 5344): at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
E/AndroidRuntime( 5344): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:839)
E/AndroidRuntime( 5344): at android.view.LayoutInflater.rInflate(LayoutInflater.java:745)
E/AndroidRuntime( 5344): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:839)
E/AndroidRuntime( 5344): at android.view.LayoutInflater.rInflate(LayoutInflater.java:745)
E/AndroidRuntime( 5344): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
E/AndroidRuntime( 5344): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
E/AndroidRuntime( 5344): at gp.a(SourceFile:82)
E/AndroidRuntime( 5344): at com.google.android.apps.inputmethod.libs.framework.keyboard.KeyboardViewHelper.a(SourceFile:144)
E/AndroidRuntime( 5344): at com.google.android.apps.inputmethod.libs.framework.keyboard.Keyboard.getBodyView(SourceFile:154)
E/AndroidRuntime( 5344): at com.google.android.apps.inputmethod.libs.framework.keyboard.KeyboardSnapshotTaker.a(SourceFile:173)
E/AndroidRuntime( 5344): at com.google.android.apps.inputmethod.libs.framework.keyboard.Dashboard.onKeyboardReady(SourceFile:160)
E/AndroidRuntime( 5344): at com.google.android.apps.inputmethod.libs.framework.core.InputBundle.a(SourceFile:33)
E/AndroidRuntime( 5344): at dO.onKeyboardDefReady(SourceFile:224)
E/AndroidRuntime( 5344): at ed.a(SourceFile:84)
E/AndroidRuntime( 5344): at ed.onPostExecute(SourceFile:65)
E/AndroidRuntime( 5344): at android.os.AsyncTask.finish(AsyncTask.java:631)
E/AndroidRuntime( 5344): at android.os.AsyncTask.access$600(AsyncTask.java:177)
E/AndroidRuntime( 5344): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)
E/AndroidRuntime( 5344): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 5344): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 5344): at android.app.ActivityThread.main(ActivityThread.java:5103)
E/AndroidRuntime( 5344): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 5344): at java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime( 5344): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
E/AndroidRuntime( 5344): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime( 5344): at dalvik.system.NativeStart.main(Native Method)
Pretty sure lint should catch such errors. You can use it either as a command line tool or from Eclipse.

Why java.lang.ClassNotFoundException when trying to use mediaplayer?

I was trying to run a program with a mediaplayer. Why am I getting this exception?
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.android.myplayer/com.andr
oid.myplayer.MediaPlayerDemo_video}: java.lang.ClassNotFoundException: com.android.myplayer.MediaPlayerDemo_video in loader dal
vik.system.PathClassLoader#349c48d8
E/AndroidRuntime( 4102): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
E/AndroidRuntime( 4102): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
E/AndroidRuntime( 4102): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
E/AndroidRuntime( 4102): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime( 4102): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 4102): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 4102): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 4102): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 4102): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 4102): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 4102): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 4102): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 4102): Caused by: java.lang.ClassNotFoundException: com.android.myplayer.MediaPlayerDemo_video in loader dalv
ik.system.PathClassLoader#349c48d8
E/AndroidRuntime( 4102): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
E/AndroidRuntime( 4102): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
E/AndroidRuntime( 4102): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
E/AndroidRuntime( 4102): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime( 4102): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409)
E/AndroidRuntime( 4102): ... 11 more
That exception usually means a CLASSPATH problem: the class loader hasn't been told where to find that class when the JVM needs to load it. So you'll need to figure out which JAR contains that class and add it to the CLASSPATH.

Categories

Resources