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

Critical issue warning in google play developer console in firebase unity sdk when making build with firebase messaging

Open dpkporwal opened this issue 3 years ago • 14 comments
trafficstars

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2018.4.36
  • Firebase Unity SDK version: 9.3
  • Source you installed the SDK: .unitypackage
  • Problematic Firebase Component: Messaging
  • Other Firebase Components in use: Analytics, Crashlytics, DynamicLinks,
  • Additional SDKs you are using: Facebook, AdMob
  • Platform you are using the Unity editor on: Windows
  • Platform you are targeting: Android
  • Scripting Runtime: IL2CPP
  • Pre-built SDK from the website or open-source from this repo: https://firebase.google.com/download/unity_

[REQUIRED] Please describe the issue here:

Your latest production release (5.2) contains SDK issues "Project NAme" Jul 18, 2022 16:07 Critical issues have been reported with the following SDK versions:

com.google.android.gms:play-services-tasks:18.0.0

What the SDK developer told us: play-services-tasks v18.0.0 has known issues that can lead to runtime NPEs (NullPointerException) when handling Task<Void> results in Kotlin code. We strongly recommend that you avoid using this version. This also impacts the SDKs listed in the December 9, 2021 release, because they all depend on play-services-tasks. A fix for this issue is included in play-services-tasks v18.0.1. See https://developers.google.com/android/guides/releases#december_16_2021

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? not verified What's the issue repro rate? 100%

What happened? How can we make the problem occur? yes We have two projects , In one project we are not using Firebase messaging and in another we are using firebase messaging the project in which we are using firebase mesasging when we make build and upload on google play developer console it will giving me this warning . when i removed firebase messaging messaging then i have tried the warning is gone. But we need to use firebase messaging. I have tried fire base version 8.10 , 9.0, 9.1 , 9.2, 9.3

If you have a downloadable sample project that reproduces the bug you're reporting, you will likely receive a faster response on your issue.

dpkporwal avatar Jul 29 '22 14:07 dpkporwal

Hi @dpkporwal,

Thanks for reporting this. Could you provide the AppDependencies.xml file of your implementation? There may be a dependency issue that's causing this.

paulinon avatar Aug 01 '22 09:08 paulinon

Hi @dpkporwal,

Thanks for reporting this. Could you provide the AppDependencies.xml file of your implementation? There may be a dependency issue that's causing this.

AppDependencies.txt

I have attached Appdependencies. xml file content here. please have a look :-

xml

dpkporwal avatar Aug 01 '22 14:08 dpkporwal

Hi @dpkporwal,

Could you share the MessagingDependencies.xml file as well? It's possible that this points to an older version of the Messaging Android SDK

paulinon avatar Aug 02 '22 09:08 paulinon

Hi @dpkporwal,

Could you share the MessagingDependencies.xml file as well? It's possible that this points to an older version of the Messaging Android SDK

I am attaching the file content of MessagingDependencies.xml also MessagingDependencies.txt Screenshot 2022-08-02 150310

dpkporwal avatar Aug 02 '22 09:08 dpkporwal

Hi @dpkporwal,

The Android dependencies appear to be in order. Are there any other differences you've observed between the build without the Firebase SDK and the build with the Firebase SDK? Does the error message appear with just the Firebase SDK in your implementation?

Additionally, please provide your mainTemplate.gradle file so we could determine the effect the Facebook or Admob SDKs may have in your project.

paulinon avatar Aug 02 '22 16:08 paulinon

Hi @dpkporwal,

The Android dependencies appear to be in order. Are there any other differences you've observed between the build without the Firebase SDK and the build with the Firebase SDK? Does the error message appear with just the Firebase SDK in your implementation?

Additionally, please provide your mainTemplate.gradle file so we could determine the effect the Facebook or Admob SDKs may have in your project.

Yes there are differences in build, When i have made the build with firebase messaging then this warning is coming other wise this warning is not coming when i made the build without firebase messaging( used firbase analytics, firebase crashlytics and firebase remoteconfig in both the cases)

I am attaching the main template file here also as you want, please have a look

mainTemplate.txt

dpkporwal avatar Aug 03 '22 05:08 dpkporwal

Hi @dpkporwal,

Is the error message the only difference you noticed between the builds? Could you confirm if your project containing only the Firebase SDK results in a similar error message?

Also, could you confirm if adding this line of code in your mainTemplate.gradle file makes any difference?

// Android Resolver Dependencies Start
implementation 'com.google.android.gms:play-services-tasks:18.0.2'

paulinon avatar Aug 03 '22 12:08 paulinon

Hi @dpkporwal,

Is the error message the only difference you noticed between the builds? Could you confirm if your project containing only the Firebase SDK results in a similar error message?

Also, could you confirm if adding this line of code in your mainTemplate.gradle file makes any difference?

// Android Resolver Dependencies Start
implementation 'com.google.android.gms:play-services-tasks:18.0.2'

Yes this error message is the only difference between the builds. When i used firebase messaging and vice versa.

I have tried uploading build after making with this line in maintemplate. It didnt make any difference. same warning again. Just want to clarify this is a warning in playstore not an error from the start. but i want to resolve this warning too.

dpkporwal avatar Aug 03 '22 15:08 dpkporwal

Hello , i am waiting for the solution

dpkporwal avatar Aug 08 '22 08:08 dpkporwal

Hi @dpkporwal

We haven't been able to reproduce this problem on our side yet, it keeps pulling play-services-tasks:18.0.2 correctly. If you could, in your Unity project can you check in the taskbar Assets > External Dependency Manager > Android Resolver > Display Libraries. That should open up window that lists out what libraries it is trying to include, what versions, and where it gets it from. This might help indicate where it is pulling the wrong version of tasks from.

Another option is in the Android Resolver, under Settings, turning on Verbose Logging, and then running Force Resolve. There might be something indicated in the logs that might be helpful.

a-maurice avatar Aug 08 '22 19:08 a-maurice

I have already checked this, I have also tried adding implementation 'com.google.android.gms:play-services-tasks:18.0.2' manually in android resolver file like i did with main template. but this also not worked. I also checked verbose logging logs which are nothing extra but the statement which is already written in androidresolver file.

And the thing which i already told you that when i removed firebase messaging then this warning not coming in my google play console at the time of uploading.

dpkporwal avatar Aug 09 '22 15:08 dpkporwal

@dpkporwal

I just tried FIrebase SDK 9.6.0 and I think the default com.google.android.gms.play-services-tasks version EDM4U downloaded is 18.0.2. Please try to upgrade the Firebase SDK.

If you still get 18.0.0, I suspect some of the other third_party plugin you added to the project tried to pin the version to 18.0.0.

In that case, please try to pin the version in mainTemplate.gradle this way:

implementation 'com.google.android.gms:play-services-tasks:[18.0.2]'
// Android Resolver Dependencies Start

Note the use of [18.0.2] and make this above // Android Resolver Dependencies Start so that this line won't be overridden by EDM4U during build time.

Also take a look of Temp/gradleOut/launcher/build/outputs/logs/manifest-merger-release-report.txt and see if Gradle from the Unity actually picked 18.0.2

chkuang-g avatar Oct 10 '22 07:10 chkuang-g

Hey @dpkporwal. 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 Oct 17 '22 01:10 google-oss-bot

I have updated the firebase to 9.6.0 but still same issue, maybe because of some third party plugin. I have also added this in main maintemplate as you said implementation 'com.google.android.gms:play-services-tasks:[18.0.2]' // Android Resolver Dependencies Start

when i am checking Temp/gradleOut/launcher/build/outputs/logs/manifest-merger-release-report.txt this file it showing me 18.0.2 not 18.0.0 but when i am uploading to google play store then showing same warning.

dpkporwal avatar Oct 18 '22 06:10 dpkporwal

Hi @dpkporwal,

Since we can't reproduce this here could you please post a copy of your verbose AndroidResolver log so we can look through it?

Under the Android ResolverSettings turn on Verbose Logging, and then running Force Resolve.

Thanks!

DellaBitta avatar Nov 10 '22 21:11 DellaBitta

Hey @dpkporwal. 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 Nov 17 '22 02:11 google-oss-bot

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

@dpkporwal 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 Nov 23 '22 02:11 google-oss-bot