简体   繁体   中英

when I use resourcePrefix attribute in gradle config, how to exclude dependencies lib at lint check?

When I configure the resourcePrefix property in a module build.gradle, lint checks the dependency library when I build it. enter image description here

I want to retain this property, but I want lint not to check the libraries that depend on them. What should I do?

If you are using Android studio, the lint option can be customized via the menu option Analyze -> Inspect code -> custom scope

Reference : https://developer.android.com/studio/write/lint.html#studio_config (see "Set the inspection scope and profile")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM