简体   繁体   English

我错过了一个java类吗?

[英]Am I missing a java class?

I was trying to include referenced library when this error showed up on a line that apparently made use of the Rectangle2D class. 当这个错误出现在显然使用Rectangle2D类的一行时,我试图包含引用的库。 For some reason it seems I'm missing that class. 出于某种原因,我似乎错过了那门课。

The type java.awt.geom.Rectangle2D cannot be resolved. It is indirectly referenced from required .class files

After some Google searches I figured out I had to simply add Rectangle2D to as a reference, but I can't find it anywhere. 经过一些谷歌搜索,我发现我必须简单地添加Rectangle2D作为参考,但我无法在任何地方找到它。

Can anyone point me in the right direction? 谁能指出我正确的方向? Do I need to download it separately? 我需要单独下载吗? Or am I no searching good enough? 或者我的搜索不够好? Where is that file located? 该文件位于何处?

java.awt refers to Java's Abstract Window Toolkit which is not included in the Android framework. java.awt是指Java的Abstract Window Toolkit ,它不包含在Android框架中。 Try referencing this library 尝试引用此库

尝试导入java.awt.geom.RectangularShape

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM