Closed WebBusiness2019 closed 1 month ago
if i remove avpro package from unity build completed successdully and run all the things in app but while importing avpro in unity its only work in editor mode and give error while creating an android build
I'm not seeing any AVPro errors in that log. If its to do with guava libraries, then look for the solutions here: https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1525
But when I remove package from the unity my app work correctly and there is not problem with avpro it's work fine in editor mode but when you going to create build it's showing error that requires compile SDK version 33 and I have already done required step to solve this error in plugin folder
On Tue, May 7, 2024, 2:24 PM Chris-RH @.***> wrote:
I'm not seeing any AVPro errors in that log.
— Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1842#issuecomment-2097788453, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFOPSP4ONRLOUOFZAUBEBLZBCJF5AVCNFSM6AAAAABHGT4ATKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJXG44DQNBVGM . You are receiving this because you authored the thread.Message ID: @.***>
Have you tried upgrading your gradle to a more recent version?
No I am using inbuilt unity gargle.... I have to download upgraded gradle and have to add gradle externally in unity?
Is there any related documentation available?
On Tue, May 7, 2024, 3:14 PM Chris-RH @.***> wrote:
Have you tried upgrading your gradle to a more recent version?
— Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1842#issuecomment-2097889068, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFOPSMJGEGRITZ4S3JFJOTZBCO7VAVCNFSM6AAAAABHGT4ATKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJXHA4DSMBWHA . You are receiving this because you authored the thread.Message ID: @.***>
You've still not shown me exactly what the error is that you are getting. Please can you click on the error line "Task :launcher:checkDebugDuplicateClasses FAILED" and paste the results.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable Duplicate class com.google.common.annotations.Beta found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.annotations.GwtCompatible found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.annotations.GwtIncompatible found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.annotations.VisibleForTesting found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.Absent found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.AbstractIterator found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.AbstractIterator$1 found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.AbstractIterator$State found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.Ascii found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CaseFormat found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CaseFormat$1 found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CaseFormat$2 found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CaseFormat$3 found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CaseFormat$4 found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CaseFormat$5 found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CaseFormat$StringConverter found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$1 found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$And found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$Any found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$AnyOf found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$Ascii found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$BitSetMatcher found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$BreakingWhitespace found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$Digit found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$FastMatcher found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$ForPredicate found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$InRange found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$Invisible found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$Is found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$IsEither found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$IsNot found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$JavaDigit found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$JavaIsoControl found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$JavaLetter found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$JavaLetterOrDigit found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$JavaLowerCase found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$JavaUpperCase found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$NamedFastMatcher found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$Negated found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$NegatedFastMatcher found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$None found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$Or found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$RangesMatcher found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$SingleWidth found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CharMatcher$Whitespace found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.Charsets found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CommonMatcher found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.CommonPattern found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.Converter found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.Converter$1 found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.Converter$1$1 found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.Converter$ConverterComposition found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.Converter$FunctionBasedConverter found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.Converter$IdentityConverter found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.Converter$ReverseConverter found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.Defaults found in modules jetified-guava-31.1-android (com.google.guava:guava:31.1-android) and jetified-guava-31.1-android (guava-31.1-android.jar) Duplicate class com.google.common.base.E
On Wed, May 8, 2024 at 1:48 PM Chris-RH @.***> wrote:
You've still not shown me exactly what the error is that you are getting. Please can you click on the error line "Task :launcher:checkDebugDuplicateClasses FAILED" and paste the results.
— Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1842#issuecomment-2100014401, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFOPSNEXUATU2LKOHI4FJDZBHNVBAVCNFSM6AAAAABHGT4ATKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQGAYTINBQGE . You are receiving this because you authored the thread.Message ID: @.***>
Unfortunately that is guava library error that occurs when you have more than one asset requiring guava libraries. Its not specific to AVPro (In fact the library is required by Exoplayer, not our asset).
Obviously in this case you would need to use jetified-guava-31.1-android in your gradle to correct it.
https://github.com/firebase/firebase-android-sdk/issues/1320 https://github.com/firebase/firebase-android-sdk/issues/1575 https://stackoverflow.com/questions/56639529/duplicate-class-com-google-common-util-concurrent-listenablefuture-found-in-modu https://gist.github.com/caseykulm/8f229ef3d89dec02780ea880129bc75d
Thank you for your response....
But when I remove avpro package then why my project able to create build? If your package is not using that package can you clear me that....
Is there any other ways to solve this error... With our upgrade or changing default unity gradle
On Wed, May 8, 2024, 6:24 PM Chris-RH @.***> wrote:
Unfortunately that is guava library error that occurs when you have more than one asset requiring guava libraries. Its not specific to AVPro (In fact the library is required by Exoplayer, not our asset).
Obviously in this case you would need to use jetified-guava-31.1-android in your gradle to correct it.
firebase/firebase-android-sdk#1320 https://github.com/firebase/firebase-android-sdk/issues/1320 firebase/firebase-android-sdk#1575 https://github.com/firebase/firebase-android-sdk/issues/1575
https://stackoverflow.com/questions/56639529/duplicate-class-com-google-common-util-concurrent-listenablefuture-found-in-modu https://gist.github.com/caseykulm/8f229ef3d89dec02780ea880129bc75d
— Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1842#issuecomment-2100514288, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFOPSPJ3X5BFE4K6DPECMLZBIOBHAVCNFSM6AAAAABHGT4ATKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQGUYTIMRYHA . You are receiving this because you authored the thread.Message ID: @.***>
Its because both Exoplayer (in AVPro) and Firebase use guava libraries, so if you remove one of them then there will not be any conflicts and will build properly.
There are solutions listed in those links that I have posted.
Thank you for your reply sir, I'll check them out.
On Wed, May 8, 2024, 7:02 PM Chris-RH @.***> wrote:
Its because both Exoplayer (in AVPro) and Firebase use guava libraries, so if you remove one of them then there will not be any conflicts and will build properly.
There are solutions listed in those links that I have posted.
— Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1842#issuecomment-2100586239, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFOPSLGSC6SEBPCSRQXVBTZBISOXAVCNFSM6AAAAABHGT4ATKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQGU4DMMRTHE . You are receiving this because you authored the thread.Message ID: @.***>
Sorry again I need one more favour from you can you give me that link that you are mentioned bcoz I search to many things on internet but I not get any related that you mentioned
On Wed, May 8, 2024, 7:02 PM Chris-RH @.***> wrote:
Its because both Exoplayer (in AVPro) and Firebase use guava libraries, so if you remove one of them then there will not be any conflicts and will build properly.
There are solutions listed in those links that I have posted.
— Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1842#issuecomment-2100586239, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFOPSLGSC6SEBPCSRQXVBTZBISOXAVCNFSM6AAAAABHGT4ATKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQGU4DMMRTHE . You are receiving this because you authored the thread.Message ID: @.***>
https://github.com/firebase/firebase-android-sdk/issues/1320 https://github.com/firebase/firebase-android-sdk/issues/1575 https://stackoverflow.com/questions/56639529/duplicate-class-com-google-common-util-concurrent-listenablefuture-found-in-modu https://gist.github.com/caseykulm/8f229ef3d89dec02780ea880129bc75d
but in your case you will need to change it to jetified-guava-31.1-android
I dont know if this will help but I found a solution for my case: justo removed the the guava file from the avpro files. and added this line on the dependencies in the mainTemplate.gradle: implementation 'com.google.guava:guava:33.2.0-jre' I hope this helps
It does seem that different methods work for different setups.
Describe the issue i am gating this error while building android apk and i have also configured compileSdkVersion 33 minSdkVersion 22 targetSdkVersion 32 and also have android 33 in editor folder but still i can not able build android apk and i am using firebase with it to play video in avpro and i try this also android.suppressUnsupportedCompileSdk=33 as mention in log when i do this i get duplicate cass error
Your Setup (please complete the following information):
Logs Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33
This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32
This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=33 to this project's gradle.properties
The build will continue, but you are strongly encouraged to update your project to use a newer Android Gradle Plugin that has been tested with compileSdk = 33
Screenshots
![Setup-3](https://github.com/RenderHeads/UnityPlugin-AVProVideo/assets/51046345/027f3157-adce-49bb-8376-fb30bc432a29)