android-testing
android-testing copied to clipboard
Update to Room 2.4.0 to resolve build issues on Apple Silicon
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.
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.