使用 Unity 2017.1 构建时 Tango Unity 示例崩溃

Tango Unity examples crashing when built with Unity 2017.1

我刚刚安装了 Unity 2017.1.0f3 并尝试编译这些示例,但它们在我的 Lenovo Phab 2 Pro(Tango 版本 1.55)上启动时全部崩溃。

我在Unity中加载了项目tango-examples-unity\UnityExamples,没有修改它,Unity将其转换为Unity 2017.1.0f3版本。该建筑似乎 运行 很好,但在 phone 上,生成的应用程序在启动时崩溃。

我在 Unity 5.6 上一切正常。也许 Unity 2017.1 还不支持 Tango SDK,但我找不到任何相关信息。

以下是构建应用程序后 Unity 上的控制台输出,以及当我启动应用程序并崩溃时 Tango 的日志。

Unity console output

探戈日志:

    07-13 18:26:07.867 1261-1409/? W/BroadcastQueue: Permission Denial: broadcasting Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } from com.android.launcher3 (pid=4828, uid=10025) requires com.google.android.launcher.permission.RECEIVE_LAUNCH_BROADCASTS due to receiver com.google.android.gms/.icing.proxy.ApplicationLauncherReceiver
    07-13 18:26:07.868 1261-1409/? W/BroadcastQueue: Permission Denial: receiving Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$GmsExternalReceiver requires com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS due to sender com.android.launcher3 (uid 10025)
    07-13 18:26:07.882 544-3682/? E/audio_route: audio_route_apply_and_update_path:name(speaker-protected)
    07-13 18:26:07.882 544-3682/? E/audio_route: audio_route_apply_and_update_path:name(vi-feedback)
    07-13 18:26:07.882 544-3682/? E/voice: voice_is_in_call_rec_stream: input stream is NULL
    07-13 18:26:07.883 544-3682/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
    07-13 18:26:07.883 544-3682/? E/audio_route: audio_route_apply_and_update_path:name(spkr-vi-record)
    07-13 18:26:07.894 544-3682/? E/voice: voice_is_in_call_rec_stream: input stream is NULL
    07-13 18:26:07.894 544-3682/? E/ACDB-LOADER: Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
    07-13 18:26:07.894 544-3682/? E/ACDB-LOADER: Error: ACDB audproc returned = -19
    07-13 18:26:07.894 544-3682/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
    07-13 18:26:07.894 544-3682/? E/ACDB-LOADER: Error: ACDB AFE returned = -19
    07-13 18:26:07.895 544-3682/? E/audio_route: audio_route_apply_and_update_path:name(low-latency-playback speaker-protected)
    07-13 18:26:07.936 8061-8061/? E/AndroidRuntime: FATAL EXCEPTION: main
                                                     Process: com.projecttango.unityexamples, PID: 8061
                                                     java.lang.Error: FATAL EXCEPTION [main]
                                                     Unity version     : 2017.1.0f3
                                                     Device model      : LENOVO Lenovo PB2-690M
                                                     Device fingerprint: Lenovo/phinny_row/PB2PRO:6.0.1/MMB29M/PB2-690M_S200100_170228:user/release-keys

                                                     Caused by: java.lang.NoSuchMethodError: No direct method <init>(Landroid/content/ContextWrapper;)V in class Lcom/unity3d/player/UnityPlayer; or its super classes (declaration of 'com.unity3d.player.UnityPlayer' appears in /data/app/com.projecttango.unityexamples-2/base.apk)
                                                         at com.google.unity.GoogleUnityActivity.onCreate(GoogleUnityActivity.java:106)
                                                         at android.app.Activity.performCreate(Activity.java:6285)
                                                         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
                                                         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2370)
                                                         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2477)
                                                         at android.app.ActivityThread.access0(ActivityThread.java:150)
                                                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
                                                         at android.os.Handler.dispatchMessage(Handler.java:102)
                                                         at android.os.Looper.loop(Looper.java:148)
                                                         at android.app.ActivityThread.main(ActivityThread.java:5418)
                                                         at java.lang.reflect.Method.invoke(Native Method)
                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    07-13 18:26:07.938 1261-4787/? W/ActivityManager:   Force finishing activity com.projecttango.unityexamples/com.google.unity.GoogleUnityActivity
    07-13 18:26:08.290 1261-1453/? E/WallpaperManagerService: onEvent:settings_system.xml.bak,changedFile:/data/system/users/0/settings_system.xml.bak
    07-13 18:26:08.294 1261-1453/? E/WallpaperManagerService: onEvent:settings_system.xml,changedFile:/data/system/users/0/settings_system.xml
    07-13 18:26:08.294 1261-1453/? E/WallpaperManagerService: onEvent:settings_system.xml.bak,changedFile:/data/system/users/0/settings_system.xml.bak
    07-13 18:26:08.545 1261-1409/? W/ActivityManager: Activity pause timeout for ActivityRecord{e8388eb u0 com.projecttango.unityexamples/com.google.unity.GoogleUnityActivity t822 f}

经测试确认Tango SDK目前不支持Unity 2017.1,目前只支持Unity 5.6