cocos2dx3.8.1解决导出android的项目找不到资源文件里的csv文件

const std::string fullpath = FileUtils::getInstance()->fullPathForFilename(path);
//CCLOG("%s",fullpath.c_str());
unsigned char* pData = NULL;
ssize_t len = 0;
pData = FileUtils::getInstance()->getDataFromFile(fullpath).getBytes();
std::string destpath = FileUtils::getInstance()->getWritablePath();
std::string buf = path;
{
	for (int i = 0; i < int(buf.size()); i++)
	{
		if (buf[i] == '/')
			buf[i] = '\\';//'_'文件夹分割符也可以,只是这个文件夹名字不能用'_'而已
	}
}
destpath += buf;
CCLOG("copy data from [%s] to [%s].", fullpath.c_str()
	, destpath.c_str());
FILE* fp = fopen(destpath.c_str(), "w");
fwrite(pData, sizeof(char), len, fp);
//CCLOG("tttttttttttttt%s",pData);
fclose(fp);
free(pData);
delete pData;
pData = NULL;
return destpath.c_str();

用的上面的代码找到csv文件的全路径,以前3.4的版本都能用,3.8.1就不能用了

你是说这个代码找不到文件路径?你确定csv文件有在Resources目录下吗?