android SDK not build

yogeshkahar

New Member
hello
I am yogesh kahar as android developer, I want to add flashphoner android sdk in my project but when I use GitHub clone URL and try to clone the project, it is not build and I am stacked so please provide proper documentation So I can read and follow the instruction and build project.
Best Regards
 

yogeshkahar

New Member
hello
I am download latest aar file and export it.
Screenshot (15).png

then execute the export.sh but not create wcs-android-sdk-samples/export/output folder
 
Last edited:

Max

Administrator
Staff member
Hello

export.sh is a Linux shell script
it does not work properly on Windows

To build a sample on Windows

1. Open a sample folder as a project in the Android Studio

1704278591393.png


2. Add aar file as a dependency.

wcs-android-sdk-1.1.0.61.aar

3. Build the project with the dependency.
 

yogeshkahar

New Member
hello
I want to call rest api in project using retrofit.
when project run I am getting error.

Duplicate class com.google.gson.stream.MalformedJsonException found in modules gson-2.8.5 (com.google.code.gson:gson:2.8.5) and wcs-android-sdk-1.1.0.61-runtime (wcs-android-sdk-1.1.0.61.aar)

//Retrofit
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.retrofit2:adapter-rxjava2:2.6.2"
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
implementation "com.squareup.okhttp3:logging-interceptor:4.9.3"

help me.
 

Max

Administrator
Staff member
If you open aar file using zip extensions, you will be able to see dependencies including gson-2.7.jar
Try to remove this file from aar archive or configure your build excluding this jar file.

1704287284083.png
 

yogeshkahar

New Member
hello
I run the project on my server so it is not connect and all time showing fail.
server url - wss://awscpu.easestream.com:8443/
Connecting WebSocket to: ws://awscpu.easestream.com:8443/.

but when we use demo server url - wss://demo.flashphoner.com:8443/
it working fine.
can you tell me what issue I am getting.

because my server url work fine in react js project.
 

Max

Administrator
Staff member
Connecting WebSocket to: ws://awscpu.easestream.com:8443/.
You should use either wss://awscpu.easestream.com:8443/ or ws://awscpu.easestream.com:8080/. The protocol prefix should correspond to port used: ws for unsecure websocet port 8080 and wss for secure one 8443.
 

muzzammilk12

New Member
ERP implementation Pakistan can be a complex process, especially when integrating with mobile platforms like Android. I'm encountering an issue where the Android SDK refuses to build during one of my ERP integration steps. If anyone has suggestions on how to tackle this, especially in the context of ERP systems, I'd love to hear them!
 
Top