android-testing icon indicating copy to clipboard operation
android-testing copied to clipboard

Update to Room 2.4.0 to resolve build issues on Apple Silicon

Open fergusonm opened this issue 4 years ago • 1 comments

The build fails when compiling on Apple Silicon. This is due to a bug in the 2.3.0 version of the Room library dependency.

Room 2.4.0 included a fix to resolve the issue. See https://developer.android.com/jetpack/androidx/releases/room#2.4.0-alpha03 and https://issuetracker.google.com/issues/174695268.

fergusonm avatar Jan 04 '22 17:01 fergusonm

Totally agree with this PR. The error shown is:

Caused by: java.lang.Exception: No native library is found for os.name=Mac and os.arch=aarch64. path=/org/sqlite/native/Mac/aarch64
	at org.sqlite.SQLiteJDBCLoader.loadSQLiteNativeLibrary(SQLiteJDBCLoader.java:333)
	at org.sqlite.SQLiteJDBCLoader.initialize(SQLiteJDBCLoader.java:64)
	at androidx.room.verifier.DatabaseVerifier.<clinit>(DatabaseVerifier.kt:71)
	... 51 more

The current stable version of Room is 2.4.1.

edgarmiro avatar Feb 14 '22 08:02 edgarmiro