2013-06-05 13 views
2

所以我们正在开发基于Unity的基于Unity的游戏。我们已经实施了Facebook身份验证,并使用Android/Res文件夹。它在那里存储一些值和图像。Google Play Game Services占用Android Res文件夹和Web API替代品的问题?

在尝试实现Google Play SDK进行身份验证,排行榜,成就...时,我们意识到它也使用Android/Res文件夹,这显然会导致崩溃,目前不可能。

我们很好奇约2个选项

1)是否有任何可能的方式,让2个不同的服务,使采用了Android资源系统?请注意我们使用的是Unity,插件是由Prime31制作的。

如果库的源被释放,那么可以修改它以便不使用资源文件夹。

2)如果我们无法让Facebook和Google Play服务共存,那么可以通过REST JSON访问完成整个过程?如何通过我们的应用启动浏览器或Google+应用来执行Google+登录以安全地接收凭据?

见下

W/PopupManager(11358): You have not specified a View to use as content view for popups. Falling back to the Activity content view which may not work properly in future versions of the API. Use setViewForPopups() to set your content view.W/dalvikvm(11358): VFY: unable to resolve static field 1994 (common_google_play_services_install_title) in Lcom/google/android/gms/R$string; 

D/dalvikvm(11358): VFY: replacing opcode 0x60 at 0x0041 

W/dalvikvm(11358): VFY: unable to resolve static field 1990 (common_google_play_services_enable_title) in Lcom/google/android/gms/R$string; 

D/dalvikvm(11358): VFY: replacing opcode 0x60 at 0x004c 

W/dalvikvm(11358): VFY: unable to resolve static field 2000 (common_google_play_services_update_title) in Lcom/google/android/gms/R$string; 

D/dalvikvm(11358): VFY: replacing opcode 0x60 at 0x0057 

W/dalvikvm(11358): VFY: unable to resolve static field 1997 (common_google_play_services_unsupported_title) in Lcom/google/android/gms/R$string; 

D/dalvikvm(11358): VFY: replacing opcode 0x60 at 0x0069 

W/dalvikvm(11358): VFY: unable to resolve static field 1991 (common_google_play_services_install_button) in Lcom/google/android/gms/R$string; 

D/dalvikvm(11358): VFY: replacing opcode 0x60 at 0x0009 

W/dalvikvm(11358): VFY: unable to resolve static field 1988 (common_google_play_services_enable_button) in Lcom/google/android/gms/R$string; 

D/dalvikvm(11358): VFY: replacing opcode 0x60 at 0x0010 

W/dalvikvm(11358): VFY: unable to resolve static field 1998 (common_google_play_services_update_button) in Lcom/google/android/gms/R$string; 

D/dalvikvm(11358): VFY: replacing opcode 0x60 at 0x0017 

W/dalvikvm(11358): VFY: unable to resolve static field 1995 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string; 

D/dalvikvm(11358): VFY: replacing opcode 0x60 at 0x0004 

I/dalvikvm(11358): DexOpt: unable to optimize static field ref 0x07c9 at 0x18 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.b 

I/dalvikvm(11358): DexOpt: unable to optimize static field ref 0x07c8 at 0x38 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.b 

I/dalvikvm(11358): DexOpt: unable to optimize static field ref 0x07c5 at 0x3f in Lcom/google/android/gms/common/GooglePlayServicesUtil;.b 

I/dalvikvm(11358): DexOpt: unable to optimize static field ref 0x07cf at 0x46 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.b 

I/dalvikvm(11358): DexOpt: unable to optimize static field ref 0x07cc at 0x66 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.b 

D/Prime31 (11358): onConnectionFailed: result 4 

D/Prime31 (11358): onConnectionFailed: since user didn't initiate sign-in, failing now. 

D/dalvikvm(11358): GC_CONCURRENT freed 430K, 5% free 9477K/9936K, paused 2ms+2ms, total 27ms 

I/Unity (11358): authenticationFailedEvent: Unknown error 

I/Unity (11358): 

I/Unity (11358): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 54) 

I/Unity (11358): 

E/Prime31 (11358): Exception running command on UI thread: Not connected. Call connect() and wait for onConnected() to be called. 

D/dalvikvm(11358): GC_CONCURRENT freed 385K, 5% free 9477K/9936K, paused 2ms+2ms, total 27ms 

D/dalvikvm(6765): GC_CONCURRENT freed 417K, 7% free 9483K/10172K, paused 7ms+2ms, total 32ms 

E/Prime31 (11358): Exception running command on UI thread: Not connected. Call connect() and wait for onConnected() to be called. 

D/dalvikvm(11358): GC_CONCURRENT freed 385K, 5% free 9478K/9936K, paused 2ms+2ms, total 29ms 

D/dalvikvm(11358): GC_CONCURRENT freed 387K, 5% free 9478K/9936K, paused 6ms+1ms, total 62ms 

D/Prime31 (11358): isGooglePlayServicesAvailable returned 0 

D/Prime31 (11358): beginUserInitiatedSignIn: continuing pending sign-in flow. 

D/Prime31 (11358): resolveConnectionResult: trying to resolve result: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{423c8fe8: [email protected]}} 

D/Prime31 (11358): --------------------- result has resolution. Starting it. -------------------- 

I/ActivityManager( 506): START u0 {cmp=com.phyken.wizardopstactics/com.prime31.PlayServicesProxyActivity} from pid 11358 

D/dalvikvm(11358): GC_CONCURRENT freed 384K, 5% free 9481K/9936K, paused 5ms+4ms, total 80ms 

回答

0

1我们的错误日志)没有使用的资源文件夹两种服务有任何问题。所有资源都将放在最终APK上,只需注意资源名称,以免发生冲突。最好的做法是使用后缀(例如:fb_logo.png和google_logo.png,而不是两张logo.png图片)

2)不需要!

如果您发布错误日志,它会更容易帮助并指出确切的问题!

+0

嗨thiagolr似乎已经在许多文件的前缀。有一些string.xml文件,它似乎必须手动合并。另外我已经添加了我相信特定错误的logcat。我听说res文件夹的这个用户可能是Unity3D的限制,但不确定。选项2是我的最后手段,我想让游戏代码库真正跨平台的一种方法。 – PhykenKunal

+0

你不应该手动合并strings.xml文件,这应该会自动运行! – thiagolr