I was building an app using the Blackberry Tablet OS SDK for Adobe AIR the other night. Flash Builder Burrito was doing just fine and I was debugging my application on the desktop to my hearts content. Then I attempted to debug the application in the simulator and was welcomed by the following error.
This error manifested itself when trying to debug on the simulator and also when trying to export a .bar file.
Looking at the error message started me down the path of thinking the path to the icon image was too long, but after much fiddling I didn’t get anywhere. I also googled and looked through the Playbook developer forum and found nothing. Finally, I tried something that in a way makes sense…but it was a wild guess on my part. Luckily it was the solution.
So, if you find yourself in this situation the solution is to make sure the <id> in your AIR app.xml descriptor file is less than 50 characters long. (In my case, less than 48 characters long.)
This was the broken app.xml <id/> that caused the error:

This was the app.xml <id/> that worked:

I don’t recall seeing this 50 char Package-Name constraint in any of the documentation, and I’m sure I should probably file a bug with Blackberry…but right now I’m tired and my main objectives was to help those of you encountering this issue until I get the energy to log this.
