码迷,mamicode.com
首页 > 移动开发 > 详细

javah生成jni头文件时报错 Error: cannot access android.support...

时间:2016-07-02 19:01:26      阅读:840      评论:0      收藏:0      [点我收藏+]

标签:

javah生成jni头文件时报错:

Error: cannot access android.support.v7.app.AppCompatActivity

  class file for android.support.v7.app.AppCompatActivity not found

 

Error: cannot access android.support.v4.app.FragmentActivity

  class file for android.support.v4.app.FragmentActivity not found

 

Error: cannot access android.support.v4.app.BaseFragmentActivityHoneycomb

  class file for android.support.v4.app.BaseFragmentActivityHoneycomb not found

 

Error: cannot access android.app.Activity

  class file for android.app.Activity not found

可加入以下的jar文件解决

 

javah -d jni -classpath /Users/tom/Library/Android/sdk/platforms/android-23/android.jar:../..//build/intermediates/exploded-aar/com.android.support/support-v4/23.4.0/jars/libs/internal_impl-23.4.0.jar:../..//build/intermediates/exploded-aar/com.android.support/support-v4/23.4.0/jars/classes.jar:../..//build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.4.0/jars/classes.jar:../../build/intermediates/classes/debug com.milipictures.shenqi.AV.RecordAudioActivity

javah生成jni头文件时报错 Error: cannot access android.support...

标签:

原文地址:http://www.cnblogs.com/yuanxiaoping_21cn_com/p/5635830.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!