Android 2.3 插件开发
我是 Android 新手,使用 Android 2.3 。 我正在尝试构建的源代码中有示例浏览器插件 但它却无法这样做。
要编译插件[在 README.txt 中]
- 运行“make SampleBrowserPlugin”(编译 libsampleplugin.so 和 构建 apk)
上一个命令生成一个 apk 文件,因此记录其位置。
使用上述步骤我无法构建它。
我尝试过以下操作:-
我想先在 JNI 文件夹中构建代码以获得 插件“.so”,以便在获取“.so”后构建项目 使用 eclipse 的 apk 。
我尝试使用 NDK build 在 JNI 文件夹中构建代码。代码 没有得到构建,它给出了“未定义的引用” JNIHelp.h 中的 JNIRegisterNativeMethod "谁能告诉我如何构建示例插件并安装它 在模拟器上。
I am new to Android and using Android 2.3 .
There is sample Browser plugin in the source code I am trying to build
it but unable to do so.
To compile plugin [ In README.txt ]
- run "make SampleBrowserPlugin" (compiles libsampleplugin.so and
builds the apk) the previous command produces an apk file so record its location.
Using the above steps I am unable to build it.
I have tried the following things :-
I thought to build the code in JNI folder first so as to get the
plugin ".so" so that after getting the ".so" would build the project
apk using the eclipse .
I tried building the code in the JNI folder using NDK build.The code
was not geting build it was giving "undefined reference to
JNIRegisterNativeMethod in JNIHelp.h "Can anyone tell me how to build the Sample plugin and install it
on Emulator.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要从源安装的根目录(在 Linux 计算机上)“make SampleBrowserPlugin”。也就是说,包含“bionic”、“build”、“dalvik”等作为子目录的同一目录。
You need to "make SampleBrowserPlugin" from the root of your source installation (on a Linux machine). That is, the same directory that contains "bionic", "build", "dalvik", etc. as child directories.