Cordova / Android Studio模拟器错误。想法?

时间:2018-10-24 18:44:50

标签: android cordova

我目前正在Apache Cordova中为iOS和Android开发应用程序。

我终于使一切运行顺利,然后更改了我在Android Studio中使用的仿真器,并删除了其他仿真器。现在,当我尝试从Cordova命令行模拟应用程序时,出现以下错误...

typedef struct {
    char car_model[32],car_name[32];

} CarObjects;

typedef struct myNode{

    struct myNode* next;
    CarObjects* data;

} MyList;

//initialize list
void declareList(MyList* someList){
    someList->next = NULL;
}

void insertElementByTitle(MyList* someList, CarObjects* someCar){

    //first case adding to an empty list.
    if(someList == NULL){
        someList = malloc(sizeof(MyList));
        someList->data = someCar;
        someList->next = NULL;
    }
//END OF first case adding to an empty list.

//make thee list's head and tail node, point to the first element since its an empty list
    someList->head = someList;
    someList->tail = someList->head;


    while(someList->next != NULL)
       someList = someList->next;

    someList->next = malloc(sizeof(MyList));
    someList = someList->next;
    someList->data = newBook;
    someList->next = NULL;


}


int main(){


   MyList* listHead= NULL;
   MyList* listTail= NULL;


   //Somehow add an element to the list



   return 0;
}

模拟器从Android Studio完全没有问题,但是当我运行时

No emulator specified, defaulting to Pixel_2_API_28
Waiting for emulator to start...
PANIC: Missing emulator engine program for 'x86' CPU.

发生上述错误。

我已经在互联网上搜索了答案,但它们都非常隐秘,所以我无法理解它们。

有人可以简单地告诉我我需要做什么吗?

0 个答案:

没有答案