I'm getting "contextResource cannot be null" as a bundling error. How do I fix this?

After adding the google play services extension, I’ve been getting the bundling error.
I use version 1.2.176. The extensions I use are as follows:
Admob
Iap
Gpgs
Thanks in advance.

1 Like

What happens if you remove the extensions one by one? When does it start working again?

Yes it does. The problem is peculiar to the gpgs extension.

Ok, so an empty project with the latest version of GPGS added triggers the error or is it in combination with the other extensions. May I suggest that you try GPGS+IAP and exclude AdMob?

I believe there is a conflict of dependencies between the different extensions, specifically GPGS and AdMob.

You can try to auto-migrate the extensions to AndroidX: Migrating to AndroidX

I tried GPGS alone and GPGS+IAP but to no avail. I still encountered the same issue. Is migrating the extensions to AndroidX the only solution?

I use those extensions as well, on Defold 1.2.176 and 1.2.177 without issues. Works with or without the AndroidX jetifier flag. I don’t use AdMob, though.

Which versions of the extensions are you using?

1 Like

https://github.com/defold/extension-iap/archive/2.0.2.zip
https://github.com/Lerg/extension-admob/archive/legacy.zip
https://github.com/defold/extension-gpgs/archive/2.2.0.zip

Auto-migrating to AndroidX fixed the issue. Thanks a lot for your help.

1 Like