Note on Making Flash Games For Android
Hello there!
If you've reached this page, it's because you've been watching Joseph O'Connor's video tutorials for pushing Flash games onto Android devices.
When I was following the tutorials, I got the following error while running the PackageAPK.bat file:
Could not generate timestamp: handshake alert: unrecognized_name
After scouring the web for an explanation of this issue, it appears this has something to do with a change made in Java 7. It works perfectly fine in Java 6. To fix this, you have to edit the adt.bat (the file the PackageAPK.bat file calls to do the grunt work) to use Java 6. To do this:
1. Find the directory you copied over the latest Adobe Air SDK into for FlashDevelop (this should be the Tools\flexsdk in your FlashDevelop directory).
2. Open the bin folder.
3. Open adt.bat as an Administrator in Notepad or your text editor of choice.
4. Replace @java with the direct link to java.exe in Java 6 directory. For Windows 7 64-bit users, this is probably "C:\Program Files (x86)\Java\jre6\bin\java". For other Windows users, this is probably "C:\Program Files\Java\jre6\bin\java". In either case, make sure to include the quotes.
Do that before packaging the app and everything should work great.
