0
我正在编写一本书“Chapter-3-Communicating-with-Native-Code-Using-JNI.pdf”。还有,当我试图使用JAVAH命令创建头文件,我得到的错误:Android Studio javah不是有效的类名
Exception in thread "main" java.lang.IllegalArgumentException: Not a valid class name: ?classpath
我试图在终端的指示:
javah –classpath bin/classes com.example.hellojni.HelloJni
但我看到,这是Eclipse的路径和我使用Android Studio。所以,我想这一点:
..helloJni\app>javah -d jni –classpath build\intermediates\classes\arm7\debug com.example.hellojni.HelloJni
我在 “helloJni \程序\编译\中间体\类\ ARM7 \调试\ COM \例子\ hellojni” HelloJni.class文件。我仍然得到相同的错误,我很惊讶,我无法找到一个直接的解决方案在stackoverflow。你能帮助我吗?