Ionic-iOS运行时Android构建失败

时间:2018-12-01 22:00:42

标签: android cordova ionic-framework ionic2 ionic3

试图为Android构建我的离子应用程序,但失败了:

int num1 = 0,num2 = 0;
char op;
int state = 0;
while((ch = getchar())!= EOF){

    if (ch != '\n'){
        if (ch >= '0' && ch <='9'){ //Checks if the character is a number
           if (state == 0) 
           num1 = num1*10 + ch- '0'; // Convert ASCII to decimal
           else 
           num2 = num2*10 + ch- '0'; // Convert ASCII to decimal
        }else {
        /* Operator detected now start reading in second number*/
        op = ch;
        state = 1;
       }
    }
    else {
       int result =0;
       switch(op)
       {
         case '+':
            result = num1 + num2;
         break;
         case '-':
            result = num1 - num2;
         break;
         case '*':
            result = num1 * num2;
         break;
         case '/':
            result = num1 / num2;
         break;
       }
      printf("%d\n",result); 
      num1 = 0;
      num2 = 0;
      state = 0;
   }

但是失败了:

ionic cordova build android

iOS的构建就像一个魅力。任何想法如何解决这个问题?我已经删除并添加了android返回,仍然是错误... 这是默认程序包,我自己没有安装。

Cannot determine the module for class OverlayPortal in
~/app/node_modules/ionic-angular/umd/components/app/overlay-portal.d.ts! Add
OverlayPortal to the NgModule to fix it. Cannot determine the modulefor class IonicApp in
~/app/node_modules/ionic-angular/umd/components/app/app-root.d.ts! Add IonicApp to
the NgModule to fix it. Cannot determine the module for class ClickBlock in
~/app/node_modules/ionic-angular/umd/components/app/click-block.d.ts! Add ClickBlock
to the NgModule to fix it.

自从在OSX Mojave上运行和构建错误以来,我不敢升级到4.5。可以是旧的吗?

ionic --version
3.20.0

我已经安装了Android SDK 9、8.1、7.1.1、6

0 个答案:

没有答案