سؤال

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