diff --git a/README.md b/README.md index 35e0f218036b0e250a3240169fb6023ee1e4445c..8599c37fbcc27255168a99c2954d74ac77d3666c 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,23 @@ cordova emulate android ``` -Remember: If you upgrade cordova or change the package name of the app (in config.xml), +### Troubleshooting Android platform builds +* If you upgrade cordova or change the package name of the app (in config.xml), you should reset the platform, using `cordova platform remove android` and then `cordova platform add android` +#### Error message when starting the Android emulator +(When running `cordova emulate android`) + +``` +Command failed with exit code 1: apkanalyzer manifest target-sdk /home/[...]/vipsobservationapp/platforms/android/app/build/outputs/apk/debug/app-debug.apk +Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema +``` + +This can be solved by installing the Android command-line tools, as [per these instructions](https://stackoverflow.com/questions/46402772/failed-to-install-android-sdk-java-lang-noclassdeffounderror-javax-xml-bind-a), see screen shot below: + + + + ### Connecting to a local server While developing, you will want to connect to a local instance of VIPSLogic. This is done by editing the property `CONST_URL_DOMAIN` in `/src/components/CommonUtilLocal.vue`. Set it to whatever domain name you wish (e.g. vipslogic-local.no) and then edit your `/etc/hosts` file to point this to the IP address 10.0.2.2, like this diff --git a/document/images/android_sdk_cli_tools.png b/document/images/android_sdk_cli_tools.png new file mode 100644 index 0000000000000000000000000000000000000000..b5661e26a531eae5325e76a49512c8f6c58a5da6 Binary files /dev/null and b/document/images/android_sdk_cli_tools.png differ