递归火山软件开发平台

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 火山 源码 类库
查看: 9342|回复: 2
打印 上一主题 下一主题

[安卓] 无名模块问题

[复制链接]

128

主题

344

帖子

2097

积分

金牌会员

Rank: 6Rank: 6

积分
2097
跳转到指定楼层
楼主
发表于 2021-3-31 19:50:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在调用文本_转语音方法时报错:
堆栈跟踪(崩溃信息):  
java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(2131624227, class hsh.anzh.jb.rg_anzhzdylb) with Adapter(class hsh.anzh.jb.rg_dxshjkpq)]
at android.widget.ListView.layoutChildren(ListView.java:1779)
at android.widget.AbsListView.onLayout(AbsListView.java:2309)
at android.view.View.layout(View.java:20949)
at android.view.ViewGroup.layout(ViewGroup.java:6396)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
at android.view.View.layout(View.java:20949)
at android.view.ViewGroup.layout(ViewGroup.java:6396)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:331)
at android.widget.FrameLayout.onLayout(FrameLayout.java:269)
at android.view.View.layout(View.java:20949)
at android.view.ViewGroup.layout(ViewGroup.java:6396)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
at android.view.View.layout(View.java:20949)
at android.view.ViewGroup.layout(ViewGroup.java:6396)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:331)
at android.widget.FrameLayout.onLayout(FrameLayout.java:269)
at android.view.View.layout(View.java:20949)
at android.view.ViewGroup.layout(ViewGroup.java:6396)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
at android.view.View.layout(View.java:20949)
at android.view.ViewGroup.layout(ViewGroup.java:6396)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:331)
at android.widget.FrameLayout.onLayout(FrameLayout.java:269)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:1379)
at android.view.View.layout(View.java:20949)
at android.view.ViewGroup.layout(ViewGroup.java:6396)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2899)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2422)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1536)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7431)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1079)
at android.view.Choreographer.doCallbacks(Choreographer.java:884)
at android.view.Choreographer.doFrame(Choreographer.java:816)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1065)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:243)
at android.app.ActivityThread.main(ActivityThread.java:7172)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:511)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:876)
回复

使用道具 举报

444

主题

1万

帖子

4万

积分

超级版主

Rank: 8Rank: 8

积分
40549
沙发
发表于 2021-3-31 23:09:45 | 只看该作者
文本转语音没有问题。。是其它问题导致的。。

The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes.

这意思翻译一下就是,操作列表框导致的。。可能是你在多线程里面操作列表框。。

不信你可以单独写个例子测试   文本_转语音  这个方法。绝对没有任何问题。
安卓无障碍实战课:点击查看
交流群:641526939
回复

使用道具 举报

128

主题

344

帖子

2097

积分

金牌会员

Rank: 6Rank: 6

积分
2097
板凳
 楼主| 发表于 2021-3-31 23:56:39 | 只看该作者
本帖最后由 商继珠 于 2021-4-1 00:01 编辑

文本_转语音返回真后,(su xin)了一下文件列表。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|递归火山软件开发平台 ( 鄂ICP备18029190号 )

GMT+8, 2024-11-25 15:55 , Processed in 0.085462 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表