Hi Erwana,

> 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)

`com.couchbase.lite.test` indicates couchbase test package. And 
`/files/cblite` should be `/files/<database name>.cblite`. Currently I am 
not sure what causes your problem.

I recommends you to follow tutorial 
(http://developer.couchbase.com/mobile/develop/training/build-first-android-app/index.html).

> Couchbase lite version is 1.0.4-28.

Current official release version is `1.0.4`. And if you are interested in 
v1.1 developer preview version, please use `1.1.0-11`.

Thanks!
Hideki


On Tuesday, May 19, 2015 at 7:57:23 PM UTC-7, Erwan Koffi wrote:
>
> 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/8a5c0015-7dc9-48a0-bac0-41a2826775d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to