简体   繁体   English

Nextpeer.LaunchDashboard();导致Nextpeer Unity游戏崩溃

[英]Nextpeer Unity Game Crashes on Nextpeer.LaunchDashboard();

I have integrated the latest plugin, and followed the tutorial step by step. 我已经集成了最新的插件,并逐步按照教程进行操作。 When I call the Nextpeer.LaunchDashboard(); 当我调用Nextpeer.LaunchDashboard(); method the screen goes black and in some seconds I get the info that application has stopped working. 方法屏幕变黑,几秒钟后我得到该应用程序已停止工作的信息。 Any clues? 有什么线索吗? I am running Unity 4,3 and my device is Samsung Galaxy s2 我正在运行Unity 4,3,而我的设备是Samsung Galaxy s2

Documenting the answer for posterity. 记录后代的答案。 The crash was reported as: 该崩溃报告为:

Caused by: java.lang.NoClassDefFoundError: com.nextpeer.android.R$style 造成原因:java.lang.NoClassDefFoundError:com.nextpeer.android.R $ style

This happened because the package name in Nextpeer's AndroidManifest.xml (Assets/Plugins/Android/Nextpeer/AndroidManifest.xml) was changed (to the game's package name, in this case). 发生这种情况的原因是,Nextpeer的AndroidManifest.xml(Assets / Plugins / Android / Nextpeer / AndroidManifest.xml)中的程序包名称已更改(在本例中为游戏的程序包名称)。 Reverting the package name back to com.nextpeer.android solved the issue. 将包名称恢复为com.nextpeer.android解决了该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM