error CS0103: The name 'GooglePlayTangle' does not exist in the current context also 'AppleTangle'

Hi,

I use Unity 2019.4.11f1
Create new project, and switch to Android platform.
Enable Service In-app purchase
Import Unity IAP Store package 2.0.0 and install.
Create the Tangle files from Window/Unity IAP/Receipt Obfuscation Validator.

And
Scripting define symbols add RECEIPT_VALIDATION

Build error and show error log:

Assets\Plugins\UnityPurchasing\script\IAPDemo.cs(471,48): error CS0103: The name 'GooglePlayTangle' does not exist in the current context

Assets\Plugins\UnityPurchasing\script\IAPDemo.cs(471,73): error CS0103: The name 'AppleTangle' does not exist in the current context

You need to manually move the file for now, I moved them to my /Assets/Scripts folder and it worked. We are working on an update to address this.

Hi,
I move AppleTangle.cs and GooglePlayTangle.cs to /Assets/Scripts folder.
Still has same error.

Do you have other scripts there? Move them to the same location as your scripts, mine happened to be at Assets/Scripts.

Hi,
I also move IAPDemo.cs to /Assets/Scripts folder.
Seems the error is gone.
Thanks for help!

1 Like

I have the same problem. I did what you said. but the problem continues, Can you help

What error are you having? Please post the exact error text. You can delete IAPDemo.cs if you don’t need it.

Thank you very much for your reply my friend.but problem solved.The problem was related to IN-app purchasing, I deleted it and reinstalled it.The problem is solved. I guess there was a problem with the first installation.

I put the google play license key in the settings, and obfuscated it. Everything worked.

1 Like