RenderHeads / UnityPlugin-AVProVideo

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

AVPro 3.1.0 requires Android API level 34 which is not supported by Meta Quest #2042

Open alex8b opened 19 hours ago

alex8b commented 19 hours ago

AVPro 3.1.0 is compiled against android-34. Unfortunately Meta Quest Horizon OS only supports android-32. I also can't find a way to download an older version (3.0.x) from the asset store. Is there a way to download 3.0.x? Could you downgrade the API level? Is there maybe some compile switch?

> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > 20 issues were found when checking AAR metadata:

       1.  Dependency 'androidx.media3:media3-exoplayer-dash:1.4.1' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :launcher is currently compiled against android-32.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 7.3.1 is 33.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 34, then update this project to use
           compileSdkVerion of at least 34.

           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).

       2.  Dependency 'androidx.media3:media3-exoplayer-hls:1.4.1' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :launcher is currently compiled against android-32.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 7.3.1 is 33.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 34, then update this project to use
           compileSdkVerion of at least 34.

           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).

       3.  Dependency 'androidx.media3:media3-exoplayer-rtsp:1.4.1' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :launcher is currently compiled against android-32.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 7.3.1 is 33.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 34, then update this project to use
           compileSdkVerion of at least 34.

           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).

       4.  Dependency 'androidx.media3:media3-exoplayer-smoothstreaming:1.4.1' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :launcher is currently compiled against android-32.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 7.3.1 is 33.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 34, then update this project to use
           compileSdkVerion of at least 34.

           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).

       5.  Dependency 'androidx.media3:media3-exoplayer-workmanager:1.4.1' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :launcher is currently compiled against android-32.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 7.3.1 is 33.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 34, then update this project to use
           compileSdkVerion of at least 34.

           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).

       6.  Dependency 'androidx.media3:media3-exoplayer:1.4.1' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :launcher is currently compiled against android-32.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 7.3.1 is 33.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 34, then update this project to use
           compileSdkVerion of at least 34.

           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).

       7.  Dependency 'androidx.media3:media3-extractor:1.4.1' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :launcher is currently compiled against android-32.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 7.3.1 is 33.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 34, then update this project to use
           compileSdkVerion of at least 34.

           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).

       8.  Dependency 'androidx.media3:media3-container:1.4.1' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :launcher is currently compiled against android-32.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 7.3.1 is 33.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 34, then update this project to use
           compileSdkVerion of at least 34.

           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).

       9.  Dependency 'androidx.media3:media3-datasource-cronet:1.4.1' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :launcher is currently compiled against android-32.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 7.3.1 is 33.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 34, then update this project to use
           compileSdkVerion of at least 34.

           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).

      10.  Dependency 'androidx.media3:media3-datasource-okhttp:1.4.1' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :launcher is currently compiled against android-32.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 7.3.1 is 33.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 34, then update this project to use
           compileSdkVerion of at least 34.

           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) a<message truncated>
Chris-RH commented 12 hours ago

Make sure android-32 and android-34 are found in \Editor\Data\PlaybackEngines\AndroidPlayer\SDK\Platforms

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

minSdkVersion 22 (or higher if you wish) targetSDKversion 32 compileSDKversion 34