Когда я создаю приложение для Android в дереве сборки AOSP, оно генерирует следующую ошибку:
error: resource style/Base.Widget.AppCompat.Button (aka com.sample.application:style/Base.Widget.AppCompat.Button) not found.
error: resource style/Base.Widget.AppCompat.Button (aka com.sample.application:style/Base.Widget.AppCompat.Button) not found.
error: resource style/Theme.AppCompat.Light.NoActionBar (aka com.sample.application:style/Theme.AppCompat.Light.NoActionBar) not found.
vendor/sample/apps/SampleApplication2/res/values/styles.xml:6: error: style attribute 'attr/colorPrimary (aka com.sample.application:attr/colorPrimary)' not found.
vendor/sample/apps/SampleApplication2/res/values/styles.xml:7: error: style attribute 'attr/colorPrimaryDark (aka com.sample.application:attr/colorPrimaryDark)' not found.
vendor/sample/apps/SampleApplication2/res/values/styles.xml:8: error: style attribute 'attr/colorAccent (aka com.sample.application:attr/colorAccent)' not found.
Мой Android.mk выглядит следующим образом
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_PACKAGE_NAME := SampleApplication2
LOCAL_MODULE_TAGS := optional
LOCAL_CERTIFICATE := platform
# SRC files
LOCAL_SRC_FILES := \
$(call all-java-files-under, java) \
$(call all-named-files-under, *.aidl, aidl)
# RES files
LOCAL_RESOURCE_DIR := \
res
LOCAL_USE_AAPT2 := true
LOCAL_AAPT_FLAGS := --auto-add-overlay \
--extra-packages android.support.compat \
--extra-packages android.support.v7.appcompat \
--extra-packages android.support.v7.recyclerview
#Include Static libraries
LOCAL_STATIC_JAVA_LIBRARIES := android-support-v7-appcompat
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-gridlayout
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v13
LOCAL_STATIC_JAVA_LIBRARIES += android-support-annotations
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_APPS)
include $(BUILD_PACKAGE)
LOCAL_SRC_FILES := $(call all-subdir-java-files)
Пожалуйста, исправьте мой Android.MK файл, если есть какие-либо ошибки на нем Любая помощь будет оценена.