Ver4.4のAndroid OSアプリ落ちる問題
Ver4.4のAndroid OS落ちる問題
記事
[Android Ver4.4 アプリ落ちる問題]
[return imageViewのところでアプリが再起動されてしまう]
[他のversionは使用可能]
[解決方法]
+ import android.widget.AbsListView;
- ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(itemWidth*3/4, itemWidth*3/4);
+ //ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(itemWidth*3/4, itemWidth*3/4);
+ // APIレベルが低いとViewGroup.LayoutParamsがクラッシュの原因になるためAbsListView.LayoutParamsに変更 2019/08/08
+ AbsListView.LayoutParams params = new AbsListView.LayoutParams(itemWidth*3/4, itemWidth*3/4);
[原因]
ViewGroup.LayoutParams が悪さをしていた
[logcatに出ていたエラー]
[Error]
E/dalvikvm: Could not find class 'android.app.job.JobScheduler', referenced from method com.google.android.gms.internal.zzcjg.zzzq
⬆️
android.app.job.JobSchedulerクラス見つからないよエラー
https://mask.hatenadiary.com/entry/2016/01/17/180825
E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method
android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
⬆️
重複があるよエラー 削除済み
E/dalvikvm: Could not find class 'com.mikepenz.materialdrawer.view.BezelImageView$CustomOutline', referenced from method com.mikepenz.materialdrawer.view.BezelImageView.onSizeChanged
🔼
これは通常の警告です。アウトラインはAPI> 21でのみ使用できるため
E/dalvikvm: Could not find class 'android.security.keystore.KeyGenParameterSpec$Builder', referenced from method ~~activities.AppLockActivity.generateKey
⏫
Try catchで囲んではどうかね
E/dalvikvm: Could not find class 'android.hardware.fingerprint.FingerprintManager', referenced from method ~~.activities.AppLockActivity.setupFingerprintStuff
↗️
Trycatch書いたけど消えず
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
E/EGL_emulation: tid 25832: eglSurfaceAttrib(1199): error 0x3009 (EGL_BAD_MATCH)
E/Server err: Not Found