Vuforia无法在Android L上初始化?

时间:2016-06-21 16:53:51

标签: android unity3d vuforia android-5.1.1-lollipop

我想弄清楚如何使用Unity开发Vuforia 5.5.9。我做了一个可以与我的笔记本电脑的网络摄像头一起工作的测试项目,但是当我尝试将它放在运行Android 5.1.1 Lollipop的手机上时,我得到一个灰色屏幕,上面写着" Vuforia Initialization Error& #34;并且"无法初始化Vuforia",并且在底部有"关闭"按钮。这看起来像same error people get when they run into Android M permission issues,但我的构建中没有任何涉及Android M的内容。我正在使用Android sdk 22版(棒棒糖),有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):

1 个答案:

答案 0 :(得分:1)

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

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