PictureSelector 使用系统相册,选择云相册图片 LocalMedia.generateLocalMedia

ubbxdtey  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(42)

Current use version?

当前使用的版本是多少?

v3.11.2

Will this problem occur in demo?

Demo能否复现这问题?

可以

Describe the problem or provide an error log?

描述问题或提供错误log?

作者你好:感谢您开源该sdk,目前我集成这个sdk到pixel 7中发现以下问题。
操作步骤如下:
使用系统相册----选择云相册图片---进入裁剪界面会出现以下报错. 具体信息如下

Fatal Exception: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1316104895, result=-1, data=Intent { dat=content://com.google.android.apps.photos.contentprovider/... flg=0x1 clip={text/uri-list {U(content)}} }} to activity {com.chervon.connect.na/com.luck.picture.lib.basic.PictureSelectorTransparentActivity}: java.lang.NullPointerException
at android.app.ActivityThread.deliverResults(ActivityThread.java:6020)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:6059)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:67)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2584)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8810)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

cnwbcb6i

cnwbcb6i1#

新增这个方法后,demo能正常显示并可裁剪

相关问题