Skip to content
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

华为 LIO-AL00,android10,图片列表选择页,偶现 #1724

Closed
liangdepeng opened this issue Nov 2, 2020 · 2 comments
Closed

华为 LIO-AL00,android10,图片列表选择页,偶现 #1724

liangdepeng opened this issue Nov 2, 2020 · 2 comments

Comments

@liangdepeng
Copy link

--logversion:utracea
Process Name: 'xxx'
Thread Name: 'main'
Back traces starts.
java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx/com.luck.picture.lib.PictureSelectorActivity}: java.lang.IllegalArgumentException: Span count should be at least 1. Provided 0
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3877)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4056)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2464)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8299)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1052)
Caused by: java.lang.IllegalArgumentException: Span count should be at least 1. Provided 0
at androidx.recyclerview.widget.GridLayoutManager.setSpanCount(GridLayoutManager.java:6)
at androidx.recyclerview.widget.GridLayoutManager.<init>(GridLayoutManager.java:17)
at com.luck.picture.lib.PictureSelectorActivity.initWidgets(PictureSelectorActivity.java:39)
at com.luck.picture.lib.PictureBaseActivity.onCreate(PictureBaseActivity.java:21)
at com.luck.picture.lib.PictureSelectorActivity.onCreate(Native Method)
at android.app.Activity.performCreate(Activity.java:8085)
at android.app.Activity.performCreate(Activity.java:8073)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1320)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3850)
Back traces ends.

@jxtx123456
Copy link

jxtx123456 commented Nov 3, 2020

也出现了
系统版本

Android 10,level 29

ROM

HuaWei/EMOTION

CPU架构

arm64-v8a

Caused by:

5 java.lang.IllegalArgumentException:Span count should be at least 1. Provided 0
6 androidx.recyclerview.widget.GridLayoutManager.setSpanCount(GridLayoutManager.java:819)
7 androidx.recyclerview.widget.GridLayoutManager.(GridLayoutManager.java:86)
8 com.luck.picture.lib.PictureSelectorActivity.initWidgets(PictureSelectorActivity.java:192)
9 com.luck.picture.lib.PictureBaseActivity.onCreate(PictureBaseActivity.java:181)
10 com.luck.picture.lib.PictureSelectorActivity.onCreate(PictureSelectorActivity.java:109)
11 android.app.Activity.performCreate(Activity.java:8085)
12 android.app.Activity.performCreate(Activity.java:8073)
13 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1320)
14 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3850)
15 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4056)
16 android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
17 android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
18 android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
19 android.app.ActivityThread$H.handleMessage(ActivityThread.java:2464)
20 android.os.Handler.dispatchMessage(Handler.java:110)
21 android.os.Looper.loop(Looper.java:219)

@LuckSiege
Copy link
Owner

已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants