Android Unable to Connect to Server

56 views
Skip to first unread message

dxx1332...@gmail.com

unread,
Aug 22, 2017, 10:38:53 PM8/22/17
to SiteWhere
Hi,
   I have installed SItewhere on the computer and connected it successfully by using other computers.Then I downloaded  Android Development Kit from https://github.com/sitewhere/sitewhere-android-sdk and ran the example .When I typed the URL and clicked VERIFY ,the error  "Unable to connect to server." came up.I checked the code and found the program stopped at final Version version = client.getSiteWhereVersion();
  How to solve this problem? wish your answer.
  Thank you very much.
    Deng
Message has been deleted

Shan Shichang

unread,
Nov 28, 2017, 1:40:43 AM11/28/17
to SiteWhere
Got the same problem: verify failed. trace is as follows, where to find the class? how to fix?
---------------------------------------------------------------------------------------------------------------
com.sitewhere.android.example E/SiteWhereConnectivity: Unable to connect to server.
                                                                                    com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of java.lang.Class, problem: Didn't find class "com.sitewhere.server.SiteWhereServer" on path: DexPathList[[zip file "/data/app/com.sitewhere.android.example-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.sitewhere.android.example-1, /vendor/lib, /system/lib]]
Reply all
Reply to author
Forward
0 new messages