• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by OT_Tiramisu · May 26, 2016 at 08:04 AM · androidcrashgoogle playservicein-app purchase

Unity in-app purchasing service occurs crash on Android

I am using Unity 5.3.4 and my project contains;

  • Google play services v9.33 (latest)

  • Admob (latest version)

When I enable the unity in-app purchasing from services, app dies right after opening the app. From the log, you can see it falls in to "onPause" state. I didn't even used Unity in-app purchasing in any of my scripts. Probably it has a conflict with something.


Edit 1 : I am seeing that failure at the beginning of the process and after the end of the process which may be related to this problem.

Failure retrieving resources for com.xxxxx.xxxxx: Resource ID #0x0


Thx for help.

Here is my log ;


 (Filename: /Users/xxxxx/Documents/Android Race/Assets/_GameRoot/Scripts/Class/GooglePlayServices.cs Line: 28)
 I/Unity   : ******** Play game Activated
 I/Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
 I/Unity  : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
 I/Unity  : UnityEngine.Logger:Log(LogType, Object)
 I/Unity   : UnityEngine.Debug:Log(Object)
 I/Unity   : GooglePlayServices:Start() (at /Users/xxxxx/Documents/Android Race/Assets/_GameRoot/Scripts/Class/GooglePlayServices.cs:35)
 I/Unity   :  
 I/Unity   : (Filename: /Users/xxxxx/Documents/Android Race/Assets/_GameRoot/Scripts/Class/GooglePlayServices.cs Line: 35)
 I/Unity  : 
 I/Unity   : onPause
 D/Unity  : Setting up 1 worker threads for Enlighten.
 D/Unity   :   Thread -> id: 8ee08b00 -> priority: 1 
 W/ActivityManager: getRecentTasks: caller 10085 does not hold GET_TASKS; limiting output
 W/ActivityManager: Activity pause timeout for ActivityRecord{38cc9fac u0 com.xxxxx.xxxxx/com.unity3d.player.UnityPlayerActivity t430 f}
 W/ActivityManager: getRecentTasks: caller 10085 does not hold GET_TASKS; limiting output
 W/Unity   : Timeout while trying to pause the Unity Engine.
 I/ActivityManager: Displayed com.xxxxx.xxxxx/com.unity3d.player.UnityPlayerProxyActivity: +21s934ms
 W/ActivityManager: getRecentTasks: caller 10085 does not hold GET_TASKS; limiting output
 I/Unity   (28267): windowFocusChanged: false
 D/Unity   (28267): [EGL] Attaching window :0x0
 W/ActivityManager(  737): getRecentTasks: caller 10085 does not hold GET_TASKS; limiting output
 I/ActivityManager(  737): Config changes=480 {1.0 ?mcc?mnc en_US ?layoutDir sw360dp w360dp h567dp 480dpi nrml port finger -keyb/v/h -nav/h s.104}
 V/ActivityManager(  737): Display changed displayId=0
 V/ActivityManager(  737): Display changed displayId=0
 W/ActivityManager(  737): Activity pause timeout for ActivityRecord{19e9f003 u0 com.xxxxx.xxxxx/com.unity3d.player.UnityPlayerProxyActivity t430}
 W/ActivityManager(  737): getRecentTasks: caller 10085 does not hold GET_TASKS; limiting output
 I/Unity   (28267): onDestroy
 I/ActivityManager(  737): Process com.xxxxx.xxxxx (pid 28267) has died
 W/ActivityManager(  737): Force removing ActivityRecord{19e9f003 u0 com.xxxxx.xxxxx/com.unity3d.player.UnityPlayerProxyActivity t430}: app died, no saved state
 W/PackageManager(  888): Failure retrieving resources for com.xxxxx.xxxxx: Resource ID #0x0
 W/ActivityManager(  737): Sleep timeout!  Sleeping now.
 






Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

81 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Error setting up Google Play Services - Invalid classname extension has been thrown by the target of an invocation 0 Answers

Problem with Admob + Google Play Services plugin 2 Answers

Fatal signal 11 (SIGSEGV), code 1, fault addr 0x50 0 Answers

Unity Codeless IAP, Google Play Services Sign-in, Leaderboards and Achievements NOT WORKING! 0 Answers

[Android] [Crash] Unable to Initialize Unity Engine 3 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges