Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"An SDK version you are using has been reported as outdated" warning in Google Play Console #810

Closed
david-buck opened this issue Jul 12, 2023 · 25 comments · Fixed by #819
Closed

Comments

@david-buck
Copy link

I am getting this message in Google Play Console for two out of three of my apps created using Bubblewrap.

The SDK developer androidx.fragment has reported fragment:1.0.0 as outdated. Consider upgrading to a newer version.

image

Is there something I can do, or is it a case of waiting for an update to Bubblewrap/Android Browser Helper?

Thanks,

@Bayernatoor
Copy link

Yep I am getting the same. I assume Bubblewrap needs to update the SDK they are using.

@andreban
Copy link
Member

Hum, Bubblewrap doesn't include this library directly, so I'm guessing it's a transitive dependency from https://github.com/GoogleChrome/android-browser-helper/. Are you using the location delegation or play billing features?

@andreban
Copy link
Member

It seems the Play Service location library includes Play Services Base, which in turn includes AndroidX Fragments. So, the solution is to bump the version on android-browser-helper so it can also be bumped in Bubblewrap.

@david-buck
Copy link
Author

Are you using the location delegation or play billing features?

Yes, the apps getting this warning use location delegation, the one not getting this warning does not.

Thanks

@GCSBOSS
Copy link

GCSBOSS commented Jul 17, 2023

I'm getting this and I have no clue what location delegation even is.

@andreban
Copy link
Member

@GCSBOSS Check your twa-manifest.json and the features section. If your web application doesn't use the Location API, you can probably disable it (and make your APK slightly smaller)

@andreban
Copy link
Member

andreban commented Aug 1, 2023

android-browser-helper has been updated to use a newer version of play-services-location: GoogleChrome/android-browser-helper#437. One a new version of the library is published we can update Bubblewrap.

@andreban
Copy link
Member

andreban commented Aug 7, 2023

Deployed on Bubblewrap 1.21.0

@david-buck
Copy link
Author

This may be a stilly question, so please forgive me but, how does this not require a version bump in ABH?

@andreban
Copy link
Member

andreban commented Aug 8, 2023

The library causing the warning is included via the locationdelegation part of ABH, which was updated via #819. There's no need to update the core library

@david-buck
Copy link
Author

I have reinstalled @bubblewrap/cli to get the latest version and am still getting this error in Play Store Connect:

image

bubblewrap --version is returning version 1.21.0

Do I need to reenable alphaDependencies or something?

@andreban
Copy link
Member

andreban commented Aug 8, 2023

Did you run bubblewrap update after updating to the last version and before rebuilding the APK?

@david-buck
Copy link
Author

Yes I did

@mghatiya
Copy link

I am getting this error too and I have very little knowledge of how all these codes work. I had somehow managed to get bubblewrap setup for my app.

Hope one of you would be able to guide what exactly I need to do in my app to get this problem fixed.

@mghatiya
Copy link

@david-buck did your issue get resolved? This thread seems to be in "closed" status. I wonder if anyone will look at it now.

@david-buck
Copy link
Author

@mghatiya no it didn't. I'm not sure what the next move is tbh. I opened the project in Android Studio and the correct dependency versions are showing in the gradle file, so I can't be sure if it's not just a classic Play Store issue.

@andreban
Copy link
Member

There may be another library being pulled in that Play is alerting about.

@david-buck
Copy link
Author

This is the specific warning in Play

image

I did an update and build to generate the version for this screenshot.

@DoyinDimeji
Copy link

Hey @david-buck, did you manage to get this resolved? I am also on version 1.21.0 with the same warning popping up in Play console.

@david-buck
Copy link
Author

No, I gave up. There's no obvious reason why bubblewrap is building with the wrong version.

@mghatiya
Copy link

mghatiya commented Nov 3, 2023

How do we bring people's attention to it? @david-buck maybe you can reopen the thread?

@david-buck
Copy link
Author

I found some time to dig into this a bit more and I can't work out how the fix mentioned above was meant to solve it.

I cleared all gradle caches on my computer, cleared NPM caches, installed the latest JDK update, and reinstalled bubblewrap before looking into this.

By running a gradlew app:dependencies on the output of my bubblewrap build I see that theandroidx.fragment:fragment:1.0.0 dependency is being used by:

com.google.android.gms:play-services-base:18.1.0 which is a transitive dependency brought in by com.google.android.gms:play-services-location:21.0.1. and
com.google.android.gms:play-services-basement:18.1.0 which is also a transitive dependency of com.google.android.gms:play-services-location:21.0.1. which was the change in ABH made here

So my projects are using the right versions of play-services-base from ABH, but the dependencies are still not good.

My only hope is that the newer version of play-services-base (18.3.0) or com.google.android.gms:play-services-location (21.1.0) fixes this.

Please, @andreban , could you revisit this?

@david-buck
Copy link
Author

In answer to this, it looks like Google's official packages are reliant on the outdated version https://mvnrepository.com/artifact/com.google.android.gms/play-services-base/18.3.0

image

I think we just have to ignore it until the deprecated version is updated in every upstream dependency.

@TrentBartlem
Copy link

Can you just add an explicit dependency on the updated version?

@VojtaAdam
Copy link

+1 - I still face this issue with a new app build with bubblewrap a week ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants