2010-11-25 108 views
3

在我的android項目中的.java文件上調用javah時,javah無法找到android類(特別是android.graphics.Bitmap)。javah無法找到android類

這裏的終端輸出:

[email protected]:~$ javah -classpath .:/home/thomas/Documents/LinuxProgramming/EclipseWorkspace/RenderScene/bin org.me.renderscene.Billboard 
javadoc: error - In doclet class com.sun.tools.javah.MainDoclet, method start has thrown an exception java.lang.reflect.InvocationTargetException 
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for android.graphics.Bitmap not found 
1 error 

幫助感激!

回答

14

您需要將{android-sdk-path} \ platforms \ android-8 \ android.jar添加到類路徑