加载Metaio ToolBox库时出错

时间:2014-07-17 06:39:27

标签: android android-studio metaio

在Android中加载Metaio sdk时出现此错误。 我确实已经加载了所有原生.so文件以及apk以及项目中包含的metaiosdk jar。

有趣的部分(我认为)是关于工具箱的底部..但我包括整个日志是安全的..

结果是成像器尝试启动,然后应用程序崩溃并重新启动。任何帮助将不胜感激..

07-16 23:23:32.757  30247-30628/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libavutil.so 0x428a7278
07-16 23:23:32.757  30247-30628/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libavutil.so' already loaded in same CL 0x428a7278
07-16 23:23:32.757  30247-30628/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libswscale.so 0x428a7278
07-16 23:23:32.757  30247-30628/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libswscale.so' already loaded in same CL 0x428a7278
07-16 23:23:32.767  30247-30628/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libavcodec.so 0x428a7278
07-16 23:23:32.767  30247-30628/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libavcodec.so' already loaded in same CL 0x428a7278
07-16 23:23:32.767  30247-30628/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libavformat.so 0x428a7278
07-16 23:23:32.767  30247-30628/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libavformat.so' already loaded in same CL 0x428a7278
07-16 23:23:32.767  30247-30628/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libswresample.so 0x428a7278
07-16 23:23:32.767  30247-30628/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libswresample.so' already loaded in same CL 0x428a7278
07-16 23:23:32.767  30247-30628/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libmetaiosdk.so 0x428a7278
07-16 23:23:32.767  30247-30628/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libmetaiosdk.so' already loaded in same CL 0x428a7278
07-16 23:23:32.807  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to find class referenced in signature (Lcom/metaio/sdk/jni/IToolboxCallback;)
07-16 23:23:32.807  30247-30628/com.test.metaioapp I/dalvikvm﹕ Could not find method com.metaio.sdk.jni.IToolboxCallback.add3DMapTrackingGeometry, referenced from method com.metaio.sdk.jni.MetaioSDKJNI.SwigDirector_IToolboxCallback_add3DMapTrackingGeometry
07-16 23:23:32.807  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to resolve virtual method 18294: Lcom/metaio/sdk/jni/IToolboxCallback;.add3DMapTrackingGeometry ()Lcom/metaio/sdk/jni/IGeometry;
07-16 23:23:32.807  30247-30628/com.test.metaioapp D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0000
07-16 23:23:32.807  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to find class referenced in signature (Lcom/metaio/sdk/jni/IToolboxCallback;)
07-16 23:23:32.807  30247-30628/com.test.metaioapp I/dalvikvm﹕ Could not find method com.metaio.sdk.jni.IToolboxCallback.onCameraCalibrationProgress, referenced from method com.metaio.sdk.jni.MetaioSDKJNI.SwigDirector_IToolboxCallback_onCameraCalibrationProgress
07-16 23:23:32.807  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to resolve virtual method 18295: Lcom/metaio/sdk/jni/IToolboxCallback;.onCameraCalibrationProgress (JF)V
07-16 23:23:32.817  30247-30628/com.test.metaioapp D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0000
07-16 23:23:32.817  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to find class referenced in signature (Lcom/metaio/sdk/jni/IToolboxCallback;)
07-16 23:23:32.817  30247-30628/com.test.metaioapp I/dalvikvm﹕ Could not find method com.metaio.sdk.jni.IToolboxCallback.onError, referenced from method com.metaio.sdk.jni.MetaioSDKJNI.SwigDirector_IToolboxCallback_onError
07-16 23:23:32.817  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to resolve virtual method 18296: Lcom/metaio/sdk/jni/IToolboxCallback;.onError (Lcom/metaio/sdk/jni/ETOOLBOX_ERROR;)V
07-16 23:23:32.817  30247-30628/com.test.metaioapp D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0004
07-16 23:23:32.817  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to find class referenced in signature (Lcom/metaio/sdk/jni/IToolboxCallback;)
07-16 23:23:32.817  30247-30628/com.test.metaioapp I/dalvikvm﹕ Could not find method com.metaio.sdk.jni.IToolboxCallback.onMapExtended, referenced from method com.metaio.sdk.jni.MetaioSDKJNI.SwigDirector_IToolboxCallback_onMapExtended
07-16 23:23:32.817  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to resolve virtual method 18297: Lcom/metaio/sdk/jni/IToolboxCallback;.onMapExtended (JJ)V
07-16 23:23:32.817  30247-30628/com.test.metaioapp D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0000
07-16 23:23:32.827  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to find class referenced in signature (Lcom/metaio/sdk/jni/IToolboxCallback;)
07-16 23:23:32.827  30247-30628/com.test.metaioapp I/dalvikvm﹕ Could not find method com.metaio.sdk.jni.IToolboxCallback.onNewMapFeature, referenced from method com.metaio.sdk.jni.MetaioSDKJNI.SwigDirector_IToolboxCallback_onNewMapFeature
07-16 23:23:32.827  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to resolve virtual method 18298: Lcom/metaio/sdk/jni/IToolboxCallback;.onNewMapFeature ()Lcom/metaio/sdk/jni/IGeometry;
07-16 23:23:32.827  30247-30628/com.test.metaioapp D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0000
07-16 23:23:32.827  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to find class referenced in signature (Lcom/metaio/sdk/jni/IToolboxCallback;)
07-16 23:23:32.827  30247-30628/com.test.metaioapp I/dalvikvm﹕ Could not find method com.metaio.sdk.jni.IToolboxCallback.onScaleOffsetCalibrated, referenced from method com.metaio.sdk.jni.MetaioSDKJNI.SwigDirector_IToolboxCallback_onScaleOffsetCalibrated
07-16 23:23:32.827  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to resolve virtual method 18299: Lcom/metaio/sdk/jni/IToolboxCallback;.onScaleOffsetCalibrated ()V
07-16 23:23:32.827  30247-30628/com.test.metaioapp D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0000
07-16 23:23:32.827  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to find class referenced in signature (Lcom/metaio/sdk/jni/IToolboxCallback;)
07-16 23:23:32.827  30247-30628/com.test.metaioapp I/dalvikvm﹕ Could not find method com.metaio.sdk.jni.IToolboxCallback.onStateChanged, referenced from method com.metaio.sdk.jni.MetaioSDKJNI.SwigDirector_IToolboxCallback_onStateChanged
07-16 23:23:32.827  30247-30628/com.test.metaioapp W/dalvikvm﹕ VFY: unable to resolve virtual method 18300: Lcom/metaio/sdk/jni/IToolboxCallback;.onStateChanged (Lcom/metaio/sdk/jni/ETOOLBOX_STATE;)V
07-16 23:23:32.837  30247-30628/com.test.metaioapp D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0004
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libavutil.so 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libavutil.so' already loaded in same CL 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libswscale.so 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libswscale.so' already loaded in same CL 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libavcodec.so 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libavcodec.so' already loaded in same CL 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libavformat.so 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libavformat.so' already loaded in same CL 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libswresample.so 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libswresample.so' already loaded in same CL 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libmetaiosdk.so 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libmetaiosdk.so' already loaded in same CL 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libavutil.so 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libavutil.so' already loaded in same CL 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libswscale.so 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libswscale.so' already loaded in same CL 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libavcodec.so 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libavcodec.so' already loaded in same CL 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libavformat.so 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libavformat.so' already loaded in same CL 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libswresample.so 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libswresample.so' already loaded in same CL 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libmetaiosdk.so 0x428a7278
07-16 23:23:32.937  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libmetaiosdk.so' already loaded in same CL 0x428a7278
07-16 23:23:32.947  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libavutil.so 0x428a7278
07-16 23:23:32.947  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libavutil.so' already loaded in same CL 0x428a7278
07-16 23:23:32.947  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libswscale.so 0x428a7278
07-16 23:23:32.947  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libswscale.so' already loaded in same CL 0x428a7278
07-16 23:23:32.947  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libavcodec.so 0x428a7278
07-16 23:23:32.947  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libavcodec.so' already loaded in same CL 0x428a7278
07-16 23:23:32.947  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libavformat.so 0x428a7278
07-16 23:23:32.947  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libavformat.so' already loaded in same CL 0x428a7278
07-16 23:23:32.947  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libswresample.so 0x428a7278
07-16 23:23:32.947  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libswresample.so' already loaded in same CL 0x428a7278
07-16 23:23:32.947  30247-30247/com.test.metaioapp D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.metaioapp-13/libmetaiosdk.so 0x428a7278
07-16 23:23:32.947  30247-30247/com.test.metaioapp D/dalvikvm﹕ Shared lib '/data/app-lib/com.test.metaioapp-13/libmetaiosdk.so' already loaded in same CL 0x428a7278
07-16 23:23:32.967  30247-30631/com.test.metaioapp V/MediaPlayer﹕ decode(146, 0, 9520)
07-16 23:23:33.007  30247-30247/com.test.metaioapp I/SensorManagerA﹕ getReportingMode :: sensor.mType = 3
07-16 23:23:33.007  30247-30247/com.test.metaioapp D/SensorManager﹕ registerListener :: 7, MPL Orientation (android deprecated format), 20000, 0,
07-16 23:23:33.037  30247-30247/com.test.metaioapp V/MediaPlayer-JNI﹕ native_setup
07-16 23:23:33.037  30247-30247/com.test.metaioapp V/MediaPlayer﹕ constructor
07-16 23:23:33.037  30247-30247/com.test.metaioapp V/MediaPlayer﹕ setListener
07-16 23:23:33.037  30247-30247/com.test.metaioapp I/RES﹕ 2130837613
07-16 23:23:33.037  30247-30247/com.test.metaioapp V/MediaPlayer-JNI﹕ native_setup
07-16 23:23:33.037  30247-30247/com.test.metaioapp V/MediaPlayer﹕ constructor
07-16 23:23:33.047  30247-30247/com.test.metaioapp V/MediaPlayer﹕ setListener
07-16 23:23:33.047  30247-30247/com.test.metaioapp W/dalvikvm﹕ VFY: unable to find class referenced in signature (Lcom/metaio/sdk/jni/IToolbox;)
07-16 23:23:33.047  30247-30247/com.test.metaioapp E/dalvikvm﹕ Could not find class 'com.metaio.sdk.jni.IToolbox', referenced from method com.metaio.sdk.jni.MetaioSDK.CreateToolbox
07-16 23:23:33.047  30247-30247/com.test.metaioapp W/dalvikvm﹕ VFY: unable to resolve new-instance 1898 (Lcom/metaio/sdk/jni/IToolbox;) in Lcom/metaio/sdk/jni/MetaioSDK;
07-16 23:23:33.047  30247-30247/com.test.metaioapp D/dalvikvm﹕ VFY: replacing opcode 0x22 at 0x0010
07-16 23:23:33.047  30247-30247/com.test.metaioapp D/dalvikvm﹕ DexOpt: unable to opt direct call 0x4775 at 0x13 in Lcom/metaio/sdk/jni/MetaioSDK;.CreateToolbox
07-16 23:23:33.057  30247-30247/com.test.metaioapp D/ProgressBar﹕ setProgressDrawable drawableHeight = 0
07-16 23:23:33.097  30247-30247/com.test.metaioapp W/metaio-java﹕ Location provider already running!
07-16 23:23:33.107  30247-30247/com.test.metaioapp E/metaio﹕ 105: IMetaioSDK::startCamera: invalid parameters
07-16 23:23:33.107  30247-30247/com.test.metaioapp E/metaio﹕ onError: 261, IMetaioSDK::startCamera: invalid parameters
07-16 23:23:33.117  30247-30247/com.test.metaioapp D/MetaioCloudPluginTemplate﹕ JunaioARViewTestActivity.onCreate()
07-16 23:23:33.157  30247-30631/com.test.metaioapp V/MediaPlayer﹕ decode(147, 0, 5194)
07-16 23:23:33.227  30247-30631/com.test.metaioapp V/MediaPlayer﹕ decode(151, 44288, 11392)
07-16 23:23:33.257  30247-30247/com.test.metaioapp I/dalvikvm-heap﹕ Grow heap (frag case) to 21.042MB for 3686416-byte allocation
07-16 23:23:33.257  30247-30247/com.test.metaioapp W/AwContents﹕ nativeOnDraw failed; clearing to background color.
07-16 23:23:33.347  30247-30247/com.test.metaioapp D/ProgressBar﹕ updateDrawableBounds: left = 0
07-16 23:23:33.347  30247-30247/com.test.metaioapp D/ProgressBar﹕ updateDrawableBounds: top = 0
07-16 23:23:33.347  30247-30247/com.test.metaioapp D/ProgressBar﹕ updateDrawableBounds: right = 720
07-16 23:23:33.347  30247-30247/com.test.metaioapp D/ProgressBar﹕ updateDrawableBounds: bottom = 6
07-16 23:23:33.347  30247-30247/com.test.metaioapp D/ProgressBar﹕ updateDrawableBounds: mProgressDrawable.setBounds()
07-16 23:23:33.347  30247-30247/com.test.metaioapp W/AwContents﹕ nativeOnDraw failed; clearing to background color.
07-16 23:23:33.577  30247-30638/com.test.metaioapp E/metaio﹕ GLSL shader program failed to link: --From Vertex Shader:
    Error: varying variables do not fit in 8 vectors.
    --From Fragment Shader:
    Error: varying variables do not fit in 8 vectors.
07-16 23:23:33.587  30247-30638/com.test.metaioapp E/metaio﹕ GLSL shader program failed to link: --From Vertex Shader:
    Error: varying variables do not fit in 8 vectors.
    --From Fragment Shader:
    Error: varying variables do not fit in 8 vectors.

1 个答案:

答案 0 :(得分:0)

在我使用metaio的更新版本之前,我也遇到同样的问题来解决这个问题,请按照以下步骤操作。

1) download更新了metaio的sdk并安装.exe文件并转到系统文件夹,如 C:\ Users \ xxx \ Documents \ metaio 并复制metaio sdk并将其粘贴到您的项目中。请参见下图enter image description here

** 2)**在项目的libs文件夹中添加jar文件,并将metaiosdk添加为主项目的库项目,然后按ok.please查看下图enter image description here

** 3)**我认为现在这样可以享受; - )