@@ -9,7 +9,7 @@ import * as path from "path";
99
1010export class AndroidToolsInfo implements NativeScriptDoctor . IAndroidToolsInfo {
1111 private static ANDROID_TARGET_PREFIX = "android" ;
12- private static SUPPORTED_TARGETS = [ "android-17" , "android-18" , "android-19" , "android-21" , "android-22" , "android-23" , "android-24" , "android-25" , "android-26" ] ;
12+ private static SUPPORTED_TARGETS = [ "android-17" , "android-18" , "android-19" , "android-21" , "android-22" , "android-23" , "android-24" , "android-25" , "android-26" , "android-27" ] ;
1313 private static MIN_REQUIRED_COMPILE_TARGET = 22 ;
1414 private static REQUIRED_BUILD_TOOLS_RANGE_PREFIX = ">=23" ;
1515 private static VERSION_REGEX = / ( ( \d + \. ) { 2 } \d + ) / ;
@@ -271,6 +271,10 @@ export class AndroidToolsInfo implements NativeScriptDoctor.IAndroidToolsInfo {
271271 if ( this . androidHome && requiredAppCompatRange ) {
272272 const pathToAppCompat = path . join ( this . androidHome , "extras" , "android" , "m2repository" , "com" , "android" , "support" , "appcompat-v7" ) ;
273273 selectedAppCompatVersion = this . getMatchingDir ( pathToAppCompat , requiredAppCompatRange ) ;
274+ if ( ! selectedAppCompatVersion ) {
275+ // get latest matching version, as there's no available appcompat versions for latest SDK versions.
276+ selectedAppCompatVersion = this . getMatchingDir ( pathToAppCompat , "*" ) ;
277+ }
274278 }
275279
276280 return selectedAppCompatVersion ;
0 commit comments