That might be the issue try to get USB C to USB A cable, that's the issue with the cable connections via Android auto.
As some reported they used bunch of cables but in the end there's the one official or high quality one that worked.
I've also seen that it worked after car software update, or reseting cars settings, but i suggest firstly try and get USB C TO USB A cable.