diff --git a/haxetool/android.js b/haxetool/android.js index a80a53e..536aa75 100644 --- a/haxetool/android.js +++ b/haxetool/android.js @@ -23,7 +23,7 @@ class Android extends Sdk { get link() { const system = Sdk.System.isWindows ? 'windows' : Sdk.System.isLinux ? 'linux' : null; if (!system) throw 'Unsupported system'; - if (this.version.indexOf('.') === -1) { + if (this.version.indexOf('.') > -1) { return `https://dl.google.com/android/repository/tools_r${this.version}-${system}.zip`; } else { return `https://dl.google.com/android/repository/sdk-tools-${system}-${this.version}.zip`;