google / play-unity-plugins

The Google Play Plugins for Unity provide C# APIs for accessing various Play services
Other
426 stars 109 forks source link

Unity cloud build failure (Google billing) #99

Open nsctnky opened 3 years ago

nsctnky commented 3 years ago

Hello, I opened this issue in order to inform anyone who have problems with Unity cloud build.

I follow this doc: https://developer.android.com/google/play/billing/unity

However, I got an error during cloud build.

error CS0234: The type or namespace name 'GooglePlayStoreModule' does not exist in the namespace 'Google.Play.Billing' (are you missing an assembly reference?)

In order to solver this issue, you need to add "UNITY_PURCHASING" to platform define symbol. https://docs.unity3d.com/Manual/PlatformDependentCompilation.html

I download google billing via unity package manager (I add google registries to package manager)

liwenchao4413 commented 3 years ago

That happened to me, too

The type or namespace name 'GooglePlayStoreModule' does not exist in the namespace 'Google.Play.Billing' (are you missing an assembly reference?)

Unity 2019.4.12f1 IAP 3.1.0 Goofle billing 1.4