[英]Error with use of suspend on fragment kotlin room coroutine when upgrade jetbrain plugin 5.31 to 6.0
Using instruction suspend in room coroutine get a lot of errors like:在房间协程中使用指令挂起会出现很多错误,例如:
error: Not sure how to handle query method's return type (java.lang.Object). DELETE query methods must either return void or int (the number of deleted rows).
public abstract java.lang.Object deleteEvento(@org.jetbrains.annotations.NotNull()"
This happen when change classpath org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31
to classpath org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.0
in build.gradle What else may I do to use this new version of jetbrain This happen when change classpath
org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31
to classpath org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.0
in build.gradle What else may I do to use this new version of喷气大脑
I put an example here: https://github.com/sysmart/ErrorSuspend我在这里举个例子: https://github.com/sysmart/ErrorSuspend
Thanks using "room version = '2.4.0-beta 02'" solved the problem.感谢使用“房间版本='2.4.0-beta 02'”解决了这个问题。 https://stackoverflow.com/questions/70032625/not-sure-how-to-convert-a-cursor-to-this-methods-return-type-after-kotlin-updat#:~:text=Using%20Android%20Room%202.4.0%2Dbeta02%20will%20solve%20the%20issue%20until%20stable%20release .
https://stackoverflow.com/questions/70032625/not-sure-how-to-convert-a-cursor-to-this-methods-return-type-after-kotlin-updat#:~:text=Using%20Android %20Room%202.4.0%2Dbeta02%20will%20solve%20the%20issue%20until%20stable%20release 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.