facebook, android java.lang.IllegalStateException: Cannot execute task: the task is already running

前端 未结 2 1692
忘掉有多难
忘掉有多难 2021-01-05 01:12

After login I can I can make FB queries. After few minutes (played game) Facebook requests fail exception:

java.lang.IllegalStateException: Cannot execute ta         


        
2条回答
  •  时光说笑
    2021-01-05 02:09

    Are you running on UI thread? Wrap your code withrunOnUiThread

    like this

    Facebook SDK mentions that async calls must be done from UI thread

提交回复
热议问题