i want to integrate car-ui-lib
into my project. i manually create Android.mk in (src/main/jni)
file from this google git
After i build my project the android studio create cpp folder and add my Android.mk file there by using this piece of code in build.gradle
module.
sourceSets { main {
res.srcDirs = ['src/main/res']
} }
externalNativeBuild {
ndkBuild {
path "src/main/jni/Android.mk"
}
}
useLibrary 'android.car'
Now the issue is, the car-ui
components still not show, i try these imports:
import com.android.car.ui.toolbar.TabLayout;
import com.android.car.ui.core.CarUi;
but still it says "Cannot resolve symbol ui"
I also try below Android.mk code but the issue remains the same.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
CAR_UI_RRO_SET_NAME := oem
LOCAL_MODULE := car-ui
CAR_UI_RESOURCE_DIR := $(LOCAL_PATH)/res
CAR_UI_RRO_TARGETS := $(CAR_UI_RRO_PACKAGE_NAMES)
CAR_UI_GENERATE_RRO_SET := $(call my-dir)/generate_rros.mk
LOCAL_STATIC_ANDROID_LIBRARIES := car-ui-lib
include $(BUILD_STATIC_LIBRARY)
I also tried their official documentation but still nothing works. Any tutorial/help would be appreciated :)