Note that there are some explanatory texts on larger screens.

plurals
  1. POEclipse stops Recognizing object (Android)
    primarykey
    data
    text
    <p>I already tried to find some answer for this but unfortunately I couldn't. I am trying to teach myself Android. Apparently, for no reason, Eclipse stops recognizing a variable between one line and the next one.</p> <p>I have a class that extends a View (a custom View). I am getting this error on the onDraw (sorry, can't post image)</p> <pre><code>public void onDraw(Canvas c) { c.drawBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher), 0, 0, null); c.Rotate(-10); } </code></pre> <p>The drawBitmap line is not recognized as error. If I go after the . in the drawBitmap line and press Ctrl+Space, I get just the Java.Object functions (Equals, hashCode, etc) and not the Canvas'. The c.Rotate line is marked as error - if I open c. the autocomplete does not recognize anything but the basic object functions (no draw, rotate, get/set, etc); If I try to use the variable before the DrawBitmap, it also won't recognize.</p> <p>The weird thing is: if I keep just the drawBitmap line, it compiles and runs fine.</p> <p>What could it be?</p> <p>EDIT: Eclipse Version: 3.7.2 Build id: M20120208-0800</p> <p>Android Development Toolkit Version: 16.0.1.v201112150204-238534</p> <p>Build Target: Android 2.2 (Rev 8)</p> <p>SOLUTION: I just had to go into the workspace folder and delete the .Metadata, and re-add the project. I don't know what caused this error, but it got fixed. For more information, please check the first answer. If someone knows what happened, I would find it very interesting to understand what happened.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload