Skip to content
This repository was archived by the owner on Oct 25, 2025. It is now read-only.

Update to Room 2.4.0 to resolve build issues on Apple Silicon#271

Open
fergusonm wants to merge 1 commit intogoogle-developer-training:starter_codefrom
fergusonm:starter_code
Open

Update to Room 2.4.0 to resolve build issues on Apple Silicon#271
fergusonm wants to merge 1 commit intogoogle-developer-training:starter_codefrom
fergusonm:starter_code

Conversation

@fergusonm
Copy link

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.

@edgarmiro
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants