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