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
To test your app in real vehicles, it must be installed from a trusted source such as the Play Store. During the early phases of development, you can use Internal App Sharing or an Internal Test Track to distribute your app to devices without going through the Play Store review process.