My Android source repo already has two jar files android-support-constraint-layout.jar
and android-support-constraint-layout-solver.jar
respectively at prebuilts/sdk/current/extras/constraint-layout/libs/
and prebuilts/sdk/current/extras/constraint-layout-solver/
. Now, I have an app in packages/app, where I have an app/src/main/Android.mk
:
LOCAL_STATIC_ANDROID_LIBRARIES := \
...
android-support-constraint-layout \
android-support-constraint-layout-solver
Still, I get the following error after compiling Android:
error: FirstApp (APPS android-x86) missing android-support-constraint-layout (JAVA_LIBRARIES android-x86)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
error: FirstApp (APPS android-x86) missing android-support-constraint-layout-solver (JAVA_LIBRARIES android-x86)
Except the first, none of the methods in this link works to add constraint-layout in AOSP.