Top "Android-lint" questions

Android Lint is a tool in ADT which scans Android project sources for potential bugs.

Why does Android Lint warn about String.format using default locale when explicitly using Locale.US?

I originally called String.format this way: return String.format("%s %f %f", anotherString, doubleA, doubleB); Which made Android Lint …

android eclipse android-lint
Call requires API level 16 (current min is 14): android.app.Notification.Builder#build

The documentation says Notification.Builder is Added in API level 11. Why I get this lint error? Call requires API level 16 (…

android android-lint
Meaning of "No label views point to this text field" warning message

What is the meaning of this warning? No label views point to this text field with an android:labelFor="@ id/@ …

android android-lint
Run lint when building android studio projects

I would like to be able to run the lint task when I'm building projects with the android studio to …

android android-studio gradle android-lint
Using FloatMath or Math and a cast?

In the latest update of the Android API the FloatMath is marked with the following lint-warning: In older versions of …

java android floating-point double android-lint
How Do We Configure Android Studio to Run Its Lint on Every Build?

Once upon a time, particularly in Eclipse-land, Lint would run on every build, and so if you failed Lint checks, …

android android-studio android-lint
Why is 0dp considered a performance enhancement?

An answer at the end of this question has been filled out, combining remarks and solutions. Question I searched around …

android android-layout android-lint
Android Lint: how to ignore missing translation warnings in a regional locale string file that purposely only overrides some default translations?

Is it possible to translate some strings, but not all, in a separate resource file without Lint complaining about MissingTranslation? …

android localization translation lint android-lint
Constant 'Running Android Lint' Failed, nullpointerexception popping up in Eclipse (but doesn't seem to be my code)

I don't recall what it is I updated (probably some android ADK items), but suddenly I keep getting a "Problem …

java android eclipse android-lint
Android Lint erroneously thinks min SDK version is 1

Eclipse refuses to build my Android project. In the package explorer, the project root node has the little red error …

android eclipse build compiler-errors android-lint