Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question Proguard

Discussion in 'Unity Distribution Portal (UDP)' started by VoxelBoy, May 19, 2021.

  1. VoxelBoy

    VoxelBoy

    Joined:
    Nov 7, 2008
    Posts:
    226
    Hey there,

    I'm trying to initialize UDP in my project that's using Proguard but I seem to be unable to prevent Proguard from stripping UDP classes, even with this snippet in my proguard-user.txt file:

    -keep class com.unity.udp.** { *; }


    Still getting this error at runtime:
    upload_2021-5-19_12-23-30.png

    Any ideas?
    Is it possible that the proguard-user.txt file in Assets/Plugins/Android does not apply to .aar's in Packages (such as UDP)?