@@ -9,7 +9,7 @@ import * as path from "path";
9
9
10
10
export class AndroidToolsInfo implements NativeScriptDoctor . IAndroidToolsInfo {
11
11
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" ] ;
13
13
private static MIN_REQUIRED_COMPILE_TARGET = 22 ;
14
14
private static REQUIRED_BUILD_TOOLS_RANGE_PREFIX = ">=23" ;
15
15
private static VERSION_REGEX = / ( ( \d + \. ) { 2 } \d + ) / ;
@@ -271,6 +271,10 @@ export class AndroidToolsInfo implements NativeScriptDoctor.IAndroidToolsInfo {
271
271
if ( this . androidHome && requiredAppCompatRange ) {
272
272
const pathToAppCompat = path . join ( this . androidHome , "extras" , "android" , "m2repository" , "com" , "android" , "support" , "appcompat-v7" ) ;
273
273
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
+ }
274
278
}
275
279
276
280
return selectedAppCompatVersion ;
0 commit comments