带有Android的JWebServices无法正常工作 [英] JWebServices with Android doesn't work

查看:78
本文介绍了带有Android的JWebServices无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

代码:

import com.independentsoft.exchange.Service;

import android.app.Activity;
import android.os.Bundle;

public class ContactsToExchangeActivity extends Activity {
        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);

                Service service = new Service();
        }
}

日志:

 03-25 16:57:49.901: E/AndroidRuntime(717): FATAL EXCEPTION: main
 03-25 16:57:49.901: E/AndroidRuntime(717): java.lang.NoSuchMethodError: org.apache.http.conn.ssl.SSLSocketFactory.<init>
 03-25 16:57:49.901: E/AndroidRuntime(717): at com.independentsoft.exchange.Service.a(SourceFile:182)
 03-25 16:57:49.901: E/AndroidRuntime(717): at com.independentsoft.exchange.Service.<init>(SourceFile:90)
 03-25 16:57:49.901: E/AndroidRuntime(717): at ua.kh.softcompany.ContactsToExchangeActivity.onCreate(ContactsToExchangeActivity .java:22)
 03-25 16:57:49.901: E/AndroidRuntime(717): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
 03-25 16:57:49.901: E/AndroidRuntime(717): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
 03-25 16:57:49.901: E/AndroidRuntime(717): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
 03-25 16:57:49.901: E/AndroidRuntime(717): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
 03-25 16:57:49.901: E/AndroidRuntime(717): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
 03-25 16:57:49.901: E/AndroidRuntime(717): at android.os.Handler.dispatchMessage(Handler.java:99)
 03-25 16:57:49.901: E/AndroidRuntime(717): at android.os.Looper.loop(Looper.java:130)
 03-25 16:57:49.901: E/AndroidRuntime(717): at android.app.ActivityThread.main(ActivityThread.java:3683)
 03-25 16:57:49.901: E/AndroidRuntime(717): at java.lang.reflect.Method.invokeNative(Native Method)
 03-25 16:57:49.901: E/AndroidRuntime(717): at java.lang.reflect.Method.invoke(Method.java:507)
 03-25 16:57:49.901: E/AndroidRuntime(717): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
 03-25 16:57:49.901: E/AndroidRuntime(717): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
 03-25 16:57:49.901: E/AndroidRuntime(717): at dalvik.system.NativeStart.main(Native Method)

请问问题出在哪里以及如何解决?

Can you please tell what the problem is and how to fix it?

推荐答案

存在类似问题,并要求Independentsoft向我发送Android特定的jar文件.他们为Andorid建立了单独的版本.

Had similar problem and asked Independentsoft to send me Android specific jar file. They have separate build for Andorid.

这篇关于带有Android的JWebServices无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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