首页 文章

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

提问于
浏览
1

我刚刚安装了Unity 2017.1.0f3,并试图编译这些示例,但所有这些都在我的Lenovo Phab 2 Pro(Tango 1.55版)开始时崩溃了 .

我在Unity中加载项目tango-examples-unity \ UnityExamples而不修改它,Unity将其转换为Unity 2017.1.0f3版本 . 该建筑似乎运行良好,但在手机上生成的应用程序在开始时崩溃 .

在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.access$900(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}

1 回答

  • 0

    经过测试,已经确认Tango SDK目前不支持Unity 2017.1,我们目前仅支持Unity 5.6 .

相关问题