方法一:在Application.mk中加APP_STL := gnustl_static
方法二:更改dll.cpp,这样包编译会小。重写strcpy和strlen
static void MyStrcpy(char *szDst, const char *szSrc)
{
const char *pSrc = szSrc;
char *pDst = szDst;
while(*pSrc)
*pDst ++ = *pSrc++;
*pDst = 0;
}
static unsigned int MyStrlen(const char *szStr)
{
unsigned int n = 0;
while (szStr[n])
n++;
return n;
}