diff --git a/dist/index.js b/dist/index.js index 6eec7bc..4f212e0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8589,6 +8589,12 @@ function findPreinstalledSdkManager() { result.exePath = getSdkManagerPath('latest'); result.isFound = fs.existsSync(result.exePath); if (result.isFound) { + const propertiesFile = path.join(ANDROID_SDK_ROOT, 'cmdline-tools', 'latest', 'source.properties'); + if (fs.existsSync(propertiesFile)) { + const correctRevisionString = `Pkg.Revision=${CMDLINE_TOOLS_VERSION}`; + console.log(correctRevisionString); + result.isCorrectVersion = fs.readFileSync(propertiesFile, 'utf8').includes(correctRevisionString); + } return result; } result.exePath = '';