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)
Related
I am invoking a kotlin code for the NFC and when my app is running it is fine, however once an NFC tag is detected, it crashes and gives me the following error:
D/AndroidRuntime( 3619): Shutting down VM
E/AndroidRuntime( 3619): FATAL EXCEPTION: main
E/AndroidRuntime( 3619): Process: com.mycompany.build1, PID: 3619
E/AndroidRuntime( 3619): java.lang.RuntimeException: Unable to create service com.mycompany.build1.cardEmulation.KHostApduService: java.lang.ClassNotFoundException: Didn't find class "com.mycompany.build1.cardEmulation.KHostApduService" on path: DexPathList[[zip file "/data/app/~~Dzm_TtpgXT_wIj9iDZ4KgA==/com.mycompany.build1-p5tSgMzA3bWoKIp2BsMr6Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~Dzm_TtpgXT_wIj9iDZ4KgA==/com.mycompany.build1-p5tSgMzA3bWoKIp2BsMr6Q==/lib/arm64, /data/app/~~Dzm_TtpgXT_wIj9iDZ4KgA==/com.mycompany.build1-p5tSgMzA3bWoKIp2BsMr6Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
E/AndroidRuntime( 3619): at android.app.ActivityThread.handleCreateService(ActivityThread.java:4391)
E/AndroidRuntime( 3619): at android.app.ActivityThread.access$1900(ActivityThread.java:274)
E/AndroidRuntime( 3619): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2112)
E/AndroidRuntime( 3619): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime( 3619): at android.os.Looper.loop(Looper.java:233)
E/AndroidRuntime( 3619): at android.app.ActivityThread.main(ActivityThread.java:8010)
E/AndroidRuntime( 3619): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 3619): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
E/AndroidRuntime( 3619): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
E/AndroidRuntime( 3619): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mycompany.build1.cardEmulation.KHostApduService" on path: DexPathList[[zip file "/data/app/~~Dzm_TtpgXT_wIj9iDZ4KgA==/com.mycompany.build1-p5tSgMzA3bWoKIp2BsMr6Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~Dzm_TtpgXT_wIj9iDZ4KgA==/com.mycompany.build1-p5tSgMzA3bWoKIp2BsMr6Q==/lib/arm64, /data/app/~~Dzm_TtpgXT_wIj9iDZ4KgA==/com.mycompany.build1-p5tSgMzA3bWoKIp2BsMr6Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
E/AndroidRuntime( 3619): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
E/AndroidRuntime( 3619): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime( 3619): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime( 3619): at android.app.AppComponentFactory.instantiateService(AppComponentFactory.java:129)
E/AndroidRuntime( 3619): at androidx.core.app.CoreComponentFactory.instantiateService(CoreComponentFactory.java:75)
E/AndroidRuntime( 3619): at android.app.ActivityThread.handleCreateService(ActivityThread.java:4370)
E/AndroidRuntime( 3619): ... 8 more
I/Process ( 3619): Sending signal. PID: 3619 SIG: 9
App crashes while trying to open pdf in flutter. I have used "simple_pdf_viewer: ^0.2.2".
I have attached the details of the crash report below :
Library link : simple_pdf_viewer .
Caused by: java.lang.IllegalStateException: Expected Android API level 21+ but was 30
java.lang.ExceptionInInitializerError
E/AndroidRuntime( 7294): at okhttp3.internal.platform.Platform.get(Platform.java:85)
E/AndroidRuntime( 7294): at okhttp3.OkHttpClient.newSslSocketFactory(OkHttpClient.java:296)
E/AndroidRuntime( 7294): at okhttp3.OkHttpClient.(OkHttpClient.java:262)
E/AndroidRuntime( 7294): at okhttp3.OkHttpClient$Builder.build(OkHttpClient.java:1054)
E/AndroidRuntime( 7294): at com.liyuanhust.pdfviewer.FileLoader.(FileLoader.kt:155)
E/AndroidRuntime( 7294): at com.liyuanhust.pdfviewer.PdfView.(PdfView.kt:30)
E/AndroidRuntime( 7294): at com.liyuanhust.pdfviewer.PdfViewerFactory.create(PdfViewerFactory.kt:14)
E/AndroidRuntime( 7294): at io.flutter.plugin.platform.SingleViewPresentation.onCreate(SingleViewPresentation.java:186)
E/AndroidRuntime( 7294): at android.app.Dialog.dispatchOnCreate(Dialog.java:419)
E/AndroidRuntime( 7294): at android.app.Dialog.show(Dialog.java:313)
E/AndroidRuntime( 7294): at android.app.Presentation.show(Presentation.java:257)
E/AndroidRuntime( 7294): at io.flutter.plugin.platform.VirtualDisplayController.(VirtualDisplayController.java:95)
E/AndroidRuntime( 7294): at io.flutter.plugin.platform.VirtualDisplayController.create(VirtualDisplayController.java:48)
E/AndroidRuntime( 7294): at io.flutter.plugin.platform.PlatformViewsController$1.createVirtualDisplayForPlatformView(PlatformViewsController.java:207)
E/AndroidRuntime( 7294): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:104)
E/AndroidRuntime( 7294): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/AndroidRuntime( 7294): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/AndroidRuntime( 7294): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/AndroidRuntime( 7294): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:738)
E/AndroidRuntime( 7294): at android.os.MessageQueue.nativePollOnce(Native Method)
E/AndroidRuntime( 7294): at android.os.MessageQueue.next(MessageQueue.java:335)
E/AndroidRuntime( 7294): at android.os.Looper.loop(Looper.java:183)
E/AndroidRuntime( 7294): at android.app.ActivityThread.main(ActivityThread.java:7656)
E/AndroidRuntime( 7294): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 7294): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/AndroidRuntime( 7294): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/AndroidRuntime( 7294): Caused by: java.lang.IllegalStateException: Expected Android API level 21+ but was 30
E/AndroidRuntime( 7294): at okhttp3.internal.platform.AndroidPlatform.buildIfSupported(AndroidPlatform.java:238)
E/AndroidRuntime( 7294): at okhttp3.internal.platform.Platform.findPlatform(Platform.java:202)
E/AndroidRuntime( 7294): at okhttp3.internal.platform.Platform.(Platform.java:79)
E/AndroidRuntime( 7294): ... 26 more
[SOLVED]
I have solved this issue.
Anyone referring to this in future, change the okhttp dependency version to 3.14.7 in the simple_pdf_viewer library present in /flutter/.pub-cache/hosted/pub.dartlang.org/ , it is working fine in android 11 as well.
I have used 1920x1080 resolution image for all layout background.I got OutOfMemory Exception.Then I used different images for different resolutions in different folders,but still i am getting OutOfMemory Exception.Please can any one help me.Below is the my logcat.
E/AndroidRuntime( 3997): FATAL EXCEPTION: main
E/AndroidRuntime( 3997): Process: com.pm.a, PID: 3997
E/AndroidRuntime( 3997): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pm.a/com.activities.services.ConfirmDetails}: android.view.InflateException: Binary XML file line #48: Error inflating class <unknown>
E/AndroidRuntime( 3997): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305)
E/AndroidRuntime( 3997): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363)
E/AndroidRuntime( 3997): at android.app.ActivityThread.access$900(ActivityThread.java:161)
E/AndroidRuntime( 3997): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
E/AndroidRuntime( 3997): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3997): at android.os.Looper.loop(Looper.java:157)
E/AndroidRuntime( 3997): at android.app.ActivityThread.main(ActivityThread.java:5356)
E/AndroidRuntime( 3997): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3997): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 3997): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
E/AndroidRuntime( 3997): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
E/AndroidRuntime( 3997): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3997): Caused by: android.view.InflateException: Binary XML file line #48: Error inflating class <unknown>
E/AndroidRuntime( 3997): at android.view.LayoutInflater.createView(LayoutInflater.java:626)
E/AndroidRuntime( 3997): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 3997): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)
E/AndroidRuntime( 3997): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)
E/AndroidRuntime( 3997): at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
E/AndroidRuntime( 3997): at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
E/AndroidRuntime( 3997): at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
E/AndroidRuntime( 3997): at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
E/AndroidRuntime( 3997): at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
E/AndroidRuntime( 3997): at android.view.LayoutInflater.inflate(LayoutInflater.java:498)
E/AndroidRuntime( 3997): at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
E/AndroidRuntime( 3997): at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
E/AndroidRuntime( 3997): at com.activities.services.ConfirmDetails.onCreate(ConfirmDetails.java:90)
E/AndroidRuntime( 3997): at android.app.Activity.performCreate(Activity.java:5426)
E/AndroidRuntime( 3997): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
E/AndroidRuntime( 3997): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269)
E/AndroidRuntime( 3997): ... 11 more
E/AndroidRuntime( 3997): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 3997): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 3997): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
E/AndroidRuntime( 3997): at android.view.LayoutInflater.createView(LayoutInflater.java:600)
E/AndroidRuntime( 3997): ... 26 more
E/AndroidRuntime( 3997): Caused by: java.lang.OutOfMemoryError
E/AndroidRuntime( 3997): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
E/AndroidRuntime( 3997): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:677)
E/AndroidRuntime( 3997): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:507)
E/AndroidRuntime( 3997): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:872)
E/AndroidRuntime( 3997): at android.content.res.Resources.loadDrawable(Resources.java:3056)
E/AndroidRuntime( 3997): at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
E/AndroidRuntime( 3997): at android.widget.ImageView.<init>(ImageView.java:133)
E/AndroidRuntime( 3997): at android.widget.ImageView.<init>(ImageView.java:123)
E/AndroidRuntime( 3997): ... 29 more
W/ActivityManager( 3050): Force finishing activity com.activities.services.ConfirmDetails
Thanking in Advance.
The OOM errors are a real pain in the a$$.
All you can do is resize your image to lower quality and/or enable largeHeap.
Have a look to this:
Bitmap recycle with largeHeap enabled
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
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!