I was having issue migrating LevelPlay from 2021 to 2022 project. So, I decided to create a new project and import my project and still having same issue. At the end I decided to make a completely new project, totally empty.
The reason why it happens is ridiculously simple - gradlew.bat, which is a Gradle Wrapper batch file for Windows environment, is missing from gradle-template.zip which generated / downloaded (?) by MDR. So basically it is MDR problem.There is a workaround for this -
A. Turn “Enable Auto-Resolution” in Assets > Mobile Dependency Resolver > Android Resolver > Settings
B. Do the resolve, and you’ll see this error happened.
C. Access to your Unity project folder, and you’ll be able to see Temp/PlayServicesResolverGradle folder. Copy PlayServicesResolverGradle folder to the location other than your project folder.
D. Copy attached “gradlew.bat” file into the copied PlayServicesResolverGradlefolder in C.
E. Close unity editor and re-open it.
F. Copy the PlayServicesResolverGradle folder copied in C into <your_Unity_Project>/Temp/
G. Run Force Resolve in Assets > Mobile Dependency Resolver > Android Resolver.
ok, tried to follow your instructions but they are not very clear.
A: I have already turned on: "Enable Auto-Resolution”
C: Do you mean remove this folder from my main game directory to where?
D: Which file “gradlew.bat” ? Where do i find it? And copy directly in C: Folder?
Sorry feel a little dump not getting well this instructions.