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.