android - Vuforia 在 Android L 上初始化失败?

标签 android unity-game-engine vuforia android-5.1.1-lollipop

我正在尝试了解如何使用 Unity 开发 Vuforia 5.5.9。我做了一个适用于笔记本电脑网络摄像头的测试项目,但是当我尝试将它放在运行 Android 5.1.1 Lollipop 的手机上时,我得到一个灰色屏幕,显示“Vuforia 初始化错误”和“无法初始化 Vuforia” ”,底部有一个“关闭”按钮。这看起来像 same error people get when they run into Android M permission issues ,但我的构建中的任何地方都没有涉及 Android M。我使用的是 Android SDK 版本 22( Lollipop ),我的 list 中有 minSdkVersion="19"和 targetSdkVersion="22",并且如前所述,我在手机上运行 5.1.1。

我如何才能获得有关问题所在的更多信息?我是 Vuforia 和 Unity 开发的新手,所以我不知道如何获得有关失败的更多详细信息(或者这种信息是否可用)。我所知道的是它给我“无法初始化 Vuforia”错误,每当我用谷歌搜索该错误时,我只会得到有关 Android M 权限错误的结果,这不会影响我。

编辑:我使用的是三星 Note 4。我查看了 logcat,这是我得到的输出:

E/Unity   (27638): Unable to find libaudioplugingvrunity
D/Unity   (27638):  GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_half_float GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_compressed_ETC1_RGB8_texture GL_AMD_compressed_ATC_texture GL_KHR_texture_compression_astc_ldr GL_OES_texture_npot GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_OES_texture_3D GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_QCOM_alpha_testGL_OES_depth24 GL_OES_packed_depth_stencil GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_EXT_sRGB GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_floatGL_OES_texture_half_float_linear GL_EXT_texture_type_2_10_10_10_REV GL_EXT_texture_sRGB_decode GL_OES_element_index_uint GL_EXT_copy_image GL_EXT_geometry_shader GL_EXT_tessellation_shaderGL_OES_texture_stencil8 GL_EXT_shader_io_blocks GL_OES_shader_image_atomic GL_OES_sample_variables GL_EXT_texture_border_clamp GL_EXT_multisampled_render_to_texture GL_OES_shader_multisample_interpolation GL_EXT_texture_cube_map_array GL_EXT_d
D/Unity   (27638): raw_buffers_indexed GL_EXT_gpu_shader5 GL_EXT_robustness GL_EXT_texture_buffer GL_OES_texture_storage_multisample_2d_array GL_OES_sample_shading GL_OES_get_program_binary GL_EXT_debug_labelGL_KHR_blend_equation_advancedGL_KHR_blend_equation_advanced_coherent GL_QCOM_tiled_rendering GL_ANDROID_extension_pack_es31a GL_EXT_primitive_bounding_box GL_OES_standard_derivativesGL_OES_vertex_array_object GL_EXT_disjoint_timer_query GL_KHR_debug GL_EXT_sRGB_write_control
I/Unity   (27638): Setting BehaviourComponentFactory
I/Unity   (27638):
I/Unity   (27638): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
I/Unity   (27638):
I/Unity   (27638): Trackable target lost
I/Unity   (27638):
I/Unity   (27638): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
I/Unity   (27638):
E/Unity   (27638): Vuforia initialization failed
E/Unity   (27638):
E/Unity   (27638): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
E/Unity   (27638):
E/Unity   (27638): Vuforia initialization failed:
E/Unity   (27638):
E/Unity   (27638): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
E/Unity   (27638):

最佳答案

当我创建一个新项目时,我的问题就消失了。我对新项目所做的一件事是我将方向设置为 Landscape Left(而不是 Auto)。

可能与此有关的另一件事是,我认为我可能在之前的项目中安装了大量随机包,可能包括 Google VR,这可能会造成干扰。

关于android - Vuforia 在 Android L 上初始化失败?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37950316/

相关文章:

unity-game-engine - Unity - 是否有必要从游戏构建中排除 AssetBundles 中使用的资源?

three.js - 使用 Three.js 遮挡现实世界的对象

unity-game-engine - 如何让Vuforia在Unity中停止跟踪?

android - Flutter Android Build Failed : com. android.tools.r8.CompilationFailedException: 编译未能完成

android - 我的应用程序在横向模式下崩溃

android - android fragment 中的谷歌地图v2

c# - 比较游戏对象 增强现实游戏,Unity,Vuforia,C#

android - 检测呼出电话是否已被接听

unity-game-engine - 团结 : Instantiating prefab appears at wrong location

c# - 在Unity中使用JsonUtility.FromJson反序列化JSON