Skip to content

[Bug] Force resolve can't resolve dependencies, because can't find 10.5.0 directory #642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
IgorNebosenko opened this issue Mar 2, 2023 · 8 comments
Labels
edm4u Issue related to External Dependency Manager for Unity type: question

Comments

@IgorNebosenko
Copy link

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2022.1.23f1
  • Firebase Unity SDK version: 10.5.0
  • Source you installed the SDK: .unitypackage
  • Problematic Firebase Component: Analytics(but at Crashlytics it bug not reproduce, but other trouble)
  • Other Firebase Components in use: only Analytics and Crashlytics
  • Additional SDKs you are using: IronSource LevelPlay Mediation
  • Platform you are using the Unity editor on: Windows 10
  • Platform you are targeting: Android
  • Scripting Runtime: IL2CPP(but it's editor bug)
  • Pre-built SDK from the website or open-source from this repo: this repo

[REQUIRED] Please describe the issue here:

When I make : "Force resolve" from Android dependency manager v. 1.2.175 - I have error of resolve, and have this log at console:

Unable to copy Assets\Firebase\m2repository\com\google\firebase\firebase-app-unity\10.5.0\firebase-app-unity-10.5.0.srcaar to Assets\GeneratedLocalRepo\Firebase\m2repository\com\google\firebase\firebase-app-unity\10.5.0\firebase-app-unity-10.5.0.aar.

This is because at Assets\GeneratedLocalRepo\Firebase\m2repository\com\google\firebase\firebase-app-unity generates folder with name 10, 10 1, 10 2 etc, but not a 10.5.0. If I create manually this folder - Force resolve completes, and build works correctly, but when I make new Force resolve - directory 10.5.0 - destroys and replaces with variant of simple 10, so I need to every Force resolve - create this directory.

This bug also with directory firebase-analytics-unity, at crashlytics - I dob't need to create 10.5.0 directory for every Force Resolve, but this directory... Empty. So I don't have info about crashes

I see this issue, but I have this bug after every Force resolve.

I think, this is simple to solve bug, because create at Generated Local Repo - directories have name 10, but for correct work - required 10.5.0

Steps to reproduce:

Reproduce:

  1. Install my Version Unity Editor
  2. Add Android dependency manager
  3. Import Analytics & crashlytics from repo
  4. Try to make Force resolve(maybe, need to make it twice).

I have this issue at 100 % of attempts to force resolve dependencies.

@IgorNebosenko IgorNebosenko changed the title [Bug] [Bug] Force resolve can't resolve dependencies, because can't find 10.5.0 directory Mar 2, 2023
@paulinon paulinon added api: analytics and removed new New issue. labels Mar 2, 2023
@paulinon
Copy link
Contributor

paulinon commented Mar 2, 2023

Hi @IgorNebosenko,

Thanks for reporting this issue. I haven't been successful in replicating your issue so far. I have some questions about your implementation:

  1. Could you try if reimporting the Crashlytics and Analytics SDKs makes any difference?
  2. Does the issue persist using any other Unity version? Please indicate the Unity version you used to confirm this.
  3. As you performed your steps, have you encountered any instance saying the resolution was successful?

@paulinon paulinon added the needs-info Need information for the developer label Mar 2, 2023
@DellaBitta
Copy link
Contributor

DellaBitta commented Mar 3, 2023

I believe this is an issue in the Unity Editor's implementation to create directories. See the Issue reported here as a regression.

This was reported fixed in Unity version 2022.2.4f1, though some are still reporting the problem. Is it possible for you to upgrade to that version and give a try?

@IgorNebosenko
Copy link
Author

Hi @IgorNebosenko,

Thanks for reporting this issue. I haven't been successful in replicating your issue so far. I have some questions about your implementation:

  1. Could you try if reimporting the Crashlytics and Analytics SDKs makes any difference?
  2. Does the issue persist using any other Unity version? Please indicate the Unity version you used to confirm this.
  3. As you performed your steps, have you encountered any instance saying the resolution was successful?
    • At this moment I not might to check Crashlytic, because some SDK produce native crash and I disable all possible plugins and SDK for localize issue
  1. I try make it on empty project without any other plugins, and I have next result: at 2022.1.23f1 - always in local repo generates directory with naming 10, 10 1, 10 2 etc. But at 2020.3.45f1 - all generates correctly. I'm not change android resolver version between different versions of Editor. So, I think, it may be Editor error, but downgrade Editor to 2020 - I can't.
    And else one: equal issue with naming also at Google play game services
  2. At 2022 Editor - it issue in every attempt to make force resolve, at 2020 - this issue I can't reproduce

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Mar 3, 2023
@DellaBitta DellaBitta added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Mar 3, 2023
@DellaBitta
Copy link
Contributor

@IgorNebosenko,

We posted in quick succession. I just wanted to be sure that you saw my post above. Thanks!

@IgorNebosenko
Copy link
Author

@IgorNebosenko,

We posted in quick succession. I just wanted to be sure that you saw my post above. Thanks!

Yes, I see about 2022.2.4f1 version, so now I install it

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Mar 3, 2023
@IgorNebosenko
Copy link
Author

@IgorNebosenko,

We posted in quick succession. I just wanted to be sure that you saw my post above. Thanks!

2022.2.4f1 not solve issue. Now it correctly force resolve, but project - don't builds. Gradle build failure.

@DellaBitta
Copy link
Contributor

Could you post information about the build failure?

@DellaBitta DellaBitta added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Mar 3, 2023
@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Mar 3, 2023
@IgorNebosenko
Copy link
Author

I can make build by disable Main Gradle Template & Gradle properties template. So now - need check all other part of project. If all will be good - I'm close this issue.
P.S. I install newer version of Editor - 2022.2.8f1

@paulinon paulinon added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Mar 6, 2023
@DellaBitta DellaBitta removed api: crashlytics needs-info Need information for the developer labels Mar 6, 2023
@DellaBitta DellaBitta added edm4u Issue related to External Dependency Manager for Unity and removed api: analytics labels Mar 6, 2023
@firebase firebase locked and limited conversation to collaborators Apr 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
edm4u Issue related to External Dependency Manager for Unity type: question
Projects
None yet
Development

No branches or pull requests

4 participants