Javah cannot find Android classes

When javah was called in the .java file in my android project, javah could not find the android classes (specifically android.graphics.Bitmap).

here is 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 rate!

+3
source share
1 answer

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

+14
source

Source: https://habr.com/ru/post/1776815/


All Articles