简体   繁体   中英

Java native methods could not be resolved in eclipse, Android NDK

I have imported the ndk sample project( HelloJni ) into eclipse; it runs fine.

But when I try to open and edit the C class (hello) then it shows errors ( Method could not be resolved ) on native methods (like jstring, JNIEnv, jobject ).

I have searched a lot on Google but I didn't find any answer that can help me out.

Please give some suggestions for fixing this error.

Here is a simple solution

Go to the properties of your Application , under C/C++ General -->Code Analysis

Uncheck the Run As You Type (Selected Checkers) option as following screenshot.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM