car-samples
car-samples copied to clipboard
android.car package for CarGearViewerKotlin
For CarGearViewerKotlin it is impossible to access to android.car package.
After adding useLibrary 'android.car'
to build.gradle of app module it started building and running on emulator, but Android Studio still unable to access and/or show them.
import android.car.Car
import android.car.VehiclePropertyIds
import android.car.hardware.CarPropertyValue
import android.car.hardware.property.CarPropertyManager
Android Studio versions:
Chipmunk 2021.2.1 | Patch 1
Electric Eel | 2022.1.1 Canary 2
Android SDK: 29, 30, 31, 32
How can I fix it. Or somehow add android.car.jars. Because it is impossible to normally develop without highlighting and importing packages.
This post helped and is working for me. https://stackoverflow.com/questions/72517218/android-car-package-is-unavailable-in-android-studio
https://github.com/bveenvliet/car-samples/commit/58d6ce0dd59e5292c011ac17b1f3d590959c1c80