Fixed
Status Update
Comments
yb...@google.com <yb...@google.com> #2
please provide a sample application that reproduces your error.
yb...@google.com <yb...@google.com>
ru...@gtempaccount.com <ru...@gtempaccount.com> #3
Did you found any solution for this?
I am having the same problem when trying to build on Bamboo build server.
On my local machine it works correctly.
My configuration of Room is:
```
// Room Persistence Library
def ROOM_VERSION = "1.1.1"
implementation "android.arch.persistence.room:rxjava2:$ROOM_VERSION"
implementation "android.arch.persistence.room:runtime:$ROOM_VERSION"
kapt "android.arch.persistence.room:compiler:$ROOM_VERSION"
kaptAndroidTest "android.arch.persistence.room:compiler:$ROOM_VERSION"
```
And I am using Kotlin version 1.2.51.
I am having the same problem when trying to build on Bamboo build server.
On my local machine it works correctly.
My configuration of Room is:
```
// Room Persistence Library
def ROOM_VERSION = "1.1.1"
implementation "android.arch.persistence.room:rxjava2:$ROOM_VERSION"
implementation "android.arch.persistence.room:runtime:$ROOM_VERSION"
kapt "android.arch.persistence.room:compiler:$ROOM_VERSION"
kaptAndroidTest "android.arch.persistence.room:compiler:$ROOM_VERSION"
```
And I am using Kotlin version 1.2.51.
ru...@gtempaccount.com <ru...@gtempaccount.com> #4
By the way.. the error occurs on DatabaseVerifier. Is there any possibility to disable this DatabaseVerifier on compile?
15:58:22.509 [ERROR] [org.gradle.api.Task] e: [kapt] An exception occurred: java.lang.UnsatisfiedLinkError: org.sqlite.core.NativeDB._open_utf8([BI)V
16-Jul-2018 15:58:22 at org.sqlite.core.NativeDB._open_utf8(Native Method)
16-Jul-2018 15:58:22 at org.sqlite.core.NativeDB._open(NativeDB.java:71)
16-Jul-2018 15:58:22 at org.sqlite.core.DB.open(DB.java:174)
16-Jul-2018 15:58:22 at org.sqlite.core.CoreConnection.open(CoreConnection.java:220)
16-Jul-2018 15:58:22 at org.sqlite.core.CoreConnection.<init>(CoreConnection.java:76)
16-Jul-2018 15:58:22 at org.sqlite.jdbc3.JDBC3Connection.<init>(JDBC3Connection.java:25)
16-Jul-2018 15:58:22 at org.sqlite.jdbc4.JDBC4Connection.<init>(JDBC4Connection.java:24)
16-Jul-2018 15:58:22 at org.sqlite.SQLiteConnection.<init>(SQLiteConnection.java:45)
16-Jul-2018 15:58:22 at org.sqlite.JDBC.createConnection(JDBC.java:114)
16-Jul-2018 15:58:22 at android.arch.persistence.room.verifier.DatabaseVerifier$Companion.create(DatabaseVerifier.kt:71)
16-Jul-2018 15:58:22 at android.arch.persistence.room.processor.DatabaseProcessor.doProcess(DatabaseProcessor.kt:76)
16-Jul-2018 15:58:22 at android.arch.persistence.room.processor.DatabaseProcessor.process(DatabaseProcessor.kt:53)
16-Jul-2018 15:58:22 at android.arch.persistence.room.RoomProcessor$DatabaseProcessingStep.process(RoomProcessor.kt:57)
15:58:22.509 [ERROR] [org.gradle.api.Task] e: [kapt] An exception occurred: java.lang.UnsatisfiedLinkError: org.sqlite.core.NativeDB._open_utf8([BI)V
16-Jul-2018 15:58:22 at org.sqlite.core.NativeDB._open_utf8(Native Method)
16-Jul-2018 15:58:22 at org.sqlite.core.NativeDB._open(NativeDB.java:71)
16-Jul-2018 15:58:22 at org.sqlite.core.DB.open(DB.java:174)
16-Jul-2018 15:58:22 at org.sqlite.core.CoreConnection.open(CoreConnection.java:220)
16-Jul-2018 15:58:22 at org.sqlite.core.CoreConnection.<init>(CoreConnection.java:76)
16-Jul-2018 15:58:22 at org.sqlite.jdbc3.JDBC3Connection.<init>(JDBC3Connection.java:25)
16-Jul-2018 15:58:22 at org.sqlite.jdbc4.JDBC4Connection.<init>(JDBC4Connection.java:24)
16-Jul-2018 15:58:22 at org.sqlite.SQLiteConnection.<init>(SQLiteConnection.java:45)
16-Jul-2018 15:58:22 at org.sqlite.JDBC.createConnection(JDBC.java:114)
16-Jul-2018 15:58:22 at android.arch.persistence.room.verifier.DatabaseVerifier$Companion.create(DatabaseVerifier.kt:71)
16-Jul-2018 15:58:22 at android.arch.persistence.room.processor.DatabaseProcessor.doProcess(DatabaseProcessor.kt:76)
16-Jul-2018 15:58:22 at android.arch.persistence.room.processor.DatabaseProcessor.process(DatabaseProcessor.kt:53)
16-Jul-2018 15:58:22 at android.arch.persistence.room.RoomProcessor$DatabaseProcessingStep.process(RoomProcessor.kt:57)
ti...@gmail.com <ti...@gmail.com> #5
I've tried the google samples: android-architecture-components/PersistenceContentProviderSample. It fails to build on Linux. This issue is probably related.
> Task :app:compileDebugJavaWithJavac FAILED
Failed to load native library:sqlite-3.20.1-7d93634c-e8d5-434f-a0e6-febdb82bc489-libsqlitejdbc.so . osinfo: Linux/x86_64
java.lang.UnsatisfiedLinkError: /tmp/room-858924f3-28e4-42ad-9db9-120f85b9b3f6/sqlite-3.20.1-7d93634c-e8d5-434f-a0e6-febdb82bc489-libsqlitejdbc.so : /tmp/room-858924f3-28e4-42ad-9db9-120f85b9b3f6/sqlite-3.20.1-7d93634c-e8d5-434f-a0e6-febdb82bc489-libsqlitejdbc.so : failed to map segment from shared object
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.lang.UnsatisfiedLinkError: org.sqlite.core.NativeDB._open_utf8([BI)V
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help athttps://help.gradle.org
BUILD FAILED in 4s
17 actionable tasks: 15 executed, 2 up-to-date
> Task :app:compileDebugJavaWithJavac FAILED
Failed to load native library:
java.lang.UnsatisfiedLinkError: /tmp/room-858924f3-28e4-42ad-9db9-120f85b9b3f6/
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.lang.UnsatisfiedLinkError: org.sqlite.core.NativeDB._open_utf8([BI)V
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at
BUILD FAILED in 4s
17 actionable tasks: 15 executed, 2 up-to-date
yb...@google.com <yb...@google.com> #6
you can disable database verifier per query method though you won't be able to use some features.
which distro/version of linux are you using?
btw we use xerial, might want to report the error there as well:
https://github.com/xerial/sqlite-jdbc
which distro/version of linux are you using?
btw we use xerial, might want to report the error there as well:
ti...@gmail.com <ti...@gmail.com> #7
This is the version:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.4 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/ "
SUPPORT_URL="http://help.ubuntu.com/ "
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/ "
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.4 LTS"
VERSION_ID="16.04"
HOME_URL="
SUPPORT_URL="
BUG_REPORT_URL="
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
ti...@getaround.com <ti...@getaround.com> #8
yb...@google.com <yb...@google.com>
da...@google.com <da...@google.com> #9
Room 2.1.0 has an updated JDBC library version so this error should ideally no longer occur.
he...@gmail.com <he...@gmail.com> #10
I'm running Room 2.1.0, and I still see this error.
he...@gmail.com <he...@gmail.com> #11
Also, this doesn't happen every time for me, and when it does happen, it only seems to happen on release
builds.
da...@google.com <da...@google.com> #12
Can you try with
he...@gmail.com <he...@gmail.com> #13
I upgraded to Room 2.2.5
, and my build succeeded, but this doesn't happen every time, so I'll post again if I see another failure.
Description
Version used: 1.0.0-alpha9
Devices/Android versions reproduced on: Nexus 5 / Any Android version
- Issue Log when try to compile project on Android Studio:
Error:Execution failed for task ':components:address:compileReleaseJavaWithJavac'.
> java.lang.UnsatisfiedLinkError: org.sqlite.core.NativeDB._open_utf8([BI)V