googlesamples / unity-jar-resolver

Unity plugin which resolves Android & iOS dependencies and performs version management
Other
1.21k stars 336 forks source link

[Question] Problem downloading dependencies via External Dependency Manager #682

Closed BigGiantHead closed 1 month ago

BigGiantHead commented 1 month ago

[REQUIRED] Please fill in the following fields:

[REQUIRED] Please describe the question here:

I created an xml file for the External Dependency Manager that should resolve the dependencies for Android for your Huawei package. Everything works fine except that, even in an empty project, I have to have Jetiffier turned on, and I am getting the following Gradle error:

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/ivanivanovski/Projects/TroposAR/HuaweiTest/Temp/PlayServicesResolverGradle/PlayServicesResolver.scripts.download_artifacts.gradle' line: 1025

* What went wrong:
Execution failed for task ':process_com.android.tools.build.bundletool-0.13.2.jar'.
> com.android.tools.build.jetifier.processor.transform.bytecode.AmbiguousStringJetifierException: The given artifact contains a string literal with a package reference 'android.support.design.widget' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.

I am not really sure how to solve this since it also happens in a completely empty project. Here are the settings that I have for External Dependency Manager: Screenshot 2024-05-13 at 15 04 01

Thank you for your help.

google-oss-bot commented 1 month ago

This issue does not seem to follow the issue template. Make sure you provide all the required information.