To start with Android Auto development I checked out some example projects (https://github.com/android/car-samples/tree/main/car_app_library), compiled them in Android studio (fixed some depreciation issues) and successfully tested them in desktop-head-unit emulator. Also set up a small Hello World on my own, which works the same way. I made sure that in Android Auto settings on the phone "unknown sources" is checked. All good unless I connect to my real car system. All the apps are not showing up in the car launcher, also not able to add them through "settings" app. Restarted the phone, compiled apps to lowest possible SDK target version. Nothing worked out.
Any idea how to fix this? Thanks
how did you enabled "unknown sources" on Android Auto device? there is no option in there... can you provide a device/manufacturer of your Android Audio unit?
afaik there is no other way for testing app than mentioned simulator, no option for running debug in a physical car. app MUST be distributed through Google Play
source