javah的找不到安卓类 [英] javah not able to find android classes

查看:218
本文介绍了javah的找不到安卓类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在我的Andr​​oid项目中的.java文件调用javah的,javah的是无法找到Android的类(特别android.graphics.Bitmap)。

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

这里的终端输出:

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

帮助AP preciated!

help appreciated!

推荐答案

您需要添加{Android的SDK路径} \平台\ Android为8 \的android.jar也到classpath

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

这篇关于javah的找不到安卓类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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