Looks like you are using an older version and hitting this issue:

https://github.com/couchbase/couchbase-lite-android/issues/373

Can you give me the direct link to the docs you are looking at so we can
update it?

Also, let me know where you downloaded the couchbase lite binaries so I can
make sure you are getting the latest version.

If you are using Android Studio, the easiest way to get the binaries is via
Maven.  See the GrocerySync example app's build.gradle
<https://github.com/couchbaselabs/GrocerySync-Android/blob/master/GrocerySync-Android/build.gradle#L42>
.

GrocerySync also some screencasts
<https://github.com/couchbaselabs/GrocerySync-Android#screencasts> that
walk you through building it.




On Sat, Dec 6, 2014 at 11:55 AM, Ersin Ertan <[email protected]>
wrote:

>
>
> Hey there,
>
> I'm trying the Building your first Couchbase Lite Android app Training
> section, doing some copy-paste, and am hit with this error while following
> the guide.
>
> *Can't find SQLiteConnection.mConnectionPtr*
>
> because of this line
>
> try{
> * database = manager.getDatabase(dbname);*
>  com.couchbase.lite.util.Log.d(TAG, "Database created");
>   }
>   catch(com.couchbase.lite.CouchbaseLiteException e){
>  com.couchbase.lite.util.Log.e(TAG, "Cannot get database");
>  return;
>   }
>    }
>
> *Complete error:*
>
> 12-06 14:31:43.873    2408-2408/com.test.couchbaselitenosqldb
> D/HelloWorld﹕ Manager created
> 12-06 14:33:40.343    2408-2408/com.test.couchbaselitenosqldb
> E/TDCollateJSON﹕ Can't find SQLiteConnection.mConnectionPtr
> 12-06 14:33:40.363    2408-2408/com.test.couchbaselitenosqldb
> D/AndroidRuntime﹕ Shutting down VM
> 12-06 14:34:02.043    2408-2408/com.test.couchbaselitenosqldb
> E/AndroidRuntime﹕ FATAL EXCEPTION: main
>     Process: com.test.couchbaselitenosqldb, PID: 2408
>     java.lang.NoSuchFieldError: no "I" field "mConnectionPtr" in class
> "Landroid/database/sqlite/SQLiteConnection;" or its superclasses
>             at
> com.couchbase.touchdb.TDCollateJSON.nativeRegisterCustomCollators(Native
> Method)
>             at
> com.couchbase.touchdb.TDCollateJSON.registerCustomCollators(TDCollateJSON.java:11)
>             at
> com.couchbase.lite.android.AndroidSQLiteStorageEngine.open(AndroidSQLiteStorageEngine.java:46)
>             at com.couchbase.lite.Database.open(Database.java:911)
>             at com.couchbase.lite.Manager.getDatabase(Manager.java:227)
>             at com.test
> .couchbaselitenosqldb.MainActivity.initializeDatabase(MainActivity.java:48)
>             at com.test
> .couchbaselitenosqldb.MainActivity.onCreate(MainActivity.java:19)
>             at android.app.Activity.performCreate(Activity.java:5933)
>             at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
>             at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
>             at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
>             at
> android.app.ActivityThread.access$800(ActivityThread.java:144)
>             at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
>             at android.os.Handler.dispatchMessage(Handler.java:102)
>             at android.os.Looper.loop(Looper.java:135)
>             at android.app.ActivityThread.main(ActivityThread.java:5221)
>             at java.lang.reflect.Method.invoke(Native Method)
>             at java.lang.reflect.Method.invoke(Method.java:372)
>             at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
>             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
>
> *Any ideas as to what is going on?*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Couchbase Mobile" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mobile-couchbase/bcdb6b85-cecf-4231-84ec-f6b9c0a19bfa%40googlegroups.com
> <https://groups.google.com/d/msgid/mobile-couchbase/bcdb6b85-cecf-4231-84ec-f6b9c0a19bfa%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCGB6PjTkrCMbV0piMm3dhR1xqWm4dCikkKnr3TecRm9XA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to