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

后端 未结 2 416
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 06:04

I am following this tutorial on how to use NDK with Android Studio: http://www.ph0b.com/android-studio-gradle-and-ndk-integration/

I have android studio 0.9.3 insta

相关标签:
2条回答
  • 2021-01-19 06:33

    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.

    0 讨论(0)
  • 2021-01-19 06:46

    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

    0 讨论(0)
提交回复
热议问题