Android aar module loads lint.jar only when starting IDE Start or Module

When using the Android SDK with the gradle build system, you can include the android.aar file as a subproject. Within aar, you can provide lint.jar, which implements custom lint checks ( Source ).

When doing gradlew build inside the project root on the command line, my library.aar blown up and inside lint.jar used for lint checks. Even when I update lint.jar in library.aar , it is updated in the lint cache, and the new lint.jar used for checks when calling gradlew build again.

If I build the same project with the same gradle command from Android Studio 1.5, library.aar will be exploded only once on the Import module or on launching the IDE.

lint.jar never updated when I update library.aar in my subproject, and the old lint.jar from running the IDE is still in use.

Is this a mistake or am I doing something wrong?

I'm currently working on this by executing gradle commands on the command line, but it would be nice if Android Studio also worked in these cases.

+5
source share

Source: https://habr.com/ru/post/1237167/


All Articles