RenderHeads / UnityPlugin-AVProVideo

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

IL2CPP build not working on android at all #1200

Closed fxmdeveloper closed 2 years ago

fxmdeveloper commented 2 years ago

Describe the issue Hi, I tried to rebuild an app that previously working properly with avpro to 32 and 64 bit due to gplay requirement. The problem is the video not working at all with error AndroidJavaException: java.lang.NoClassDefFoundError: com.RenderHeads.AVProVideo.AVProMobileVideo (no crash, just no video shown). I already change the library inside the arm64-v8a to CPU ARM64. This problem even happen on fresh project on unity 2019.4.19f1 with only AVPro 1.11.7 package from package manager. I'm using the 10_Demo_Transparency scene to test

Your Setup (please complete the following information):

To Reproduce

  1. Create new unity 3D project
  2. Import AVPro from package manager and change each lib in arm64-v8a to ARM64
  3. Change build setting to IL2CPP and activate arm7 and arm64 options then build apk

Screenshots image image

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Instead email the link to us unitysupport@renderheads.com

Chris-RH commented 2 years ago

Hi @fxmdeveloper , I'm wondering if your problem is similar to this one: https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/112 Let me know if that fixes it for you.

fxmdeveloper commented 2 years ago

It's similar but the proposed solutions not working. I already changed all of the setting on the arm64 to CPU ARM64 and it still showing that error on android when I build it. The screenshot is from a fresh new project (just created unity 3D project) and only put AVPro. I even use the demo scene to test. A little note, I tried to use the new v2 (trial version) and it doesn't work too. Is there other setting that need to be set? Other than changing the platform setting on arm64?

AndrewRH commented 2 years ago

Hmm that's strange. Can you check that you don't have any minify options enabled in Player Settings?

We have notes about that and other Android platform related things here.

Chris-RH commented 2 years ago

Hi @fxmdeveloper, Are you still having a problem with this?

Chris-RH commented 2 years ago

Hi @fxmdeveloper, Are you still having a problem with this?

Chris-RH commented 2 years ago

Closed due to lack of response, please reopen if this is still and issue.