This project is read-only.

cannot Sync

Apr 10, 2012 at 4:14 PM

hi, i have taken latest build and receiving this failure:

04-10 15:07:37.897: E/AndroidRuntime(351): FATAL EXCEPTION: ModernAsyncTask #1
04-10 15:07:37.897: E/AndroidRuntime(351): java.lang.RuntimeException: An error occured while executing doInBackground()
04-10 15:07:37.897: E/AndroidRuntime(351):  at android.support.v4.content.ModernAsyncTask$3.done(ModernAsyncTask.java:137)
04-10 15:07:37.897: E/AndroidRuntime(351):  at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274)
04-10 15:07:37.897: E/AndroidRuntime(351):  at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
04-10 15:07:37.897: E/AndroidRuntime(351):  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
04-10 15:07:37.897: E/AndroidRuntime(351):  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
04-10 15:07:37.897: E/AndroidRuntime(351):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
04-10 15:07:37.897: E/AndroidRuntime(351):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
04-10 15:07:37.897: E/AndroidRuntime(351):  at java.lang.Thread.run(Thread.java:1019)
04-10 15:07:37.897: E/AndroidRuntime(351): Caused by: java.lang.NoSuchMethodError: android.database.sqlite.SQLiteQueryBuilder.buildQuery
04-10 15:07:37.897: E/AndroidRuntime(351):  at pl.selvin.android.syncframework.content.BaseContentProvider.query(BaseContentProvider.java:402)
04-10 15:07:37.897: E/AndroidRuntime(351):  at pl.selvin.android.ListSyncSample.provider.ListProvider.query(ListProvider.java:21)
04-10 15:07:37.897: E/AndroidRuntime(351):  at android.content.ContentProvider$Transport.query(ContentProvider.java:187)
04-10 15:07:37.897: E/AndroidRuntime(351):  at android.content.ContentResolver.query(ContentResolver.java:262)
04-10 15:07:37.897: E/AndroidRuntime(351):  at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:49)
04-10 15:07:37.897: E/AndroidRuntime(351):  at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:35)
04-10 15:07:37.897: E/AndroidRuntime(351):  at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:240)
04-10 15:07:37.897: E/AndroidRuntime(351):  at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:51)
04-10 15:07:37.897: E/AndroidRuntime(351):  at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:40)
04-10 15:07:37.897: E/AndroidRuntime(351):  at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:123)
04-10 15:07:37.897: E/AndroidRuntime(351):  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)

 

thx for your help

Apr 10, 2012 at 4:25 PM

just comment this line BaseContentProvider 402 ... ive added buildQuery to log query to logcat ... but this methode is from API 11

Apr 11, 2012 at 9:45 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.