【发布时间】:2020-10-21 13:28:11
【问题描述】:
这是实际的错误
C:\Users\Michal\AndroidStudioProjects\swibbidandroidkotlin\app\build\tmp\kapt3\stubs\debug\dk\swibbid\mz\data\model\ProductDao.java:28: error: Not sure how to convert a Cursor to this method's return type (androidx.paging.PagingSource<java.lang.Integer,dk.swibbid.mz.data.model.Product>).
public abstract java.lang.Object getAllProductsPagination(@org.jetbrains.annotations.NotNull()
warning: File for type 'dk.swibbid.mz.SwibbidApplication_HiltComponents' created in the last round
will not be subject to annotation processing.
> Task :app:kaptDebugKotlin FAILED
这个错误不应该出现,因为我得到了正确的依赖,但它仍然存在:
implementation "androidx.room:room-runtime:2.3.0-alpha03"
kapt "androidx.room:room-compiler:2.3.0-alpha03"
implementation "androidx.room:room-ktx:2.3.0-alpha03"
implementation "androidx.paging:paging-runtime:3.0.0-alpha07"
我已经尝试使用所有旧的依赖项,但它仍然是同样的错误。我尝试了干净的构建和重建项目。
我已经看过这篇文章了:
【问题讨论】:
标签: android kotlin android-room android-paging