From bba4f57089bea36c4b8c59e672c14e963155342e Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Thu, 8 Apr 2021 12:37:41 +0100 Subject: Fix build error due to null annotations in core platform API Change https://r.android.com/1667508 adds nullability annotations to the core platform APIs which broke this code with the error: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for androidx.annotation.RecentlyNonNull not found This change adds the stub-annotations library to provide the definition for that class. Bug: 183938110 Test: m checkbuild Change-Id: I8f9560aaa314a47d85b8d4c33c8fe285b2eba194 --- tools/dexdeps/src/Android.bp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/dexdeps/src/Android.bp b/tools/dexdeps/src/Android.bp index 1181bda2b..74879024e 100644 --- a/tools/dexdeps/src/Android.bp +++ b/tools/dexdeps/src/Android.bp @@ -34,5 +34,8 @@ droiddoc { srcs: [ ":dexdeps-doc-stubs", ], + libs: [ + "stub-annotations", + ], custom_template: "droiddoc-templates-sdk", } -- cgit v1.2.3