java.lang.IllegalStateException: getWriteableDatabase called recursively
- 相關類:
android.database.sqlite.SQLiteOpenHelper
- 異常:
java.lang.IllegalStateException: getWriteableDatabase called recursively
java.lang.IllegalStateException: getReadableDatabase called recursively
- 原因:
recursively的意思:遞迴地;遞迴地。
有可能是你的函式 myfun() 呼叫了 getWriteableDatabase() / getReadableDatabase () ,而這兩個函式都會呼叫 onCreate()。
如果你覆寫的 onCreate() 裡又呼叫了 myfun() ,那就產生了無限遞迴,系統就報錯了。
相關文章
- Caused by: java.lang.IllegalStateException: getWriter() has already been called for this responseJavaException
- java.lang.IllegalStateException: closedJavaException
- WPF TreeView SelectedItemChanged called twiceView
- java.lang.IllegalStateException: Service id not legal hostnameJavaException
- onMounted is called when there is no active component 已解決
- Non-static method Redis::hSet () cannot be called staticallyRedis
- Caused by: java.lang.IllegalStateException: Only single-level inheritance supported: XxxxServiceJavaException
- SAP Spartacus RouterModule.forRoot() called twice 的錯誤訊息
- java.lang.IllegalStateException: Cannot call sendError() after the response has been committed解讀JavaExceptionErrorMIT
- BUG: compat/mingw.c:151: err_win_to_posix() called without an error!Error
- When should reread of cl_crm_bol_entity and $scope.$apply be called manuallyAPP
- 【React】Invalid hook call. Hooks can only be called inside of the body of a function component.ReactHookIDEFunction
- "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?APP
- ViewPager內使用FragmentPagerAdapter時滑動出現 java.lang.IllegalStateException: The specified child already hViewpagerFragmentAPTJavaException