我正在尝试使用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 –