javah Android Studio Error: cannot access android.support.v7.app.ActionBarActivity class file for android.support.v7.app.ActionBarActivity not found

白昼怎懂夜的黑 提交于 2019-12-01 19:21:39

You need to add the support jar files to the classpath too. They'd be in D:\ANDROID\kits\sdk\extras\android\support\v7\appcompat\libs. You need to add both the android-support-v7-appcompat.jar and android-support-v4.jar files.

Try add the full path name both with android-support-v7-appcompat.jar and android-support-v4.jar files after android.jar,

For example

D:\ANDROID\workspace\NDKSample\app\src\main>javah -d jni -classpath D:\ANDROID\kits\sdk\platforms\android-19\android.jar;D:\ANDROID\kits\sdk\extras\android\support\v7\appcompat\libs\android-support-v7-appcompat.jar;D:\ANDROID\kits\sdk\extras\android\support\v7\appcompat\libs\android-support-v4.jar;D:\ANDROID\workspace\NDKSample\app\build\intermediates\classes\debug com.jihv.gildas.ndksample.MainActivity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!