Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants