cocos2d-x 运行新工程报错。。。

新建工程到编译都没有问题,就是一运行就会在 FileUtils::getInstance()->addSearchPath(“res”); 这一句挂掉,又遇到同样问题的没有啊。

bool AppDelegate::applicationDidFinishLaunching() {
    // initialize director
    auto director = Director::getInstance();
    auto glview = director->getOpenGLView();
    if(!glview) {
        glview = GLViewImpl::createWithRect("CocosProject", Rect(0, 0, 960, 640));
        director->setOpenGLView(glview);
    }

    director->getOpenGLView()->setDesignResolutionSize(960, 640, ResolutionPolicy::SHOW_ALL);

    // turn on display FPS
    director->setDisplayStats(true);

    // set FPS. the default value is 1.0/60 if you don't call this
    director->setAnimationInterval(1.0 / 60);

 FileUtils::getInstance()->addSearchPath("res");

    // create a scene. it's an autorelease object
    auto scene = HelloWorld::createScene();

    // run
    director->runWithScene(scene);

    return true;
}


```

你是在VS里编译出问题么?我是在编译成android文件的时候,这一句显示有问题,但是不知道为啥VS中没问题