de.greenrobot.dao.DaoException: Method may be called only in owner thread, use forCurrentThread to get an instance for this thread

GitHub | Macarse | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Crash on checkThread()

    GitHub | 9 months ago | Macarse
    de.greenrobot.dao.DaoException: Method may be called only in owner thread, use forCurrentThread to get an instance for this thread

    Root Cause Analysis

    1. de.greenrobot.dao.DaoException

      Method may be called only in owner thread, use forCurrentThread to get an instance for this thread

      at de.greenrobot.dao.query.AbstractQuery.checkThread()
    2. greenDAO
      Query.setParameter
      1. de.greenrobot.dao.query.AbstractQuery.checkThread(SourceFile:80)
      2. de.greenrobot.dao.query.AbstractQuery.setParameter(SourceFile:70)
      3. de.greenrobot.dao.query.AbstractQueryWithLimit.setParameter(SourceFile:48)
      4. de.greenrobot.dao.query.Query.setParameter(SourceFile:30)
      4 frames