本文介绍了当字符串占用1行以上时,Android Studio不会检查/突出显示Kotlin Room DAO查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

当我试图中断查询以获得更好的可读性/理解性时,它不再被IDE检查.这种情况发生在Android Studio 3.2 Canary 16和3.1.2稳定版(kotlin版本1.2.41)上.

When I'm trying to break query for better readability/comprehension it stops being checked by IDE.This occurs on Android Studio 3.2 canary 16 and 3.1.2 stable, kotlin version 1.2.41.

当Room DAO是Java类/接口时,一切正常.可以在kotlin中对2个以上的行查询进行与Java中相同的检查/突出显示吗?

When Room DAO is java class/interface everything works fine.Is it possible to have the same checking/highlighting for 2+ rows queries in kotlin as in java?

推荐答案

应该在AS 3.6中解决此问题,但目前, https://issuetracker.google.com/issues/130141151#comment3 可以解决问题.

This is supposed to be resolved in AS 3.6, but, for now, the workaround noted at https://issuetracker.google.com/issues/130141151#comment3 does the trick.

这篇关于当字符串占用1行以上时,Android Studio不会检查/突出显示Kotlin Room DAO查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 19:41