car-samples icon indicating copy to clipboard operation
car-samples copied to clipboard

android.car package for CarGearViewerKotlin

Open rooton opened this issue 2 years ago • 2 comments

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.

rooton avatar Jun 06 '22 12:06 rooton

This post helped and is working for me. https://stackoverflow.com/questions/72517218/android-car-package-is-unavailable-in-android-studio

bveenvliet avatar Sep 26 '22 02:09 bveenvliet

https://github.com/bveenvliet/car-samples/commit/58d6ce0dd59e5292c011ac17b1f3d590959c1c80

bveenvliet avatar Sep 26 '22 02:09 bveenvliet