-
Notifications
You must be signed in to change notification settings - Fork 354
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
[Bug] Android resolver fails to copy srcaar files to Maven repository for Packages in custom external paths #701
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
I've just run into this and am shocked that the only activity on this issue is a bot saying "meh, try harder." As far as I can see, the steps to install firebase using UPM packages here: https://firebase.google.com/docs/unity/setup-alternative No longer work because they place the tgz files in a parallel GooglePackages folder. I’m surprised I’m the first to waste an afternoon on this. I naively assumed that most developers don’t want several folders of firwbase through their assets folder. This post written in a grumpy mood after this finalized an afternoon of utter nonsense. Including having to upgrade ruby so I can upgrade gem so I can upgrade cocoapods to get iOS to build. The entire firebase unity package is a hellhole of 5 separate insane build systems that I would gladly take out the back and shoot (already using rest for auth, db, etc) if it weren’t for the fact that there is no REST api for analytics and we need conversion events for google ads to target. |
If this was the wrong place or procedure for this bug report originally I’d love to know the correct one. Kudos to the original author for taking the time to debug. |
Hi folks, I took a look into this, and so far I'm unable to reproduce the same behavior. Here's the steps I took:
Not sure if I'm missing anything(?) But so far, I tried using both methods via Package Manager UI and manifest.json, both seems to be working correctly (Resolve works, and no errors are shown). One thing I noticed is that you don't have the |
Sounds like you were able to reproduce this in the other issue #697, and that it was Unity 6 specific, which honestly I should have confirmed, but I saw the 2022.3 at the top of the issue and so didn't. If so we can probably link and close this issue. |
Unfortunately we've made significant edits and progress on the project since reporting this that would make it difficult to revert and put things back into the bugged state and I don't have the free time to investigate further. Updating to Unity 2022.3.40 to test also wouldn't be doable at this point since it contains breaking changes to our build system.
From what I see in that issue it appears to generate the same error but the root cause in that issue is a different Unity 6 specific problem that's unrelated to this one. |
Thank you for the well detailed explanation, @jonsenson-uken. I'm now able to reproduce the same behavior when linking the uncompressed library. Testing with both versions of Unity Editor @ferretnt, I agree with @jonsenson-uken, this could be a different issue. But thank you for the feedback! In any case, I'll raise this to our engineering team to take a closer look and see what we can do here. |
Hey folks, I believe the referenced PR fixes this issue, and will be released in version |
[REQUIRED] Please fill in the following fields:
2022.3.22
1.2.180
.unitypackage
Android Resolver
Firebase, Facebook
Mac
[REQUIRED] Please describe the issue here:
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
Packages that are are not in either the
Packages
orAssets
folder generate an exception when attempting to copy .srcaar files into the local Maven repo. These are Packages referenced using local file paths as described in the Unity docs here. In our case our Firebase package lives in a folder parallel toAssets
so the manifest entry looks like:The exception happens in FileUtils.CreateFolder. Since an external folder path is sent into this method and it only checks to see if the folder exists in
AssetDatabase
, it gets stuck in a recursive loop untilpath
is an empty string andnew DirectoryInfo(path)
throws the following exception:Please answer the following, if applicable:
What's the issue repro rate? 100%
What happened? How can we make the problem occur?
.srcaar
file, like Firebase, in manifest.json via a relative or absolute path to any folder outside of eitherPackages
orAssets
Resolve
again does nothing at all until Unity is fully relaunched.The text was updated successfully, but these errors were encountered: