开发者社区> 问答> 正文

getAcsResponse(request) 出错 Failed resolution of: Ljavax/xml/bind/DatatypeConverter;

游客jvqfylvxkbvrg 2019-04-15 17:54:52 458

Process: com.live.live, PID: 30455

              java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/xml/bind/DatatypeConverter;
                  at com.aliyuncs.auth.HmacSHA1Signer.signString(HmacSHA1Signer.java:22)
                  at com.aliyuncs.RpcAcsRequest.signRequest(RpcAcsRequest.java:158)
                  at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:247)
                  at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:180)
                  at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:77)
                  at com.aliyuncs.DefaultAcsClient.getAcsResponse(DefaultAcsClient.java:106)
                  at com.player.player.StsServiceSample.main(StsServiceSample.java:49)
                  at com.player.player.AliyunPlayerSkinActivity.requestMpsSts(AliyunPlayerSkinActivity.java:191)
                  at com.player.player.AliyunPlayerSkinActivity.onCreate(AliyunPlayerSkinActivity.java:166)
                  at android.app.Activity.performCreate(Activity.java:6845)
                  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
                  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2700)
                  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2808)
                  at android.app.ActivityThread.-wrap12(ActivityThread.java)
                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1541)
                  at android.os.Handler.dispatchMessage(Handler.java:102)
                  at android.os.Looper.loop(Looper.java:165)
                  at android.app.ActivityThread.main(ActivityThread.java:6375)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)
               Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.xml.bind.DatatypeConverter" on path: DexPathList[[zip file "/data/app/com.live.live-1/base.apk"],nativeLibraryDirectories=[/data/app/com.live.live-1/lib/arm64, /data/app/com.live.live-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
                  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:74)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                  at com.aliyuncs.auth.HmacSHA1Signer.signString(HmacSHA1Signer.java:22) 
                  at com.aliyuncs.RpcAcsRequest.signRequest(RpcAcsRequest.java:158) 
                  at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:247) 
                  at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:180) 
                  at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:77) 
                  at com.aliyuncs.DefaultAcsClient.getAcsResponse(DefaultAcsClient.java:106) 
                  at com.player.player.StsServiceSample.main(StsServiceSample.java:49) 
                  at com.player.player.AliyunPlayerSkinActivity.requestMpsSts(AliyunPlayerSkinActivity.java:191) 
                  at com.player.player.AliyunPlayerSkinActivity.onCreate(AliyunPlayerSkinActivity.java:166) 
                  at android.app.Activity.performCreate(Activity.java:6845) 
                  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) 
                  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2700) 
                  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2808) 
                  at android.app.ActivityThread.-wrap12(ActivityThread.java) 
                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1541) 
                  at android.os.Handler.dispatchMessage(Handler.java:102) 
                  at android.os.Looper.loop(Looper.java:165) 
                  at android.app.ActivityThread.main(ActivityThread.java:6375) 
                  at java.lang.reflect.Method.invoke(Native Method) 
                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) 
                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802) 

我请求的参数应该没问题 不知道为什么就是发不通

分享到
取消 提交回答
全部回答(2)
  • 小顺子网络
    2019-07-30 10:27:25

    android 平台上需要额外引入javax.xml.bind 以及xerces!

    0 0
  • terancel
    2019-07-17 23:33:32

    我也是这样,请问你解决了吗

    0 0
添加回答