diff --git a/bin/templates/project/app/build.gradle b/bin/templates/project/app/build.gradle index fdbb7254..c454561d 100644 --- a/bin/templates/project/app/build.gradle +++ b/bin/templates/project/app/build.gradle @@ -161,9 +161,9 @@ if (hasBuildExtras2) { // Set property defaults after extension .gradle files. ext.cdvCompileSdkVersion = cdvCompileSdkVersion == null ? ( - defaultCompileSdkVersion == null + defaultCompileSdkVersion == null ? privateHelpers.getProjectTarget() - : defaultCompileSdkVersion + : defaultCompileSdkVersion ) : Integer.parseInt('' + cdvCompileSdkVersion); if (ext.cdvBuildToolsVersion == null) {