Problems with building to Android

Hello, I have noticed that for a while now, I haven’t been able to build to android, and attached are the errors that I see.

Some things that may help out:
Im using Unity version 2021.3.16f1
The build works with WebGl, so it seems the problem lies within android builds
I dont have Android studio, so maybe I need that
I tried switching to unity 2023, but I got another error about Cmake

I have been having this problem forever, and I would love it if you guys could help
Thanks!
-Chris

I don’t have much experience in building for the mobile platforms. Look at the errors. They are not just there to tell you something’s wrong. They are there to guide you as much as possible for a machine that has no idea what you are trying to achieve.

Look at the first error: 1 incompatible Daemon could not be reused That tells you something. Click on it and look at the details in the area at the bottom. It may tell you why that daemon was incompatible. It may say you have the wrong version of the jdk installed. It could be anything.

Try to resolve that, then move on to the next error. Giving up because there’s a big red exclamation will not help. Try to figure out why the error has happened. There’s a lot of information in those error messages. You may even get some insight into how some things work that will help you in solving future problems easier.

Pro Tip Some errors are caused by other errors. When you resolve one error some of the others may go away, too. Or some new ones may arise.

PS: Second error looks like something that’s being used by the unity compiler has deprecated. Maybe you used deprecated code, or maybe Unity is using deprecated code. Read the error and see

Thanks for the response by the way, I’ll test these ideas all out

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms