javah的机器人工作室错误:无法访问android.support.v7.app.ActionBarActivity类文件android.support.v7.app.ActionBarActivity未找到 [英] javah Android Studio Error: cannot access android.support.v7.app.ActionBarActivity class file for android.support.v7.app.ActionBarActivity not found

查看:841
本文介绍了javah的机器人工作室错误:无法访问android.support.v7.app.ActionBarActivity类文件android.support.v7.app.ActionBarActivity未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下面这个教程对如何使用NDK与Android工作室:的 http://www.ph0b.com/android-studio-gradle-and-ndk-integration/

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

我有机器人工作室0.9.3 installled在Windows 8上,于是我跟着视频教程的每一步,并在步骤生成JNI文件夹我这样做在Android工作室的终端:

I have android studio 0.9.3 installled on windows 8, and i follow each step of the tutorial in the video, and at the step to generate jni folder i do this in the android studio's terminal :

D:\机器人\工作区\ NDKSample \程序\ SRC \主> javah的-d JNI -classpath D:\ANDROID\kits\sdk\platforms\android-19\android.jar;D:\ANDROID\workspace\NDKSample\app\build\intermediates\classes\debug com.jihv.gildas.ndksample.MainActivity

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

和我有这样的错误:

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

任何帮助将是很大的AP preciated,

Any help would be greatly appreciated,

感谢

推荐答案

您需要的支持jar文件添加到类路径了。他们会在 D:\机器人\包\ SDK \演员\机器人\ SUPPORT \ V7 \ appcompat \库。您需要添加两个 Android的支持-V7-appcompat.jar Android的支持 - v4.jar 文件

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.

这篇关于javah的机器人工作室错误:无法访问android.support.v7.app.ActionBarActivity类文件android.support.v7.app.ActionBarActivity未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆