android-lint Questions
3
Solved
Following the Google developer instructions on implementing Firebase in my app, I notice that android lint complains.
The idea is that we have to implement two services which inherit from Firebas...
Schertz asked 11/5, 2017 at 23:30
2
Solved
Android Studio gives the warning: Unboxing of 'idCollisonMap.get(currentId)' may produce 'NullPointerException' even though I am checking if the key exists before I perform the Map.get().
Am I actu...
Conroy asked 14/10, 2021 at 16:25
6
Solved
Since the new ADT preview version (version 21), they have a new lint warning that tells me the next thing on the manifest file (in the application tag):
Should explicitly set android:allowBackup...
Groschen asked 28/9, 2012 at 22:55
8
Solved
I would like to be able to run the lint task when I'm building projects with the android studio to ensure the lint rules are being followed.
I have tried using task dependencies but with no luck. ...
Hamill asked 3/4, 2014 at 22:41
2
I'm getting the following Lint error on Github Actions (current CI solution for the project)
> Task :application:lint FAILED
Ran lint on variant debug: 1 issues found
Ran lint on variant releas...
Hyaloid asked 26/6, 2020 at 11:47
9
Is it possible to translate some strings, but not all, in a separate resource file without Lint complaining about MissingTranslation?
For example: my app's strings are all in res/values/strings.xm...
Isauraisbel asked 14/8, 2013 at 16:59
2
Solved
I have this in my build.gradle:
android {
lintOptions {
abortOnError false
absolutePaths false
lintConfig file('lint.xml')
baseline file('lint-baseline.xml')
}
}
And I have run Analyze >...
Waggoner asked 31/8, 2017 at 22:29
1
I'm trying to create pre-commit hook with code style check and other errors. It's a multi-module project in Android Studio (java and kotlin).
I was hoping to use lint, but no luck.
My condition is...
Clatter asked 3/8, 2018 at 8:28
8
Solved
I'm developing an Android 2.3.3 application with a service. I have this inside that service to communicate with Main activity:
public class UDPListenerService extends Service
{
private static fin...
Daffodil asked 10/7, 2012 at 6:42
3
From the Android Tools Project Site's Android Gradle Plugin User Guide I'm aware that it's possible to prevent Android's lint from aborting a build using:
lintOptions {
abortOnError false
}
I'm...
Fishmonger asked 22/7, 2015 at 16:15
2
Solved
Is it possible to make Android Studio build fail on lint check errors ?
I have problems with ImageViews when I convert icon from .png to vector drawable .xml
Sometimes I forgot to change
android:sr...
Aubrey asked 22/11, 2017 at 23:36
1
Since recently, (I think it's since I converted my code to kotlin but not sure), Android Studio show me a warning when I write
if (myValue.compareTo(BigDecimal.ZERO) > 0)
The message say "...
Nette asked 10/8, 2020 at 11:50
1
I run it this way "Menu -> Analyze -> Run Inspection by Name -> Unused resources" and I select entire project but it doesn't find any unused resources outside my main App Module. So I then run it f...
Photogram asked 27/4, 2017 at 21:36
3
Solved
I am an android beginner. While trying a code of managing activity life cycle, I encountered a new thing.
package com.example.activitylaunch;
import android.os.Build;
import android.os.Bundle;
i...
Matterhorn asked 17/5, 2013 at 4:49
1
besides AGP update, updated compileSdkVersion and targetSdkVersion to 30.
build success, if set
lintOptions {
checkReleaseBuilds false
}
else i get
Execution failed for task ‘:app:lintVitalProduc...
Therm asked 21/7, 2021 at 15:45
1
Solved
In my android code (Kotlin) I am using forEach method of java iterable.
mandatoryViews.forEach { view ->
// my code here
}
Below is my sdk config in build.gradle (app):
minSdkVersion 23
target...
Colloquy asked 19/6, 2021 at 12:4
1
Solved
I'm trying to write a lint check, that visits call expressions, and report on some violation based on a generic type.
To make it more clear, let's say I have this code:
object Foo {
inline fun <...
Cryobiology asked 12/5, 2021 at 15:42
5
Solved
I'm having issues with Bouncycastle, which only arise when running the :lint task.
Generally it seems to be a Java 9 byte-code version 53.0 / ASM version conflict.
These are the dependencies:
// ht...
Fireweed asked 9/3, 2020 at 9:55
2
I’ve got a project in which I get the following Android lint warning:
Obsolete custom lint check
../../../../../../../.gradle/caches/transforms-2/files-2.1/fc4398fa701898f50fcec85691d33578/appcomp...
Templin asked 28/12, 2020 at 14:52
4
Solved
I have a FrameLayout that contains a TextView and two LinearLayouts:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout...
Rebuff asked 31/1, 2014 at 19:2
3
Solved
I have a base activity from which I subclass several other activities.
Those other activities I do register in the manifest so I can use them from within my application.
However, Android inspecti...
Bald asked 12/1, 2014 at 10:38
0
I have a drawable file with the IconDipSize Lint issue.
This issue is suppressed in lint-baseline.xml file generated on macOS machine, so that it contains file paths with slash, instead of Windows-...
Capitate asked 29/7, 2020 at 8:45
3
Solved
I have a project with 3 sub-projects. I want the 3 sub-projects to use the same dependencies versions so I factored all the versions in the root build.gradle:
allprojects {
ext.versions = [
suppo...
Embosom asked 19/9, 2017 at 8:52
11
Solved
I am getting warning as
"[Accessibility] Missing contentDescription attribute on image" for imageview. while using android lint
What does that mean?
Cohen asked 14/12, 2011 at 6:55
7
Solved
I've got the following selector defined in button_selector.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item ...
Skirr asked 13/6, 2012 at 15:22
1 Next >
© 2022 - 2025 — McMap. All rights reserved.