Search Unity

UWP bulit Error! Is anyone meet with?

Discussion in 'Windows' started by zhangnong, Jun 11, 2018.

  1. zhangnong

    zhangnong

    Joined:
    Feb 16, 2017
    Posts:
    15
    upload_2018-6-11_18-7-33.png

    upload_2018-6-11_18-7-55.png

    upload_2018-6-11_18-8-29.png

    upload_2018-6-11_18-9-3.png

    Unity3d 2017.4.1f1
    when bulid in UWP ,it occured. I speculate that the Ionic.Zlib.dll is .Net 3.5, my Unity is .Net 4.6,this lead to it.
    How can i do ?please help me
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    The APIs in your screenshot aren't supported on .NET scripting backend. You could switch to IL2CPP scripting backend.
     
  3. zhangnong

    zhangnong

    Joined:
    Feb 16, 2017
    Posts:
    15
    if I change like that
    upload_2018-6-12_9-55-13.png

    one error occurs,"error CS0246: The type or namespace name 'Ionic' could not be found (are you missing a using directive or an assembly reference?)",because in my c# scripts , i code "using using Ionic.Zlib;".
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
  5. zhangnong

    zhangnong

    Joined:
    Feb 16, 2017
    Posts:
    15
    built with no error, I got some files.Like this
    upload_2018-6-13_18-35-32.png

    when open it by vs2017 ,error like this
    upload_2018-6-13_18-40-46.png
     

    Attached Files:

  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Unfortunately I can't read that error message. Do you have C++ support installed in your Visual Studio?
     
  7. zhangnong

    zhangnong

    Joined:
    Feb 16, 2017
    Posts:
    15
    Problem has been solved,I dont use the .dll files,but another three files
    upload_2018-6-21_9-23-21.png
    this files is related audio analysis.