File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -445,10 +445,11 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
445445 if ( ! this . _canUseGradle ) {
446446 if ( ! frameworkVersion ) {
447447 this . $projectDataService . initialize ( this . $projectData . projectDir ) ;
448- frameworkVersion = this . $projectDataService . getValue ( this . platformData . frameworkPackageName ) . wait ( ) . version ;
448+ let frameworkInfoInProjectFile = this . $projectDataService . getValue ( this . platformData . frameworkPackageName ) . wait ( ) ;
449+ frameworkVersion = frameworkInfoInProjectFile && frameworkInfoInProjectFile . version ;
449450 }
450451
451- this . _canUseGradle = semver . gte ( frameworkVersion , AndroidProjectService . MIN_RUNTIME_VERSION_WITH_GRADLE ) ;
452+ this . _canUseGradle = ! frameworkVersion || semver . gte ( frameworkVersion , AndroidProjectService . MIN_RUNTIME_VERSION_WITH_GRADLE ) ;
452453 }
453454
454455 return this . _canUseGradle ;
You can’t perform that action at this time.
0 commit comments