Replies: 3 comments 2 replies
-
You may need to use the binder_auto_utils.h that's distributed in build-tools. This header was only added to the NDK by mistake. It may have the same problem, but the fix as far as the NDK is concerned is to delete the header, because it's actually an aapt header, not an NDK header. Also, use:
To make a code snippet (replace "c++" with whatever language you're pasting). |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, this header is not available in build-tools and the NDK 25 enforces the build process in a way that building with the API level 29 is not possible. In the short run I can patch this header like indicated above. Would you consider it as a bug or do you have any other solution proposal? |
Beta Was this translation helpful? Give feedback.
-
This link doesn't work for me. Anyways, we can get along with this workaround. I wonder though if anyone else had the same issue. |
Beta Was this translation helpful? Give feedback.
-
In our AAR configuration we use a native library and a set of AIDL interfaces. I noticed probably one error in the 'binder_auto_utils.h'
std::string getDescription() const
method that manifests itself as a compile error if you compile with the minimum SDK version 29.Can you check if it should look like it like this:
In the original code this code snippet always fails to compile if you use minSDKVersion < 30 like 29 since AStatus_getDescription() and AStatus_deleteDescription() only available with the API level >= 30
Beta Was this translation helpful? Give feedback.
All reactions