javah not able to find android classes

本秂侑毒 提交于 2020-01-04 01:52:22

问题


When calling javah on a .java file in my android project, javah was unable to find the android classes (specifically android.graphics.Bitmap).

here's the terminal output:

thomas@THOMASDESKLINUX:~$ 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

help appreciated!


回答1:


you need to add {android-sdk-path}\platforms\android-8\android.jar also to the classpath



来源:https://stackoverflow.com/questions/4273168/javah-not-able-to-find-android-classes

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