Skip to content

[Internal] Make our gradle build consistent #1462

@samtstern

Description

@samtstern

I have been fighting the build all day so I just want to log some of the issues here so that I can try and fix them.

This is what we run for our builds;
./gradlew clean assembleDebug proguard-tests:build check

It should always give the same result, on any machine. However I have run it about 100x today and run into sporadic issues like:

  • Cannot invoke method containsKey() on null object (from various tasks)
  • Task :lint:compileKotlin FAILED
  • Task :common:generateDebugRFile FAILED
  • Task :library:packageDebugResources FAILED

I'd say of the 100 builds I tried, maybe 25 succeeded :-(

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions