英文:
Android Studio wont import androidx.annotation.NonNull. Compiles fine though
问题
我的Android Studio与API 29一起使用时无法从以下位置导入NonNull
:
import androidx.annotation.NonNull;
它在Java或Kotlin中将NonNull
显示为红色。但是,所有内容都可以正常编译。问题在于智能感知无法正常工作。
如何解决这个问题?在任何地方都找不到解决方法。
英文:
My Android Studio with API 29 wont import NonNull
from
import androidx.annotation.NonNull;
It displays NonNull
as red, for Java or Kotlin. However, everything compiles fine. The problem is that intellisense does not work correctly.
How to fix this? Couldn't find anywhere.
专注分享java语言的经验与见解,让所有开发者获益!
评论