RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
233 stars 28 forks source link

Unity Cloud - Missing files in classes.dex | Android #1735

Closed Unany closed 7 months ago

Unany commented 8 months ago

Describe the issue Unity cloud builds are stripping the following files from the classes.dex for Android. This is only the case with cloud builds and not the local builds. Please see attached the difference between the two (Note the missing android file in the dex is from a seperate project, so that's expected)

I have tried the following methods to try and fix this but to no avail.

This is visible in empty projects containing only AVPro Core.

Your Setup (please complete the following information):

To Reproduce

  1. Create a new project
  2. Set project settings to use IL2CPP and enable ARM64
  3. Install AVPro Core
  4. Setup Unity Cloud android build
  5. Download APK
  6. Check it in Android studio and notice the missing folders in classes.dex

Logs AndroidJavaException: java.lang.ClassNotFoundException: com.renderheads.AVPro.Video.Manager java.lang.ClassNotFoundException: com.renderheads.AVPro.Video.Manager

Screenshots

correctDex missingdex

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Instead email the link to us unitysupport@renderheads.com

Chris-RH commented 8 months ago

Hmmm, not sure as we don't use cloud build. Seeing as it builds fine locally, I'm not sure this is an "us" thing to fix. Have you tried opening the support issue with Unity?

Unany commented 8 months ago

Hi, I've posted in the Unity Build Automation forums but was wondering if you had any idea of a potential fix?

Chris-RH commented 8 months ago

No, we don't use cloud build.

danhalldubit commented 8 months ago

I'm running into the same issue with Unity 2022.3, both in my existing project and with a fresh Unity project.

I have tried all of the documented troubleshooting steps without luck. Unfortunately I'm unable to build locally to confirm whether a batch mode build would work or run into the same issue.

It's not feasible for me to replace Unity's CI with my own any time soon, so any further insight would be much appreciated @Chris-RH

Chris-RH commented 7 months ago

We don't use Cloud build, so we can give no advice on it. We can only advise on issues specific to AVPro that are occurring in local builds. For cloud build issues, your best bet is the Unity forum. We already have notes to help people with issues that can occur during local builds (https://renderheads.com/content/docs/AVProVideo/articles/platform-android.html#build-notes). Though these are Unity issues that happen to effect AVPro Video, they are not our bugs.