문제

I'm getting the following error when trying to build my Eclipse Android project in one of my JNI C files.

Method 'GetArrayLength' could not be resolved
Method 'GetByteArrayRegion' could not be resolved

I'm simply calling GetArrayLength/GetByteArrayRegion as follows:

jsize jsArruLen = (*env)->GetArrayLength(env,jDeviceListArr);
(*env)->GetByteArrayRegion(env,jDeviceListArr, 0, jsArruLen, (jbyte *)(pszDrive));

Does anyone know what's wrong? The project builds successfully on another PC.

Thanks.

도움이 되었습니까?

해결책

That means that on that other PC the libraries, that contain these two methods, are set differently. Or, maybe, on that one PC they are not set at all. Find the libraries and compare how they are installed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top