Android Studio不会导入androidx.annotation.NonNull,尽管编译正常。

huangapple 未分类评论45阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年4月8日 01:33:10
  • 转载请务必保留本文链接:https://java.coder-hub.com/61085951.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定