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

编译报错 #3

Closed
geekzxiang opened this issue Sep 16, 2021 · 5 comments
Closed

编译报错 #3

geekzxiang opened this issue Sep 16, 2021 · 5 comments

Comments

@geekzxiang
Copy link

  • What went wrong:
    Execution failed for task ':app:kaptDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction
java.lang.reflect.InvocationTargetException (no error message)

@geekzxiang
Copy link
Author

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) ... 50 more

不知道是不是哪里跟M1的mac不兼容

@huannan
Copy link
Owner

huannan commented Sep 17, 2021

是最新版本的AS吗?

@geekzxiang
Copy link
Author

image
是的,这个版本

@huannan
Copy link
Owner

huannan commented Sep 18, 2021

百度了一下,这个确实是M1的兼容性问题,这个我也不知道怎么解决了。或者试试降级gradle

@geekzxiang
Copy link
Author

https://blog.csdn.net/qq_36800514/article/details/115081914
看了下,的确有不兼容问题

@huannan huannan closed this as completed Sep 21, 2021
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

No branches or pull requests

2 participants