从其他APK启动服务 - 抛出NoClassDefFoundError的异常 [英] Starting service from other apk - throws NoClassDefFoundError exception
本文介绍了从其他APK启动服务 - 抛出NoClassDefFoundError的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个项目在Eclipse中:服务和UI客户端
i have two projects in Eclipse: service and UI client.
在的onCreate在UI客户端我有:
In onCreate in UI client I have:
startService(new Intent(this, ExampleService.class));
但这种片段:
ExampleService.class
在运行时抛出的NoClassDefFoundError异常。我已经安装ExampleService.apk和ExampleUiClient.apk。项目编译,一切都看起来很好。我做错了什么?
throws NoClassDefFoundError exception at runtime. I have installed ExampleService.apk, and ExampleUiClient.apk. Project compiles, and everything looks fine. What I am doing wrong?
是否有可能从其他APK启动服务?
推荐答案
使用广播/广播接收机
这篇关于从其他APK启动服务 - 抛出NoClassDefFoundError的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文