That Android Auto can give you problems from time to time is nothing new, however, it may be the first time that you have noticed that it disconnects and, therefore, you do not know what it is due to or what you can do.
For this reason, we are going to tell you about some of the main reasons why this Google service for safer driving disconnects and what you can do to solve it.

Above all, do not try to do anything if it happens to you just when you are driving because you should not manipulate the mobile at this time or be distracted from driving. If you see it necessary, stop in a safe area as soon as you can.
It could be the fault of the cable.
One of the main reasons why you are disconnected is because the cable has a bad connection , is worn, deteriorated or is of poor quality. Therefore, do not skimp on expenses and get a good cable to connect the mobile to the service. To rule out that it is this, what you should do is try a different one.

You may also be using it wirelessly with an external adapter, and due to the technology used in wireless mode, it sometimes disconnects because it is not very stable. In this case, it is best to go back to the cables.
Have you looked at the connector of the mobile and the USB of the car?
This is another of the reasons why you are disconnected, and also usually causes many more problems than we can imagine with the load, and also in this case. The connector may be worn, damaged, or dirty.
If it is dirty, clean it carefully and delicately. If it’s damaged, as you probably don’t want to take it in for repair because of this, you’ll have to see how it fits better without forcing it.

It could also be due to the USB port of your vehicle, something that you must rule out before making decisions, so you will have to do the same things as with the mobile connector. In this case, if you want to fix it, you would have to go to the workshop.
It might be the app
Nothing is perfect, and neither is Android Auto, so you can try to rule out that the problem is not with the application. Sometimes it can have bugs, or it can happen because you need to update it or even because you have updated it to a version that gives these types of problems, waiting for them to be solved.

Always install a stable version of Android Auto, see if you need an update, or go back to the previous one if you realize that the problems are due to a version you recently installed.
Also try clearing the cache and data or restarting the mobile to see if it is due to a temporary problem.
Do you have energy saving activated?
If you have activated power saving mode on your phone, Android Auto may not work properly or close in the background and disconnect. Therefore, it is worth checking that it is so. You will have to go to the phone settings to applications, search for Android Auto and in the battery option select without restrictions.
Also make sure that your mobile is not so overloaded with everything or so scarce of resources that it does not have enough to support the resources of the service. It is not the most common, but it could be another reason.