I have been trying to test the openmrs android client and after building the new apk of the version 2.9.0 I managed to push it to my device and log in.
Reproduction of the error:
1- Log in to your instance with your credentials
2- Click on Register patient
3- Fill out the form with mockup data
4- Click submit
5- Error occurs as:
Sorry! An Unknown error has occurred. Please report the details to developers so that it can be resolved as soon as possible.
This error prevents from creating the patient. The same happens when clicking on Find Patients.
I am using ngrok to connect to my localhost instance.
I uninstalled and installed it again but the problem remains for some reason. I used android studio to build the apk from this source code because as per last friday the application from the play store was still crashing and I did not find an apk that was not crashing other than the one generated from the link provided here. Before uninstalling and installing again I tried to clean cache and check again but without success. cc @saurabh
@magp dont uninstall and reinstall instead try invalidating the Android studio cache on your PC and rebuild the application it should work .
just to help, you can find this option under the menu option in android studio, then clean build the app.
Yes I used the task clean which deletes the whole build folder and then used Build -> Build Bundle / APK -> Build APK (because using the task “build” does create the build folder and its content but fails with the error: Keystore file ‘openmrs-contrib-android-client-2.9.0/release.keystore’ not found for signing config ‘release’ )
Lastly I just connected my device to the laptop and used openmrs-client configuration and hit run to push the application to the device and test it while seeing the log in the terminal which logged the error shown in the pastebin link.
I can try that, however no release apk is being built with this error. Not even with Build -> Build Bundle / APK -> Build APK (trying like this gives me the error: “SigningConfig ‘release’ is missing required property ‘storePassword’”)