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.
-
Heh. It's still an early preview (version 0.1), so it could just be a bug. – Ahmad May 16 '13 at 16:01
3 Answers
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.

- 1
- 1

- 6,034
- 2
- 28
- 39
-
I disabled the checks for that class. Do you know how I can re-enable it? – 500865 May 16 '13 at 16:53
-
Did you disable them with 'lint --disable'? If so, use 'lint --enable'. – Alejandro Colorado May 16 '13 at 17:39
-
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

- 1
- 1

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

- 14,439
- 3
- 46
- 46