OpenIAB Unity Plugin for Android (Google Play, Samsung Apps, Amazon Appstore, SlideME, Nokia Store, Appland, Aptoide, AppMall, Yandex.Store, Fortumo), Windows Phone and iOS.
146
stars
58
forks
source link
Initialization problem: NullReferenceException: Object reference not set to an instance of an object #91
Open
inessa-aks opened 9 years ago
Hi,
I am using script from OpenIAB demo scene in my project.
I am using my googlePublicKey value.
App is properly configured in Google Play Developer Console.
AndroidManifest file in my app is modified with tags from OpenIAB demo scene.
When I run OpenIAB demo scene in Unity, everything works fine.
But when I try to use the same demo script in my project, I get an error during plugin initialization:
https://github.com/inessa-aks/code/blob/master/ErrorOpenIAB.txt
I am using code given bellow (googlePublicKey value is empty because of security reasons).
https://github.com/inessa-aks/code/blob/master/InAppPurchaseOpenIAB.cs
Can you tell me what is the reason of the error?
What should I do to make my project in Unity initialie OpenIAB in a right way?
Regards, Inessa