无法从cmd运行Cordova项目

时间:2018-03-01 05:59:56

标签: android cordova

我无法通过执行命令 cordova运行android cordova模拟android 从cmd运行Cordova项目。但是成功运行Android工作室。任何人都可以帮助分析问题吗?

尝试按cmd运行时,将显示以下输出,如下图所示

enter image description here

1 个答案:

答案 0 :(得分:1)

现在项目通过cmd成功运行

我刚刚安装了java8&将环境变量中的java路径更改为-(void) easterMonthAndDayForYear: (NSInteger) Y { NSInteger a = Y % 19; NSInteger b = (int) (floor( ((double)Y) / 100.0)); NSInteger c = Y % 100; NSInteger d = (int)(floor(((double)b) / 4.0)); NSInteger e = b % 4; NSInteger f = (int)(floor(((double)(b+8)) / 25.0)); NSInteger g = (int)(floor(((double)(b-f+1)) / 3.0)); NSInteger h = (19*a + b - d - g + 15) % 30; NSInteger i = (int)(floor(((double)c) / 4.0)); NSInteger k = c % 4; NSInteger L = (32 + 2*e + 2*i - h - k) % 7; NSInteger m = (int)(floor(((double)(a + 11*h + 22*L)) / 451.0)); NSDateComponents *components = [[NSCalendar currentCalendar] components:NSCalendarUnitDay | NSCalendarUnitMonth | NSCalendarUnitYear |NSCalendarUnitTimeZone fromDate:[NSDate date]]; components.year = Y; components.month = (int)(floor((double)(h + L - 7*m + 114) / 31.0)); components.day = ((h + L - 7*m + 114) % 31) + 1; components.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:0]; self.easterDayCache[@(Y)] = @{@"month": @(components.month), @"day":@(components.day) };