After build this application has been corrupted

I have made a small game and it runs fine in the simulator. I then created an apk file. The apk seems to install fine but as I try to run in I get an error message saying “This Application has been corrupted”.

I have used packages for my classes. I read that this is now supported with corona. Could this somehow be the cause of the problem?

Im running Android 2.3.5

thanks
[import]uid: 124497 topic_id: 24421 reply_id: 324421[/import]

Most probable cause: you have an error in your code. Look at the console output with ADB. BTW, what are “packages”? [import]uid: 61899 topic_id: 24421 reply_id: 98775[/import]

Ensure that your subfolders are within the src folder, or whichever folder you have all of your .lua files.

i.e.

…/src/…
…/src/images/…

NOT:
…/images/…
…/src/… [import]uid: 72820 topic_id: 24421 reply_id: 98777[/import]

Filenames on device are case sensitive… make sure you are using the *exact* filenames on your code, for example:

loading “image.png” when the file is “Image.png” will give that error.

Hope that helps
Raúl Beltrán
MIU Games [import]uid: 44101 topic_id: 24421 reply_id: 98840[/import]

Also, if your lua files are located in a directory other than “/” you must load them using dot notation like this:

for /levels/level1/definition.lua

require("levels.level1.definition")  

Notice this is only for lua files, for images you must still use “/”:

for /levels/level1/background.png

display.newImageRect( "levels/level1/background.jpg", 320, 480 )  

@CluelessIdeas I think what Tobias means with “packages” are java-style packages such as “levels.level1.definition”, please correct me if I am wrong. [import]uid: 44101 topic_id: 24421 reply_id: 98845[/import]

Thanks for all the tips. I will start debugging now.
With packages I mean that I have my lua files/classes in a folder structure to make it a bit cleaner => folder/subfolder/file.lua
I then import the classes with require(“folder.subfolder.luafilename”)

Cluelessideas mention that I can debug by using ADB. BTW. What are these and how do I use them?
Thanks [import]uid: 124497 topic_id: 24421 reply_id: 100009[/import]

ADB is the Android Debug Bridge that comes with the Android SDK. It provides a series of convenient features for debugging applications, namely a console where you can see your prints and other error messages when running on the device. Very useful. [import]uid: 61899 topic_id: 24421 reply_id: 100028[/import]

I found the error by using ADB and logcat. A capital letter in one of the package names was the cause of it.

Thanks [import]uid: 124497 topic_id: 24421 reply_id: 100050[/import]

You should be able to us aLogCat direct on the device. No need for ADB. I too had the corruption error today, was a bad file access, aLogCat helped find it. [import]uid: 142130 topic_id: 24421 reply_id: 112065[/import]