0

We ran into some bug in linVitalAnaylzeRelease

* What went wrong:
Execution failed for task ':app:lintVitalAnalyzeRelease'.
> java.lang.NullPointerException (no error message)

We narrowed it down to the fact we are using gradle composite builds and

  1. Our android build brings in ../../java/libraries/apis/orders-api project
  2. ../../java/libraries/apis/orders-api project bring in ../common project via an api dependency so android project can use it.

orders-api is a simple interface and many simple POJO DTOs, nothing else, no business logic, nothing. common project was only Orders.java file simple DTO and nothing else.

I am wondering if we can turn off lintVitalAnalyzeRelease for downstream jar files somehow and only run that on the android project class files?

NOTE: I even deleted ALL *.java files from common project and then references to those objects in orders-api project as well and I still get the NullPointerException.

If I have orders-api stop depending on common, this also fixes the nullpointer but we ideally have a few things like Order.java we re-use in different apis so in microservices this then allows us to pass that Order form one api to another api.

Dean Hiller
  • 19,235
  • 25
  • 129
  • 212

0 Answers0