3

I'm getting the following error in Android studio. The sqlitedatabase.close() method is available since API Level 1 but the android studio ide fails to detect that.

Android Studio Error

Ahmad
  • 69,608
  • 17
  • 111
  • 137
500865
  • 6,920
  • 7
  • 44
  • 87

3 Answers3

0

As Ahmad said, it looks like a bug. Meanwhile, try releaseReference() which is equivalent to see if the same happens.

UPDATE:

Supposing you were in Eclipse, to re-enable checks (found here):

Lint puts the file "lint.xml" to the project with the dependant items.

<lint>
  <issue id="UnusedResources">
    <ignore path="res\layout\my_layout.xml" />
  </issue>
<lint>

Unfortunatelly, editing and saving this file is not enough. You have to close and re-open the project or even Eclipse.

Not sure if Android Studio does the same.

UPDATE 2:

In Android Studio, you can see all the Lint based inspections and tune them in 'Settings | Inspections | Android | Lint'.

Or you could use the command line tool in the SDK tools/ directory called lint.

Community
  • 1
  • 1
Alejandro Colorado
  • 6,034
  • 2
  • 28
  • 39
0

Check this:

There seems to be an issue, when the project directory is not directly under the workspace directory.

As of today the bug should be fixed in release 20: http://code.google.com/p/android/issues/detail?id=27527

In that case, the problem was solved by switching workspace to a fresh one. It probably was a problem with settings left over from previous lint versions

Community
  • 1
  • 1
Alejandro Colorado
  • 6,034
  • 2
  • 28
  • 39
0

A couple of days ago, an updated version appeared (build AI-130.687321, dated May 24 2013), where the issue is fixed.

Timores
  • 14,439
  • 3
  • 46
  • 46