天天看點

Error: Cannot determine signature for Surface

在進行NDK開發時,我們需要向jni層傳遞Surface,Bitmap, …… 時,就會出現Error:Cannot determine signature for xxxx;

原因:the javah tool does not recognize Android classes, so you must add the classpath option to javah command.

解決方法:

windows:

javah -classpath C:\Android\Sdk\platforms\android-25\android.jar;. example.zhangjunling.com.ndk_makefile.MainActivity
           

linux/mac:

ndk

繼續閱讀