Cannot compile mediapipe via Mac OS on Android
Solution 1:
The problem was using Android SDK build tools version 31.0.0-rc5 which does not include the dx.jar
file for some reason. I removed this version and used the latest stable version 30.0.3 and compilation completed successfully.
Solution 2:
as @Jackpile said: to do that you need to change WORKSPACE, you probably you just need to update the sdk call to this:
android_sdk_repository(name = "androidsdk",build_tools_version = "30.0.3")