Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

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

Open
wants to merge 1 commit into
base: starter_code
Choose a base branch
from

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