RenderHeads / UnityPlugin-AVProVideo

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

Android build fails in Unity 2022.3, workaround fails for upload to Meta #1616

Closed realitygarage closed 1 year ago

realitygarage commented 1 year ago

The workaround to change the API version 33 does not work when building for meta quest as the upload to meta fails, requiring that the target API be set to 32.

please advise...

see original issue and workaround below

       Change

compileSdkVersion 33

Originally posted by @Chris-RH in https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1541#issuecomment-1547568723

Chris-RH commented 1 year ago

In your gradles (main and launcher Templates), try this:

minSdkVersion 22 targetSDKversion 32 compileSDKversion 33

mathisevaveo commented 1 year ago

Hello @Chris-RH,

I wanted to let you know that I've successfully resolved the bug with your helpful comment. However, the solution I implemented goes beyond your suggestion:

As a result, I'm pleased to inform you that the project is now functioning flawlessly across various Unity builds.

Thank you so much for your assistance!

Chris-RH commented 1 year ago

I'm glad that it works now :)

richardmuthwill commented 6 months ago

This helped me too, thank you so much, I've been spending hours fixing this now.

Unity 2022.3.4f1 Meta XR All-In-One SDK 63.0.0 AVPro Video - Core Android Edition 2.9.3

I also had to force Unity to update the Android SDK to 33 and then used @Chris-RH solution #

In your gradles (main and launcher Templates), try this:

minSdkVersion 22 targetSDKversion 32 compileSDKversion 33