Start a new topic

Kinvey Ping Failed android 6.0

final Client mKinveyClient = new Client.Builder(this.getApplicationContext()).build();

mKinveyClient.ping(new KinveyPingCallback() {
public void onFailure(Throwable t) {
Log.e("TAG", "Kinvey Ping Failed", t);
}

public void onSuccess(Boolean b) {
Log.d("TAG", "Kinvey Ping Success");
}
}); this code runs android 4.2.2 and 4.1.0 but exists error for android 6.0; Kinvey Ping Failed
                                                                    com.kinvey.java.KinveyException: 
                                                                    REASON: The request failed.
                                                                    FIX: 
                                                                    EXPLANATION: com.kinvey.java.core.KinveyJsonResponseException: unknown


 help me i cant find any solution.

Hi,


Which Kinvey Android SDK version are you using? The latest is v2.10.8, available for download at - http://devcenter.kinvey.com/android/downloads.


Also, have you tried this for Android Lollipop - v5.0 or v5.1?


I will try to reproduce this issue and get back to you.



Regards,

Wani

Kinvey support

Hi,


I was able to execute Kinvey ping method for following configuration:

  • Android Studio 1.5.1
  • Android project targeted at API 23
  • Emulator for Android 6.0 x86, API 23 with Google APIs
  • Kinvey Android SDK 2.10.8

Can you check for a couple of gotchas:
  1. Have you added internet permissions in AndroidManifest file?
  2. Have you put app key and app secret in kinvey.properties file in app>src>main folder?

I followed the Getting started guide for with Kinvey Android SDK, which is covered here: http://devcenter.kinvey.com/android/guides/getting-started

Regards,
Wani
Actually i am using at emolator and i created apk file so also using at real devices only 6.0 (real device) gives error i checked manifest file src folder evertyhink is normal but i cant understand why it gives error
I tested at this devices ; 6.0 emolator no problem 4.2 emolator no problem 4.1.2 real device no problem 5.0 real device gives error 6.0 real device gives error My android sdk is 2.10,8

EXPLANATION: com.kinvey.java.core.KinveyJsonResponseException: unknown

at com.kinvey.java.core.AbstractKinveyClientRequest.execute(AbstractKinveyClientRequest.java:420)

 at com.kinvey.java.AbstractClient.pingBlocking(AbstractClient.java:196)

at com.kinvey.android.Client$Ping.executeAsync(Client.java:492)

at com.kinvey.android.Client$Ping.executeAsync(Client.java:485)

at com.kinvey.android.AsyncClientRequest.doInBackground(AsyncClientRequest.java:71)

at android.os.AsyncTask$2.call(AsyncTask.java:295)

at java.util.concurrent.FutureTask.run(FutureTask.java:237)

 at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

at java.lang.Thread.run(Thread.java:818)


Hi,


Let me try this out on real devices for 5.0 and 6.0 and get back to you.


Thanks,

Wani

-------------- RESPONSE --------------

                                                                            400 Bad request

                                                                            Cache-Control: no-cache

                                                                            Connection: close

                                                                            Content-Type: text/html

                                                                            X-Android-Received-Millis: 1461575119906

                                                                            X-Android-Response-Source: NETWORK 400

                                                                            X-Android-Selected-Protocol: http/1.0

                                                                            X-Android-Sent-Millis: 1461575118889

ClassLoader referenced unknown path: /lib/arm64 does support kinvey 64 bit because note 3 64bit gives error note 4 32 bit is running

i really need to find a solution.

Hi,


I have tested it on Moto E (5.1.1), still unable to reproduce the issue.



Regards,

Wani

i am using ubuntu 14.04 64bit ,  open-jdk 1.7 , android studio 2.0(yesterday i updated, before 1.5.1) i tested on 


note3    5.0 -----> error

note 4   5.1.1 -----> run

s3 mini  4.3  -------> run

lg g4      6.0 --------> error

samsung note 8 wifi (tablet)  4.1.2 ---> run


genymotion emulators;


Samsung Galaxy Note3 4.3 API 18 ---> run

Custom Phone 4.2.2 API 17 ---> run

Custom Phone 6.0.0 API 23 ---> run


For LG4;



W/System.err: com.kinvey.java.KinveyException: 

W/System.err: REASON: The request failed.

W/System.err: FIX: 

W/System.err: EXPLANATION: com.kinvey.java.core.KinveyJsonResponseException: unknown

W/System.err: at com.kinvey.java.core.AbstractKinveyClientRequest.execute(AbstractKinveyClientRequest.java:420)

W/System.err: at com.kinvey.java.AbstractClient.pingBlocking(AbstractClient.java:196)

W/System.err: at com.kinvey.android.Client$Ping.executeAsync(Client.java:492)

W/System.err: at com.kinvey.android.Client$Ping.executeAsync(Client.java:485)

W/System.err: at com.kinvey.android.AsyncClientRequest.doInBackground(AsyncClientRequest.java:71)

W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:295)

W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)

W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)

W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

W/System.err: at java.lang.Thread.run(Thread.java:818)



-------------- RESPONSE --------------

                                                                          400 Bad request

                                                                          Cache-Control: no-cache

                                                                          Connection: close

                                                                          Content-Type: text/html

                                                                          X-Android-Received-Millis: 1461666082438

                                                                          X-Android-Response-Source: NETWORK 400

                                                                          X-Android-Selected-Protocol: http/1.0

                                                                          X-Android-Sent-Millis: 1461666082279



i tested on

 ubuntu 14.04 64 bit  open-jdk 1.7 android studio 1.5 

ubuntu 14.04 64 bit  open-jdk 1.7  android studio 2.0

ubuntu 14.04 64 bit  oracle-jdk-8  android studio 2.0

i have same problem.


I have tested this devices;


NOTE 3 5.0 gives error

NOTE 5.1.1 is runnig

S3 4.3 is runnig

LG G4 6.0 gives error

Samsung NOTE 8 WIFI TABLET 4.1.2 is running


Genymotion Emulators;


Custom Phone 4.2.2 is running

Custom Phone 6.0 is running

Samsung NOTE 3 4.3 is runnig






Faced with this problem only am?  I am trying just ping function, isnt including other codes. im making an effort 10 days

Login or Signup to post a comment