-
Notifications
You must be signed in to change notification settings - Fork 350
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] Unable to copy 'mainTemplate.gradle' from Unity engine folder #717
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
Hey @manwithsteelnerves, thanks for reaching out. I was able to encounter this issue, however this is only when the platform is set to macOS. The issue is happening due to the path of |
Hey @manwithsteelnerves. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Thanks for the reply. If the Assets/Plugins/Android folder doesn't exist, on resolving its failing with the stated exception. |
That's an odd behavior. Could you check if running |
[REQUIRED] Please fill in the following fields:
Unity editor version: 2021.3.44f1
External Dependency Manager version: 1.2.183
Source you installed EDM4U: .unitypackage (.unitypackage or Unity Package Manager)
Features in External Dependency Manager in use: Android Resolver (Android Resolver, iOS Resolver, VersionHandler, etc.)
Plugins SDK in use: None
Platform you are using the Unity editor on: Mac (Mac, Windows, or Linux)
[REQUIRED] Please describe the issue here:
The New Unity projects have no Assets/Plugins/Android directory by default so copy the mainTemplate.gradle file fails with DirectoryNotFoundException.
Certainly, manually creating this path in the project resolves everything.
There was a bug report earlier on the same and was mentioned to be fixed in 1.2.183 but looks like it's not yet fixed.
Please answer the following, if applicable:
What's the issue repro rate?
100% for new unity projects.
What happened? How can we make the problem occur?
Create new Unity project.
Import EDM4U .unitypackage
Add some Dependencies.xml
Resolve dependencies.
Get error in console.
Error log from console:
The text was updated successfully, but these errors were encountered: