Android gradle plugin version 7 requires JDK 11.
This implies that one needs to switch from the deprecated SDK tools to the current command line tools.
Both tool packages include an sdkmanagerbinary but the deprecated version of sdkmanager depends on java packages javax.xml and therefore is incompatible with JDK 9+.
There is an older related PR #992
Android gradle plugin version 7 requires JDK 11.
This implies that one needs to switch from the deprecated SDK tools to the current command line tools.
Both tool packages include an
sdkmanagerbinary but the deprecated version ofsdkmanagerdepends on java packagesjavax.xmland therefore is incompatible with JDK 9+.There is an older related PR #992