Unity SDK Planar Example Errors on Android

0 votes
asked Feb 13, 2016 by tim_scopear (140 points)

Hi, I'm trying to build the the Planar Example from the Unity SDK (Unity 5.3.1f1) and i'm getting the folowing error on my devise (Nexus 7, Android 4.4.4):


D/Unity   ( 6170): GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_AMD_program_binary_Z400 GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_robustness GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragment_precision_high GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_depth_texture_cube_map GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_OES_vertex_array_object GL_QCOM_alpha_test GL_QCOM_binning_control GL_QCOM_driver_control GL_QCOM_perfmon_global_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering GL_QCOM_writeonly_rendering GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_color_bu

D/Unity   ( 6170): ffer_float GL_EXT_color_buffer_half_float GL_EXT_disjoint_timer_query 

I/Unity   ( 6170): AndroidJavaException: java.lang.NullPointerException

I/Unity   ( 6170): java.lang.NullPointerException

I/Unity   ( 6170): at com.inglobetechnologies.armedia.tracker.sdk.ARMediaVisualTracker.<init>(ARMediaVisualTracker.java:180)

I/Unity   ( 6170): at com.inglobetechnologies.armedia.tracker.sdk.ARMediaPlanarTracker.<init>(ARMediaPlanarTracker.java:29)

I/Unity   ( 6170): at com.inglobetechnologies.armedia.tracker.sdk.ARMediaPlanarTracker.getInstance(ARMediaPlanarTracker.java:23)

I/Unity   ( 6170): at com.inglobetechnologies.armedia.tracker.sdk.ARMediaTrackingUnityPlugin.setApplicationKeyForPlanarTracker(ARMediaTrackingUnityPlugin.java:163)

I/Unity   ( 6170): at com.unity3d.player.UnityPlayer.nativeRender(Native Method)

I/Unity   ( 6170): at com.unity3d.player.UnityPlayer.a(Unknown Source)

I/Unity   ( 6170): at com.unity3d.player.UnityPlayer$b.run(Unknown Source)

I/Unity   ( 6170):   at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <filename unknown>:0 

I/Unity   ( 6170):   at UnityEngine.AndroidJNISafe.CallStaticVoidMethod (IntPtr clazz, IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in <filename unknown>:0 

I/Unity   ( 6170):   at UnityEngine.AndroidJavaObject._CallStatic (System.String me

1 Answer

0 votes
answered Feb 13, 2016 by Andrea (1,010 points)

Hi, 

Remember to set the Bundle Identifier (in Player Settings -> Other Settings): com.inglobetechnologies.ARMediaSDKUnityExample.

For more information about this, read the README files in Assets->Examples->ARMedia and  Assets->Scripts->ARMedia.

 

Please let us know if this solves your issues.

Andrea

commented Feb 16, 2016 by tim_scopear (140 points)
Hi,

I turns out i had to rename ARMediaSDK_AndroidManifest.xml to AndroidManifest.xml
Welcome to Developer Portal Q&A, where you can ask questions and receive answers from other members of the community.
...