Fail the build if dexpreopt cannot find path to a <uses-library>.
This doesn't apply to compatibility libraries (those added to conditional class loader context base on the targetSdkVersion in the manifest), because Soong doesn't know if they are needed or not (the build rule that parses the manifest runs at Ninja stage). In the future we may need to relax this and instead of failing the build to disable dexpreopt in such cases. But currently there are no use cases that fail. Also, this patch replaces hardcoded install path with a constant. Test: lunch aosp_cf_x86_phone-userdebug && m Bug: 132357300 Change-Id: Ic894bc17e8ffd8ff173111ea09366252001ef3e9
Loading
Please register or sign in to comment