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

@brunobowden Wanted to circle back on this. After reading over your original report, and looking at your solution using flavors, that seems solid to me. I suspect you're right about the caching. I'm going to look into that and see if I can find the root cause, but in the meantime, I wanted to make sure - is there anything here blocking you?

Open mposch-Z opened this issue 1 year ago • 7 comments

@brunobowden Wanted to circle back on this. After reading over your original report, and looking at your solution using flavors, that seems solid to me. I suspect you're right about the caching. I'm going to look into that and see if I can find the root cause, but in the meantime, I wanted to make sure - is there anything here blocking you?

Originally posted by @mrwillis21 in https://github.com/firebase/firebase-android-sdk/issues/2191#issuecomment-745527500

Any update to root cause? Invalidating Android studio cache/app cache/google play services cache is not resolving my issue, so build flavors are the only way around this?

mposch-Z avatar Aug 18 '22 18:08 mposch-Z

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Aug 18 '22 18:08 google-oss-bot

Hi @mposch-Z, we looked into this and think we found the source of the problem is that the google services plugin isn't reprocessing the google-services.json file after it's been updated. You can work around it for now by running ./gradlew app:clean between builds when you change the google-services.json file. Please let us know if this work, and then we will fix the source the problem in a future version.

mrober avatar Sep 02 '22 20:09 mrober

Hey @mposch-Z. 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 Sep 09 '22 01:09 google-oss-bot

During development I tried doing a clean build via the UI in Android studio with no success. I'm not sure if the "clean project" option is the same as the command you're recommending The solution I applied was to create build flavors.. Seems like something should be done so a person only building a debug version doesn't experience this issue.

mposch-Z avatar Sep 09 '22 15:09 mposch-Z

@mposch-Z Running Build -> Clean Project should execute the ./gradlew clean task (as is my understanding), so that should have worked. It sounds like build flavors has solved your problem, so feel free to close this ticket if you prefer. I agree that you shouldn't need to use build flavors to solve this issue, and we believe we have a fix that should be released soon.

If you want to continue to try to debug/resolve this without build flavors, you can try the following:

  1. Run ./gradlew clean from the command line explicitly, just to be sure.
  2. Check if you have multiple google-services.json files in your project? If so, make sure they don't have any conflicting app ids, as the Google Services plugin may be processing a different one than you intend.
  3. If neither of those work, run your app build with the --debug option and provide the build log, filtered to the Crashlytics Plugin output. For example:
> ./gradlew app:assembleRelease --debug | grep "\[com.google.firebase.crashlytics\]"

Alternatively, you can wait for the next release of the Google Services plugin and see if that solves it.

mrichards avatar Sep 09 '22 18:09 mrichards

Hey @mposch-Z. 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 Sep 16 '22 01:09 google-oss-bot

@mposch-Z - the workaround I mentioned in the report worked fine for me. Sorry for the delayed response on my part but thanks for checking in on me.

brunobowden avatar Sep 16 '22 07:09 brunobowden

Hey @mposch-Z. 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 Sep 23 '22 01:09 google-oss-bot

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

@mposch-Z 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 Sep 30 '22 01:09 google-oss-bot