统一名称'unzip'在当前上下文中不存在

时间:2017-03-12 09:30:07

标签: c# unity3d

请帮我解决这个错误,请我搜索很多,但一无所获。

/*====== Copyright (c) 2013-2014 Qualcomm Connected Experiences, Inc. All Rights Reserved. Qualcomm Confidential and Proprietary =========*/

using System.IO; 
using UnityEditor;

namespace Vuforia.EditorClasses  { 

    /// <summary> 
    /// class wrapping a JS functionality to unzip a file, registers itself at the Unzipper Singleton to provide the functionality. 
    /// </summary>
    [InitializeOnLoad] 
    public class SharpZipLibUnzipper : IUnzipper { 
        /// <summary> 
        /// register an instance of this class at the singleton immediately 
        /// </summary> 
        static SharpZipLibUnzipper() {
            Unzipper.Instance = new SharpZipLibUnzipper(); 
        } 

        public Stream UnzipFile(string path, string fileNameinZip) {
            #if !EXCLUDE_JAVASCRIPT 
            return Unzip.Unzip(path, fileNameinZip); 
            #else return null; 
            #endif 
        } 
    } 
}     

enter image description here enter image description here

2 个答案:

答案 0 :(得分:1)

更改行以引用较新版本的Vuforia。他们应该自己清理了


cat ~/.ssh/id_rsa.pub 

答案 1 :(得分:0)

当您构建时会发生这种情况,但在构建过程中会出现错误。 Vuforia试图重新导入元素,但没有找到它。您可以更正错误并切换平台,然后返回到您正在构建的平台,或重新启动编辑器。