Android Mobile Application development using Bonita

1
0
-1

I understand that it is possible to build the mobile application using the Bonita API and I have created the android application.

I followed the instructions in this documentation Create your first application with Bonita Java APIs | Bonita Documentation (bonitasoft.com)and there was the duplicate class error in javax.activation. I suppressed the duplicate class by adding the following in build.gradle but I got exception error of java.lang.NoClassDefFoundError: Failed resolution of: Ljava/rmi/Remote.

implementation ('org.bonitasoft.engine:bonita-client:7.14.0')
       {
            exclude group: 'javax.activation', module: 'javax.activation-api'
        }

I also tried importing org.bonitasoft.web:bonita-java-client:0.0.7 and also got exception error.

W/System.err: org.bonitasoft.web.client.exception.ClientException: Login failed
W/System.err: at org.bonitasoft.web.client.invoker.auth.BonitaLoginService.login(BonitaLoginService.java:60)

I am not sure how I can call Bonita API through Android Studio successfully. Can anyone help me? Thanks!

1 answer

1
0
-1

Hello minthu,

Your first error regarding RMI was due to the Android JVM. I supposed you followed the next steps in the tutorial to set the system property accordingly to use HTTP instead.
For a mobile application it is indeed better to use the Java client dependency, such as you’ve done by using the dependency org.bonitasoft.web:bonita-java-client:0.0.7
Your second error indicates that the login is failing. The next lines in your logs should contain more information on the reason.

Could you share this?


Thanks!

Notifications