OK, maybe one step forwards and two steps back...
I think I needed to increase the target SDK which was still set to 22 for this app. I have increased it to 26.
I now get:
android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/Project.Title/files/App.apk exposed beyond app through Intent.getData()