Search Unity

Feedback please add define to UDP

Discussion in 'Unity Distribution Portal (UDP)' started by unclejey34, Nov 30, 2021.

  1. unclejey34

    unclejey34

    Joined:
    Dec 21, 2017
    Posts:
    53
    Hi!

    please add define derective UNITY_UDP to UDP package.

    i need to strip code for different platforms.

    problem is UDP plugin thrown error while trying to connect in non-udp modes

    Code (CSharp):
    1. 11-30 15:22:40.753: E/Unity(3272): AndroidJavaException: java.lang.ClassNotFoundException: com.unity.udp.sdk.InitCallback
    2. 11-30 15:22:40.753: E/Unity(3272): java.lang.ClassNotFoundException: com.unity.udp.sdk.InitCallback
    3. 11-30 15:22:40.753: E/Unity(3272):     at java.lang.Class.classForName(Native Method)
    4. 11-30 15:22:40.753: E/Unity(3272):     at java.lang.Class.forName(Class.java:454)
    5. 11-30 15:22:40.753: E/Unity(3272):     at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    6. 11-30 15:22:40.753: E/Unity(3272):     at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
    7. 11-30 15:22:40.753: E/Unity(3272):     at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
    8. 11-30 15:22:40.753: E/Unity(3272):     at android.os.Handler.dispatchMessage(Handler.java:102)
    9. 11-30 15:22:40.753: E/Unity(3272):     at android.os.Looper.loop(Looper.java:223)
    10. 11-30 15:22:40.753: E/Unity(3272):     at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
    11. 11-30 15:22:40.753: E/Unity(3272): Caused by: java.lang.ClassNotFoundException: com.unity.udp.sdk.InitCallback
    12. 11-30 15:22:40.753: E/Unity(3272):     ... 8 more
    13. 11-30 15:22:40.753: E/Unity(3272):   at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0
    14. 11-30 15:22:40.753: E/Unity(3272):   at UnityEngine.AndroidJNISafe.FindClass (System.String name) [0x00000] in <00000000000000000000000000000000>:0
    15. 11-30 15:22:40.753: E/Unity(3272):   at UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String className) [0x00000] in <000000000000000000000000
    16.  
     
  2. unclejey34

    unclejey34

    Joined:
    Dec 21, 2017
    Posts:
    53
  3. Unity-Boon

    Unity-Boon

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    135
    Hi,

    Thanks for your suggestion. I will include this as the feature request to the UDP development team.
     
  4. unclejey34

    unclejey34

    Joined:
    Dec 21, 2017
    Posts:
    53
    Thank you so much! You're the best!