2016-07-23 6 views
1

다음과 같은 오류를 얻을 :java.lang.NoClassDefFoundError : 일부 휴대 전화에서 com.google.api.client.http.apache.ApacheHttpTransport() Android를 사용 하시겠습니까? Kinvey 클라이언트 라이브러리 사용하여 내 응용 프로그램 실행시

E/AndroidRuntime: FATAL EXCEPTION: main 
               java.lang.NoClassDefFoundError: com.google.api.client.http.apache.ApacheHttpTransport 
                at com.kinvey.android.Client$Builder.newCompatibleTransport(Client.java:555) 
                at com.kinvey.android.Client$Builder.<init>(Client.java:609) 
                at ch.ethz.nervousnet.trialapp04.MainActivity.onCreate(MainActivity.java:94) 
                at android.app.Activity.performCreate(Activity.java:5122) 
                at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081) 
                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2337) 
                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2425) 
                at android.app.ActivityThread.access$600(ActivityThread.java:162) 
                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364) 
                at android.os.Handler.dispatchMessage(Handler.java:107) 
                at android.os.Looper.loop(Looper.java:194) 
                at android.app.ActivityThread.main(ActivityThread.java:5422) 
                at java.lang.reflect.Method.invokeNative(Native Method) 
                at java.lang.reflect.Method.invoke(Method.java:525) 
                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:837) 
                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) 
                at dalvik.system.NativeStart.main(Native Method) 

MainActivity 클래스의 라인이 가리키는입니다 다음

그것은 대부분의 휴대폰에서 작동
Global.setmKinveyClient(new Client.Builder(this.getApplicationContext()).build()); 
// Client if a library class, not the one I have created 

하지만, 일부 휴대 전화에서 작동하지 않는 이유는 무엇입니까? 여기

내가 프로젝트에있는 모든 libs와의 스크린 샷 :

List of libraries available in my project

어떤 도움

가 감사합니다, 감사합니다.

답변

0

LoveMeow,

  1. 가 작동하지 않는 휴대폰에 안드로이드 버전은 무엇입니까

    ? 동일한 버전입니까, 아니면 임의로 발생합니까?

  2. 일부 휴대 전화에서 작동하기 때문에 모든 종속 라이브러리가 제대로 추가 된 것처럼 보입니다. 다른 경고가 던져지고 있습니까?

감사합니다, PRANAV Kinvey 지원