This content has been marked as final. Show 4 replies
Is "2.0" the current version of the app or the version that you are upgrading to? I had similar issue when I mistakenly used the current version as the second argument to update method. The second argument should be same as the version in the Update.air's -app.xml.
How does create this version ??? Where am I find this file app.xml? Or How can I give new version.
Each AIR app has an application descriptor file. When you build your app in Flex builder, FB creates it automatically for you. If your application mxml file name is MyApp.mxml, then FB creates the descriptor as MyApp-app.xml. If you use aptana plugin, it creates descriptor as application.xml. In the descriptor there is an element called <version>. This version # in Updater.air app should match the version to update() method call. When you export a release build, the descriptor will be added to the air package as application.xml in META-INF\AIR folder.
If you want to see what's in your Updater.air, make a copy of the Updater.air as Updater.zip and look for META-INF\AIR\application.xml inside the zip. You will see <version> element in the application.xml file.
This is good... Thank you!