小编sak*_*thi的帖子

引用.jar库时无法解决超类错误

  1. 我做了一个Android项目并运行它.它运行成功.
  2. 我用Java开发了一个Web服务并托管它.它运行成功.
  3. 我将web服务导出到.jar并将其添加到我的Android项目中.
  4. 当我尝试在Web服务中调用方法时,我收到Unable to resolve superclass错误.

我的错误日志:

Unable to resolve superclass of Lweb/service/RandomWordGeneratorService; (73)
Link of class 'Lweb/service/RandomWordGeneratorService;' failed 
Could not find class 'web.service.RandomWordGeneratorService',
    referenced from method tam.miru.Login$1.onClick
VFY: unable to resolve new-instance 110 Lweb/service/RandomWordGeneratorService;)
    in Ltam/miru/Login$1; 
VFY: replacing opcode 0x22 at 0x005a    
VFY: dead code 0x005c-006e in Ltam/miru/Login$1;.onClick (Landroid/view/View;)
Run Code Online (Sandbox Code Playgroud)

android classnotfoundexception android-library

31
推荐指数
2
解决办法
4万
查看次数