Closed SpertsyanKM closed 1 year ago
Hi @SpertsyanKM,
Thanks for bringing this up. I haven't come across the error message you're facing with your Android project so far. Have you tried if going to Assets
> Play Services Resolver
> Android Resolver
> Delete Resolved Libraries
makes any difference with your implementation? Additionally, does building directly from Unity instead of exporting to an Android project return any error messages?
Hi, @paulinon. Thanks for advices, but they didn't help.
If I build directly from Unity, it fails with the same errors, as the exported project built from Android Studio. If I delete resolved libraries before, it fails with a lot of cannot find symbol
errors for missing dependencies.
Hi @SpertsyanKM,
I noticed that you imported the resolver via the .unitypackage
file while the dependency you indicated is via the Unity Package Manager. Could you try if importing the resolver via the Package Manager makes a difference in your implementation? You can find the .tgz
file here.
Well, I've created a new Unity project, added there the Unity Jar Resolver package via the Package Manager, and tried different variants:
Any help would be appreciated as the problem persists
Hi @SpertsyanKM,
I'm still unsuccessful in reproducing the error message you encountered using the sample project you provided. Is it possible to replicate this issue from an empty Unity project? Additionally, does the issue persist after updating your dependency to its latest version?
Yes, the issue is reproducible from an empty unity project, as I wrote here. I use the latest version of Qonversion SDK, which also was successfully built earlier.
I've tried to resolve dependencies for several last versions of Qonversion SDK and found that resolving begins failing from version 4.1.0.
The only difference in dependencies of that version in comparison with the previous one is that in 4.1.0 there appeared a new dependency (transited from a nested dependency):
androidx.fragment:fragment-ktx:1.2.0
.How can I help UJR to resolve my dependencies? To be honest, I don't even understand, what has changed from my last successful resolving attempts, but all those Qonversion SDK versions were successfully resolving till this month.
Note - I'm trying to resolve dependencies the way I was able to do it before - without any custom gradle template and other files (all the checkboxes are unselected).
I started everything again from scratch and was finally able to build the app. What was different from my previous failed attempt is that I started building the new project with custom gradle templates straightaway. And that helped me to resolve the dependencies and successfully build and run the app both from Unity and Android Studio.
I think my previous problem with duplicate files was caused by the jars, added while resolving without custom gradle files enabled. The strange thing is that even the "Delete Resolved Libraries" option didn't help.
The only problem that is left is the failure to resolve dependencies without custom gradle files (without any reasons for that failure), but as the workaround finally worked, I think, we can close this issue.
P.S. Also linking a similar issue I've found while searching for a solution - #444.
[READ] For Firebase Unity SDK issues, please report to Firebase Unity Sample
Once you've read this section and determined that your issue is appropriate for this repository, please delete this section.
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
I've run into the same issue I've reported half a year ago. I'm creating a new Unity project from scratch. I import unity-jar-resolver and add a library I've already used before in other projects. Then I force run Android resolver and it gets hung up trying to resolve the dependencies, but all of the almost 30 attempts fail with the conflicts similar to the described below:
If I try to use
Custom Main Gradle Template
andCustom Gradle Properties Template
resolution finishes successfully and instantly, but then exported Android project fails to compile with the following errors:Jetifier is enabled both in unity-jar-resolver and in gradle properties.
Please answer the following, if applicable:
What's the issue repro rate? 100%
What happened? How can we make the problem occur?
If you have a downloadable sample project that reproduces the bug you're reporting, you will likely receive a faster response on your issue.
Here is a repo with that empty project. In build settings switch to Android and set the following checks -
Export project
,Development build
,Script debugging
. By the way it's just a new project where I've just added unity-jar-resolver and the following dependency: "com.qonversion.unity": "https://github.com/qonversion/unity-sdk.git#4.3.0"