Android 应用程序在 Unity 启动画面上崩溃

标签 android unity3d android-logcat vuforia

所以,我知道这是一个重复的问题,但我的问题似乎与其中任何一个都不匹配。

我使用的是 Unity 5.0.1,它和我之前使用的 4.6 一样崩溃。 我的应用程序运行示例应用程序,但只有当我制作自己的自定义应用程序时它才会崩溃。

我必须解释一下,我也使用 Vuforia,这又不是 Vuforia 的问题。

我的带有错误过滤器的 LogCat 显示:

04-28 12:27:59.946: A/libc(5382): Fatal signal 11 (SIGSEGV) at 0x00000004 (code=1), thread 5397 (UnityMain)
04-28 12:28:00.376: E/InputDispatcher(426): channel '42030b20 com.rjj.roads/com.rjj.roads.UnityPlayerNativeActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
04-28 12:28:00.401: E/Surface(122): queueBuffer: error queuing buffer to SurfaceTexture, -32
04-28 12:28:00.401: E/Camera2-Device(122): enqueue_buffer: Error queueing buffer to native window: Broken pipe (-32)
04-28 12:28:00.431: E/Surface(122): queueBuffer: error queuing buffer to SurfaceTexture, -32
04-28 12:28:00.431: E/Camera2-Device(122): enqueue_buffer: Error queueing buffer to native window: Broken pipe (-32)
04-28 12:28:00.446: E/Surface(122): queueBuffer: error queuing buffer to SurfaceTexture, -32
04-28 12:28:00.446: E/Camera2-Device(122): enqueue_buffer: Error queueing buffer to native window: Broken pipe (-32)
04-28 12:32:33.086: E/MPL-storeload(426): calData from inv_save_mpl_states, size=2
04-28 12:32:33.796: E/MPL-storeload(426): calData from inv_save_mpl_states, size=2
04-28 12:32:49.286: E/BluetoothMap(5496): Could not bind to Bluetooth MAP Service with Intent { act=android.bluetooth.IBluetoothMap }
04-28 12:32:50.321: E/NfcNciHal(625): StartupConfig::append: invalid length at newContent[0]

我的统一设置是正确的 OpenGL 2.x,应用程序名称设置为全部大写。我什至正确输入了 Vuforia 应用程序 key 。

I understand you might want more info and I am wiling to show you on request, but from the errors could you please tell me what the problem is first?

最佳答案

我将它剥离到最后一个场景,发现还没有修复。最后也删除了所有对象,只剩下 ARCamera 和 ImageTarget。

嗯,在学习创建 ImageTarget 时,我不小心创建了两个具有相同图像的数据库。许可证 key 也类似。每个数据库都有自己的 key 。

底线:我为错误的目标使用了错误的 key 。将它们切换回来,帮助应用程序再次运行。

关于Android 应用程序在 Unity 启动画面上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29912671/

相关文章:

android - 在android中调用soap webservices的登录表单

Android: strings.xml 自动显示standalone ="no"

java - 如何使用 ddmlib 获取 logcat 数据?

java - 尝试在 Android 中生成 PDF 时出现 FileNotFoundException

android - adb logcat -f log.txt 错误: couldn't open output file: Read-only file system

java - 将项目导出为 jar 时删除 Jacoco 库依赖项

c# - 在 C# 平面中绘制粗细可变的羽化线

c# - 在 Unity3D 实例化的 UI 元素之间创建导航

c# - 如何在 Unity 中编辑网格/顶点

php - 用手指在移动 Web 应用程序中滑动页面