Can I ignore the “incompatible gradle version” lint check if gradle overrides transivie dependencies?
•
Android
I just violated this lint check:
Some of my delivery dependencies will certainly not be updated to the latest supported version. However, I set the support library as the first level dependency with the latest version in my application build.gradle file. I can even see that gradle overrides all these dependencies:
$./gradlew app:dependencies | grep 25.2.0
| +--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| +--- com.android.support:support-v13:25.2.0
| | +--- com.android.support:support-annotations:25.2.0 -> 25.3.1
| | \--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| \--- com.android.support:design:25.2.0 -> 25.3.1 (*)
| +--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| +--- com.android.support:support-v13:25.2.0
| | +--- com.android.support:support-annotations:25.2.0 -> 25.3.1
| | \--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| \--- com.android.support:design:25.2.0 -> 25.3.1 (*)
| +--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| +--- com.android.support:support-v13:25.2.0
| | +--- com.android.support:support-annotations:25.2.0 -> 25.3.1
| | \--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| \--- com.android.support:design:25.2.0 -> 25.3.1 (*)
| +--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| +--- com.android.support:support-v13:25.2.0
| | +--- com.android.support:support-annotations:25.2.0 -> 25.3.1
| | \--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| \--- com.android.support:design:25.2.0 -> 25.3.1 (*)
| +--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| +--- com.android.support:support-v13:25.2.0
| | +--- com.android.support:support-annotations:25.2.0 -> 25.3.1
| | \--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| \--- com.android.support:design:25.2.0 -> 25.3.1 (*)
| +--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| +--- com.android.support:support-v13:25.2.0
| | +--- com.android.support:support-annotations:25.2.0 -> 25.3.1
| | \--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| \--- com.android.support:design:25.2.0 -> 25.3.1 (*)
| +--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| +--- com.android.support:support-v13:25.2.0
| | +--- com.android.support:support-annotations:25.2.0 -> 25.3.1
| | \--- com.android.support:support-v4:25.2.0 -> 25.3.1 (*)
| \--- com.android.support:design:25.2.0 -> 25.3.1 (*)
What do I need to worry about, or can I safely ignore this lint error?
resolvent:
It does not cover every dependency: com. Android. Support: support-v13:25.2.0 is not updated to 25.3.1
You should add and compile "com. Android. Support: support-v13:25.3.1" to ensure that all content is on the same version
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码