-
-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setIcon giving force close #71
Comments
Still the case ? |
I am having the same issues as well. I've tried with both PNG's and .xml images. It seems to be an issue in API 18 only, as far as I know. I've also tried setting the support library of vectorDrawables to true. Any news on this ? Error message:
|
@medyo
I have tried everything, but still get this crash. It's been 2 years since this issue was opened? My crashlytics points to this line - https://github.com/medyo/android-about-page/blob/master/library/src/main/java/mehdi/sakout/aboutpage/AboutPage.java#L563 Edit: I tried using a The above didn't work. I get this crash in devices running |
@jangerhard @lesjaw Where you able to find the issue, if so, can you please share what you did? |
Ok I managed to find a solution, instead of using |
halo there, awesome work..
i create a new element, if I .setIcon from mipmap or drawable using png make about page force close, except if i put a vector file in drawable-nodpi folder..
here is the logcat..
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.olmatix.config.lesjaw.configolmatix, PID: 9539
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.olmatix.config.lesjaw.configolmatix/com.olmatix.config.lesjaw.amazara.AboutActivity}: android.content.res.Resources$NotFoundException: File res/drawable-nodpi-v4/wa.png from xml type xml resource ID #0x7f020060
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2261)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2311)
at android.app.ActivityThread.access$1000(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1254)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5159)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:610)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.content.res.Resources$NotFoundException: File res/drawable-nodpi-v4/wa.png from xml type xml resource ID #0x7f020060
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2358)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2313)
at android.content.res.Resources.getXml(Resources.java:988)
at android.support.graphics.drawable.VectorDrawableCompat.create(VectorDrawableCompat.java:413)
at mehdi.sakout.aboutpage.AboutPage.createItem(AboutPage.java:360)
at mehdi.sakout.aboutpage.AboutPage.addItem(AboutPage.java:243)
at com.olmatix.config.lesjaw.amazara.AboutActivity.onCreate(AboutActivity.java:33)
at android.app.Activity.performCreate(Activity.java:5239)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2225)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2311)
at android.app.ActivityThread.access$1000(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1254)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5159)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:610)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.io.FileNotFoundException: Corrupt XML binary file
at android.content.res.AssetManager.openXmlAssetNative(Native Method)
at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:488)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2340)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2313)
at android.content.res.Resources.getXml(Resources.java:988)
at android.support.graphics.drawable.VectorDrawableCompat.create(VectorDrawableCompat.java:413)
at mehdi.sakout.aboutpage.AboutPage.createItem(AboutPage.java:360)
at mehdi.sakout.aboutpage.AboutPage.addItem(AboutPage.java:243)
at com.olmatix.config.lesjaw.amazara.AboutActivity.onCreate(AboutActivity.java:33)
at android.app.Activity.performCreate(Activity.java:5239)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2225)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2311)
at android.app.ActivityThread.access$1000(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1254)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5159)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:610)
at dalvik.system.NativeStart.main(Native Method)
The text was updated successfully, but these errors were encountered: