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

#1

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

#2

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

0 Likes

#3

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

0 Likes

#4

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

0 Likes

#5

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?

0 Likes

#6

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

#7

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

0 Likes

#8

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

1 Like