firebase-android-sdk icon indicating copy to clipboard operation
firebase-android-sdk copied to clipboard

build_id/mapping_file_id prevents gradle build cache

Open lamphamTL opened this issue 1 year ago • 1 comments

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Android Studio Hedgehog | 2023.1.1
  • Firebase Component: firebase crashlytics gradle plugin
  • Component version: 2.3.0

[REQUIRED] Step 3: Describe the problem

For every release build, a brand new com.crashlytics.android.build_id (or com.google.firebase.crashlytics.mapping_file_id for the new versions) is generated which changes the inputs of gradle build tasks. This leads to the fact that build cache is not used while in reality, there is nothing changed in the code.

Steps to reproduce:

  • Run assembleRelease.
./gradlew clean assembleRelease
  • Run assembleRelease (and clean to remove the previously created build_id) once again.
./gradlew clean assembleRelease

This second assemble is supposed to use build cache but it doesn't.

lamphamTL avatar Jan 29 '24 00:01 lamphamTL

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Jan 29 '24 00:01 google-oss-bot

@lamphamTL we have a prerelease of the next major version of the Crashlytics Gradle plugin, you can find it in #5733.

One of the changes in this version of the plugin is a better implementation of the InjectMappingFileIdTask. It will only generate a new mapping file id when the input sources have changed. Please try it and let us know if this resolves your issue.

mrober avatar Feb 22 '24 20:02 mrober

Hey @lamphamTL. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Feb 29 '24 02:02 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@lamphamTL if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Mar 06 '24 02:03 google-oss-bot