1

I was trying to include referenced library when this error showed up on a line that apparently made use of the Rectangle2D class. 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.

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?

4

2 回答 2

3

java.awt指的是Java 的Abstract Window Toolkit,它不包含在Android 框架中。尝试引用这个库

于 2012-05-24T11:40:08.943 回答
0

尝试导入 java.awt.geom.RectangularShape

于 2012-05-24T11:40:25.857 回答