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
445
445
if ( ! this . _canUseGradle ) {
446
446
if ( ! frameworkVersion ) {
447
447
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 ;
449
450
}
450
451
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 ) ;
452
453
}
453
454
454
455
return this . _canUseGradle ;
You can’t perform that action at this time.
0 commit comments