Gamieon is a one-developer part-time studio focused on creating video games for the desktop and mobile platforms. Since 2010 Gamieon has developed and released six games as well as six more prototypes. Including beta distributions, Gamieon's products have netted a combined 300,000 downloads! Below this bio are images from all my games and prototypes. Check them out and don't forget to follow me on Twitter @[Gamieon](members:gamieon:321769)

Report RSS Fixing Android game startup crash - Unity 5.3 + Prime31 IAP Combo

Posted by on

Today I was adding In-App purchase support to my Android game using the Prime31 IAP Combo package. The game would crash on my device whenever I called IAP.init(...). Here's how I fixed it...

  1. I opened a DOS prompt and typed this in: adb.exe logcat > output.txt
  2. I ran the app and watched it crash.
  3. I clicked on the DOS prompt and pressed Ctrl-C to stop the logging. Then I opened output.txt.
  4. I discovered a fatal error near the end of the log; and determined it was caused by the the app lacking the ACCESS_NETWORK_STATE permission.
  5. From the Unity project navigation frame, I browsed into Plugins\Android\IAB_lib, opened AndroidManifest.xml and added this line:

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

After that everything worked fine.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: