Sorry - misunderstood your previous post. I connected my Android tablet to the PC & checked it was there in Development - Test Target. Then I entered levurePackageApplication "android simulator" in the Message Box. Hope those were the right steps! Saw a lot of activity then:

OK, I updated Levure as you said & re-ran. This time it built & installed on the tablet. Got the Open Application button. However it did nothing when clicked. When I went back to LC IDE on Windows I saw the dialog box attached...

Alright, we are in business. Last night I made some changes so that errors would be displayed if you tried to use preferences without first configuring a preference file name. The version of the appp creator stack that you used, however, uses a call to the preferences API in the app.livecodescript file. You can either remove the prefsGetPref call from app.livecodescript or just start from scratch and create a new app. The new app creator no longer adds calls to the preferences API.

Created a new application by using the Levure project creator as per wiki.
Loaded it in the IDE (didn't make any changes to the sample application)
Configured the Android standalone settings for LevureStandalone.
Ran levurePackageApplication "android simulator" via Message Box.

The app appeared on my connected Android tablet. No error messages anywhere up to now. However clicking the Open Application button gave the message "LevureStandalone has stopped".

App installs on target tablet but get same when Open Application button pressed. However now I get the warning dialog in the LC IDE attached - no idea why. This is after restarting LC and immediately loading standalone.livecode of the sample app.

You could also try removing the answer commands that you have in preopenstack and openstack to see if that affects anything.

I'm now using the unchanged sample app provided by the project creator

Does android generate logs anywhere that would record the cause of the crash?

Regarding error dialog, if you open Preferences and go to the Files & Memory section what is the setting for "If destroyStack is false, when closing last stack in file:"? If it is "ask" can you try changing it to "Don't close the file"?

If you can find some sort of log that reports the error let me know. I tried building a default Levure app for iOS again and it works so the issue isn't something obvious, at least not to me.

Regarding error dialog, if you open Preferences and go to the Files & Memory section what is the setting for "If destroyStack is false, when closing last stack in file:"? If it is "ask" can you try changing it to "Don't close the file"?

Meant to say that. I have it already set to "Don't close the file" (also have destroyStack true for new stacks)

Okay. You might avoid the error dialog by only opening the standalone.livecode file and trying to build without loading the entire application. Some changes need to be made to the LiveCode standalone building process. Right now there is a lot of loading/unloading of stacks and it can sometimes lead to problems.

I've updated the https://github.com/trevordevore/levure/wiki/packager page with more information about what you need to do before packaging the application. You use the File > Standalone Application Settings menu in LiveCode to configure the standalone settings for the standalone.livecode stack file (LevureStandalone in memory).

All application settings configuration is done in the app.yml file. The app.yml file that was created when you created your app already has a build profiles entry in it. It also has version and build settings. See this page for details on app.yml file: https://github.com/trevordevore/levure/wiki/app.yml

Though not directly related to your question, I will mention that I added two new screencasts to my YouTube channel. One talks about creating a new app in Levure and the other shows how to add UI stacks to your application.

I added a development line in app.yml (there wasn't one there) and tried a build of the sample app for android. I didn't add anything to the profile.

Got the attached error.

Does name set in app.yml have anything to do with Standalone Application Settings - General - Standalone name or Standalone Application Settings - Android -Label?
Does version set in app.yml have anything to do with Standalone Application Settings - Android - Version Name?