google-developer-training / android-basics-kotlin-sql-basics-app

Fundamentals of relational databases and practice running SQL queries with Database Inspector in Android Studio.
Apache License 2.0
62 stars 127 forks source link

A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution #20

Closed aldisat closed 9 months ago

aldisat commented 2 years ago

URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-training-sql-basics?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-5-pathway-1%3Fhl%3Den%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-sql-basics&hl=en#2

In which task and step of the codelab can this issue be found? in step 3

Describe the problem

gambar

Steps to reproduce? when run app

Versions Android Studio version: Arctic Fox | 2020.3.1 Patch 3 (arm64 Preview) API version of the emulator: 31

juansturla commented 2 years ago

I have the same issue on a mac m1

Detailed error info

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)

deckikwok commented 2 years ago

same issue on m1 mac

so can we dev android apps with SQL or Room on m1 macs?

edit: go to gradle and change the room version to 2.4.1. working as of 17 jan 2022.

rock-chock commented 2 years ago

@deckikwok thank you so much! the solution to update the Room library to newer version 2.4.1 worked for me, too

dogtim commented 2 years ago

Yes, @deckikwok gives the answer

From Room Library: https://developer.android.com/jetpack/androidx/releases/room#version_240_3