Out of memory on a byte allocation

后端 未结 3 403
忘掉有多难
忘掉有多难 2021-01-15 21:59

This is the error I am receiving on the Android log, exactly, this is:

08-06 12:16:28.763: E/dalvikvm-heap(27065): Out of memory on a 184-byte allocation.
         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-15 22:54

    Sometimes you can get OutOfMemory error, when you try to execute too long SQL statements (eg, you don't use the String[] argument for the variables in the query, but hard code them in the statement).

    Try editing your where statements to field=? format, and specify the variables in the designated query parameter.

    See this thread: Sqlite Out of Memory when preparing update statement

    If this isn't the problem in your case, than I can't think of anything else with this little information.

提交回复
热议问题