我正在嘗試使用Javah爲我的Android NDK應用程序創建一個.h文件。我正在使用cygwin爲我做同樣的事情。javah錯誤:無法訪問活動
固定的工作區,以我目前的應用程序的bin文件夾,我執行以下命令: -
javah -classpath /cygdrive/c/Android/android-sdk/platforms/android.jar myNDK\bin\classes my.first.NDK.MyNDKActivity
然而,它始終給以下錯誤: -
error: cannot access myNDKbinclasses
class file for myNDKbinclasses not found
javadoc: error - Class myNDKbinclasses not found.
error: cannot access my.first.NDK.MyNDKActivity
class file for my.first.NDK.MyNDKActivity not found
javadoc: error - Class my.first.NDK.MyNDKActivity not found.
Error: No classes were specified on the command line. Try -help.
誰能幫助我在解決這個問題?
我也試圖去包含Java文件的文件夾,並執行JAVAH那裏,但還是我得到同樣的錯誤: -
error: cannot access MyNDKActivity
class file for MyNDKActivity not found
javadoc: error - Class MyNDKActivity not found.
Error: No classes were specified on the command line. Try -help.
,不知怎的,描繪了問題是由於一些權限的問題,我猜。
檢查出來http:// stackoverflow。com/questions/10483959/javah-error-android-app-activity-not-found/25989225#25989225 –