AS里不能编译,提示incompatible types required java.lang.String found java.lang.String

File > Invalidate Caches & Restart

找不到jdk,或者有两套,这样就行了。

参考:两套jdk

猜你喜欢

转载自blog.csdn.net/ewwerpm/article/details/78438620