Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 701 Vote(s) - 3.52 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Room database is not working in mac book pro m1

#1
Room database is not working in mac book pro m1
i have already added id 'kotlin-kapt'

[screen shoot of android studio console log][1]

> * 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)
>
> Caused by: java.lang.reflect.InvocationTargetException at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at
> org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing(annotationProcessing.kt:90)
> at
> org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing$default(annotationProcessing.kt:31)
> at org.jetbrains.kotlin.kapt3.base.Kapt.kapt(Kapt.kt:45) ... 31 more
>
> 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


[1]:
Reply

#2


Simply use Room 2.4.0-alpha03
```
def room_version = "2.4.0-alpha03"
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
```
Edit : The answer consisted of two solutions to solve the issue , since the above written solution was successful for many ,the other solution is removed .
Reply

#3
add dependency:
kapt "org.xerial:sqlite-jdbc:3.34.0"
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through