react-native-detector icon indicating copy to clipboard operation
react-native-detector copied to clipboard

Task :react-native-detector:lintDebug FAILED

Open YunySun opened this issue 1 year ago • 0 comments

Task :react-native-detector:lintDebug FAILED Caching disabled for task ':react-native-detector:lintDebug' because: Build cache is disabled Task ':react-native-detector:lintDebug' is not up-to-date because: Task has not declared any outputs despite executing actions. Lint found 1 errors, 1 warnings. First failure:

D:\chat\node_modules\react-native-detector\android\src\main\java\com\reactnativedetector\ScreenshotDetectionDelegate.kt:68: Error: Value must be ≥ 0 but getColumnIndex can be -1 [Range] val path = cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.DATA)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Explanation for issues of type "Range": Some parameters are required to in a particular numerical range; this check makes sure that arguments passed fall within the range. For arrays, Strings and collections this refers to the size or length.

The full lint text report is located at: D:\chat\node_modules\react-native-detector\android\build\intermediates\lint_intermediate_text_report\debug\lint-results-debug.txt :react-native-detector:lintDebug (Thread[Execution worker,5,main]) completed. Took 0.003 secs.

./gradlew build --refresh-dependencies react native 0.71.8 buildToolsVersion = "33.0.0" minSdkVersion = 24 compileSdkVersion = 33 targetSdkVersion = 33

// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP. ndkVersion = "23.1.7779620"

supportLibVersion = "28.0.0" androidXAnnotation = "1.1.0" androidXBrowser = "1.0.0" kotlinVersion = "1.6.0"

YunySun avatar Jul 14 '23 05:07 YunySun