Hello,

I am currently trying to use couchbase lite for android while using libgdx 
framework to have a fancy synchronized database between laptop and phone. 
Unfortunatly, I'm getting one error.

Couchbase lite version is 1.0.4-28.

In my main build.gradle, I have:

dependencies {
    ...
    compile "com.couchbase.lite:couchbase-lite-android:$couchbaseVersion"
}


For the android project:

android {
    buildToolsVersion "22.0.1"
    compileSdkVersion 22
    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
        }

        instrumentTest.setRoot('tests')
    }

    packagingOptions {
        exclude 'META-INF/ASL2.0'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
    }
}


And finally my Manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
    package="com.btsit.game.android"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="22" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/GdxTheme" >
        <activity
            android:name="com.btsit.game.android.AndroidLauncher"
            android:label="@string/app_name" 
            android:screenOrientation="landscape"
            
android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>


When trying to create manager, I have an io exception:

> Caused by: java.io.IOException: Unable to create directory for: 
> /data/data/com.couchbase.lite.test/files/cblite
>        at com.couchbase.lite.Manager.<init>(Manager.java:129)


Context is retrieved in AndroidApplication with:

new AndroidContext(this)


Manager is created using couchbase-lite-java-core in an another project.

This error may only occurs on simulator, as my testing phone is quite old I 
can't test the app on it :(.

Does someone have any idea?

-- 
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/ee964333-af89-49e7-9374-eacaa8c34653%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to