Forside › Forum › Developer discussions › OpenTele Android Client server communication issues
Tagged: android, citizenserver
- This topic has 5 replies, 2 voices, and was last updated 8 years, 7 months ago by
Michael.
-
AuthorPosts
-
12. September 2016 at 12:21 #4181
kimpn
ParticipantHi.
I have successfully downloaded and build the OpenTele Android Client app from your bitbucket (https://bitbucket.org/4s/opentele-client-android)
The server-URL has been changed to http://opentele-citizen.4s-online.dk/ in order to connect to the public citizen server.
However it is still not possible to login with the user nancyann/abcd1234, as it states there is an “Error communicating with the server”.
Any ideas to what the problem might be?//Kim
12. September 2016 at 13:46 #4183Michael
KeymasterAs it states on http://4s-online.dk/wiki/doku.php?id=opentele2:source this Android app is not compatible with Citizen Servers later than version 2.0.3. If you downloaded the latest version of the citizen server this is now at version 2.12. (This by the way also explains why you would have to change the path for the server)
For clients that are compatible with this latest version of the citizen server please look at the HTML5/JavaScipt client. Please see http://4s-online.dk/wiki/doku.php?id=opentele2:source again for where to find the source code for this. And also see build and setup instructions here: http://4s-online.dk/wiki/doku.php?id=opentele2:developer:introduction.
/Michael
19. September 2016 at 12:40 #4186kimpn
ParticipantHej Michael.
Har prøvet at hente opentele2-android-client-html, og fulgt build instructions som angivet i dokumentet “Guide til videreudvikling”. Når jeg benytter kommandoen ./gradlew installDebug for at kompilere og installere apk’en på en tilsluttet android enhed så får jeg fejlen:
Execution failed for task ‘:device-integration:packageDebugAndroidTest’.
> Duplicate files copied in APK LICENSE.txt
File 1: C:\Users\kpn\.gradle\caches\modules-2\files-2.1\org.hamcrest\hamcrest-core\1.3\42a25dc3219429f0e5d060061f71acb49bf010a0\hamcrest-core-1.3.jar
File 2: C:\Users\kpn\.gradle\caches\modules-2\files-2.1\org.hamcrest\hamcrest-core\1.3\42a25dc3219429f0e5d060061f71acb49bf010a0\hamcrest-core-1.3.jarDet hjælper ikke at slette mappen. Det hjælper heller ikke at ændre build.gradle filen for at se bort fra LICENSE.txt filen.
Har også prøvet at åbne projektet i Android Studio, og det er lykkedes at få den kørt på en Android enhed. Her dukker der bare en HTML side op hvor der står “Websiden er ikke tilgængelig”.
Er der nogen løsning på dette?
//Kim
19. September 2016 at 12:56 #4187kimpn
ParticipantEnglish translation of the above:
Have tried downloading the opentele2-android-client-html, and followed the build instructions as declared in the document “Guide til videreudvikling”. When i am using the command ./gradlew installDebug to compile and install the APK on a connected android device i get the following error:
Execution failed for task ‘:device-integration:packageDebugAndroidTest’.
> Duplicate files copied in APK LICENSE.txt
File 1: C:\Users\kpn\.gradle\caches\modules-2\files-2.1\org.hamcrest\hamcrest-core\1.3\42a25dc3219429f0e5d060061f71acb49bf010a0\hamcrest-core-1.3.jar
File 2: C:\Users\kpn\.gradle\caches\modules-2\files-2.1\org.hamcrest\hamcrest-core\1.3\42a25dc3219429f0e5d060061f71acb49bf010a0\hamcrest-core-1.3.jarIt doesn’t help to delete the folder. And it doesn’t help to change the build.gradle fil to exclude the LICENSE.txt file.
I have tried running the project in Android Studio, and have managed to install the APK on an android device. However it only shows a HTML page where it says “The website is not available”.
Any solutions for this?
//Kim
20. September 2016 at 9:11 #4189Michael
KeymasterSorry, but it is not something I have encountered myself. I will check with others here if they have seen anything similar.
Perhaps comparing your setup with the setup of our sandbox http://4s-online.dk/wiki/doku.php?id=opentele2:sandbox could help track down the problem?
/Michael
21. September 2016 at 7:52 #4190Michael
KeymasterKim,
Just had a look at “Guide til Videreudvikling”. This instructions might be a bit outdated. Have you tried building using the instructions found here: http://4s-online.dk/wiki/doku.php?id=opentele2:developer:buildinstructions ?
/Michael
-
AuthorPosts
- You must be logged in to reply to this topic.