AIR application do not compile
Hi All,
I created a new AIR Application in my Flex Builder Version 3 (build 3.0.2.214193). Say, the name of the new AIR application is 'Test10'. So the main mxml file is created autimatically as;
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
</mx:WindowedApplication>
Now I run this application and I get a empty window. So far so good..
Now I change the code a bit as;
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
</mx:Application>
And now when I run the application, I don't get the window. I deleted the content of the bin-debug folder and executed it again. But I don't see Test10.swf file generated in bin-debug. I don't see any problem or console window too..
Any idea as why this happens???
Thanks
A * R
If you use mx:Application in your AIR app, the app will not display. You must use WindowedApplication as your root tag.
I agree that we don't provide good feedback, but this would have required some special-casing in the compiler which we have tried to avoid.
Jason
Similar Messages
-
Identical flex-air applications do not compile
I'm having terrible difficulty with writing Air Applications for compiling with the flex 3.2 SDK.
I have two identical basic flex air applications, but one will not compile, the other will.
When I try to run the application from flex builder the first app runs fine while the second one doesn't.
any ideas?
http://www.andy-hayes.com/download/TestApp.zip
http://www.andy-hayes.com/download/TestTransparentApplication.zip
I've just about had enough of flex builder's bs. tbh.Hi Randy,<br /><br />This forum really isn't the place to try to get support on app compilation. We try to keep discussion here to development of the SDK itself. I'd suggest looking at the regular Flex forums or flexcoders and posting more details as to the error you're seeing.<br /><br />Matt<br /><br /><br />On 1/13/09 3:51 AM, "randy gland" <[email protected]> wrote:<br /><br />A new discussion was started by randy gland in<br /><br />Developers --<br /> Identical flex-air applications do not compile<br /><br />I'm having terrible difficulty with writing Air Applications for compiling with the flex 3.2 SDK.<br /><br />I have two identical basic flex air applications, but one will not compile, the other will.<br /><br />When I try to run the application from flex builder the first app runs fine while the second one doesn't.<br /><br />any ideas?<br /><br />http://www.andy-hayes.com/download/TestApp.zip<br />http://www.andy-hayes.com/download/TestTransparentApplication.zip<br /><br />I've just about had enough of flex builder's bs. tbh.<br /><br />________________________________<br />View/reply at Identical flex-air applications do not compile <a href=http://www.adobeforums.com/webx?13@@.59b78044><br />Replies by email are OK.<br />Use the unsubscribe <a href=http://www.adobeforums.com/webx?280@@.59b78044!folder=.3c060fa3> form to cancel your email subscription.
-
I start the computer the screen has blue vertical stripes and says that the Adobe Air application can not be found. Some of my programs don't run and say:
You: Error access violation at 0x0055F525. I reinstalled Adobe Air. No change. I went to the Adobe webside and they said to repair it with a program. I bought RegCure. Didn't change anything. What to do?Hello cor-el, thanks for your reply. I changed my settings for downloads to desktop and it has appeared on there. When I double click I am asked which program I want to open file. I click firefox and another box "opening install" says I have chosen to open the file which is an application and do I want to save it. This is the only real option so I press save file. I get a box saying this is an executable file which may contain viruses - do you want to run. I press ok and the final box showing C drive file name and desktop appears stating application not found.
This happens the same whenever I try to install.
To my untrained eye the application is not being recognised as an application and I cannot work out how to get it to do that.
My plugin is still showing as out of date.
Is there anything you could suggest. Thanks for your time. -
Application.cfc not compiling
My application.cfc not compiling. I'm using application.cfc
first time, i'm used to using application.cfm, but now trying to
switch.
I've attached the code. Application.cfc is not being executed
for some reason.
My environment:
win2008
cf8
iis7
Thank you,
Syed> application.cfc is not listed in Execution file list
like application.cfm. Non
> of the application or session variables are being
created.
OK, thanks clarifying that.
Application.cfc will only be listed in the debugging if
there's an event
handler to be run; if you don't have an onRequestStart
handler, it won't be
running anything _every request_.
I suspect you - and jbird5k - have both added code to your
onApplicationStart event handler after the application had
already started.
The onApplicationStart event handler is only run ONCE during
the life of
the application (IE: when it's first hit after the CF service
starts).
For changes to onApplicationStart to be run, you need to
restart your
application.
I think it was BKBK who suggested that the quickest way to do
this is to
change the name of the application - temporarily - so that CF
thinks it's a
different application. Or just restarting CF.
It might be an idea to add an onRequestStart event handler
which checks for
a restartApp URL variable, and if found and if true, re-run
onApplicationStart(). This means less monkeying with your
code or CF to
get the app to restart.
Adam -
Flex 4.5.1 AIR application is not running on iPhone 3gs
I developed an iOS application in Flash builder 4.5 with flex 4.5.1 extension using AIR 2.6. This application is successfully installed on iPhone4G. When I tried to install it on iPhone 3GS it say, this application is not compatible with this iPhone.
My iPhone 3GS is running iOS 4.2.1
Is the iOS version 4.2.1 is not supported for Flex iOS app development or there is any other issue. Please help, thanks in advance.Yes AIR 2.6 is compatible with iOS 4.2.1.I'd recommend you update to the latest version of FB and AIR. You should download the free upgrade to Flash Builder 4.6 and build from there. It's much improved and AIR 3.x has better performance all around.
Regarding the incompatibility issue, you're absolutely sure you have an iPhone 3GS and not the 3G? They look nearly identical. One sure way to tell is to plug it into iTunes and see if you can upgrade the OS to the latest iOS 5.x. If you can't upgrade to iOS 5, then it's for sure a 3G and is not compatible with AIR 2.6+
iBrent -
AIR application could not be installed...installer is damaged
I am getting the following error on Windows, it is installing fine on MAC:
Sorry, an error occurred:
The application could not be installed because the installer file is damaged
I lost two days of work trying to figure out the issue. Any help is appreciated.
ThnaksTzeng, thanks for the reply.
I am installing the AIR app on Windows XP. The AIR app is installing fine on all MAC systems, but not on Windows. The dates in the Windows systems are correct.
Where exactly (what is the "home" directory) on the Windows machine do I need to put the .airappinstall.log file?
Thanks. -
AIR applications will not install on Super OS (Ubuntu 9.04) 32-bit
I was able to install Adobe Air on my system fine, but no
AIR apps will install. Anything I try to install, it just pops up a window for a millisecond and refuses to install. If I download an AIR app, the AIR app installer pops up and gives the option to open or save and I can't install apps either way.
Thanks for any help,
Rob SteelHey Rob
Thanks for reporting the issue. In order for us to find out the cause of the behaviour you see on you system we would like you to provide some more information.
1. Execute the following from terminal: touch ~/.airappinstall.log
2. Try to install the air app and provide us the contents of this file.
In case the contents of the log file is empty, try installing the app from command line:
Adobe\ AIR\ Application\ Installer /path/to/AIR/file.air
If there is a crash, can you provide us the crash log generated.
Thanks for your time
Sundeep -
JDBC application will not compile
I have a fairly simple Oracle JDBC application that used to compile and now it won't
C:\java>javac CreateCompViews.java
CreateCompViews.java:64: incompatible types
found : java.sql.ResultSet
required: ResultSet
rset1 = stmt.executeQuery (SQLQuery1);
^
CreateCompViews.java:72: cannot resolve symbol
symbol : method next ()
location: class ResultSet
while (rset1.next ())
^
CreateCompViews.java:77: cannot resolve symbol
symbol : method getString (int)
location: class ResultSet
viewName = rset1.getString (1);
^
CreateCompViews.java:83: incompatible types
found : java.sql.ResultSet
required: ResultSet
rset2 = ViewQuery.executeQuery ();
^
CreateCompViews.java:84: cannot resolve symbol
symbol : method next ()
location: class ResultSet
rset2.next ();
^
CreateCompViews.java:85: cannot resolve symbol
symbol : method getString (int)
location: class ResultSet
ViewDefinition = rset2.getString(1);
^
CreateCompViews.java:104: cannot resolve symbol
symbol : method close ()
location: class ResultSet
rset1.close();
^
.\ResultSet.java:82: cannot resolve symbol
symbol : method next ()
location: class ResultSet
while (rset.next())
^
.\ResultSet.java:84: cannot resolve symbol
symbol : method getString (int)
location: class ResultSet
String myText = rset.getString(1);
^
.\ResultSet.java:88: cannot resolve symbol
symbol : method close ()
location: class ResultSet
rset.close();
^
10 errors
C:\java>
I am running Windows 2000, Oracle 9.2 and JDK 1.4.1.01
Please Help!
ladI have a fairly simple Oracle JDBC application that
used to compile and now it won't
C:\java>javac CreateCompViews.java
CreateCompViews.java:64: incompatible types
found : java.sql.ResultSet
required: ResultSet
rset1 = stmt.executeQuery (SQLQuery1);
^
CreateCompViews.java:72: cannot resolve symbol
symbol : method next ()
location: class ResultSet
while (rset1.next ())
^
CreateCompViews.java:77: cannot resolve symbol
symbol : method getString (int)
location: class ResultSet
viewName = rset1.getString (1);
^
CreateCompViews.java:83: incompatible types
found : java.sql.ResultSet
required: ResultSet
rset2 = ViewQuery.executeQuery ();
^
CreateCompViews.java:84: cannot resolve symbol
symbol : method next ()
location: class ResultSet
rset2.next ();
^
CreateCompViews.java:85: cannot resolve symbol
symbol : method getString (int)
location: class ResultSet
ViewDefinition = rset2.getString(1);
^
CreateCompViews.java:104: cannot resolve symbol
symbol : method close ()
location: class ResultSet
rset1.close();
^
.\ResultSet.java:82: cannot resolve symbol
symbol : method next ()
location: class ResultSet
while (rset.next())
^
.\ResultSet.java:84: cannot resolve symbol
symbol : method getString (int)
location: class ResultSet
String myText = rset.getString(1);
^
.\ResultSet.java:88: cannot resolve symbol
symbol : method close ()
location: class ResultSet
rset.close();
^
10 errors
C:\java>
I am running Windows 2000, Oracle 9.2 and JDK
1.4.1.01
Please Help!
ladHere's the CLASSPATH settings
.;c:\oracle\jdbc\lib\classes12.zip;c:\oracle\jdbc\lib\nls_charset12.zip
The packages included in the source code are
import java.sql.*;
import java.io.*;
import java.lang.*;
import java.util.*;
import oracle.jdbc.driver.*;
import oracle.sql.*;
The Java directory is
c:\j2sdk1.4.1_01
Oracle 9.2 directory is
c:\oracle\jdbc\lib -
Detect other air applications (when not connected to internet)
Hi,
we have a req to provide a link within our air app, click on it and the app should detect if another air app (from same publisher) is installed on user's machine. If installed launch it if not install it.
I used air browser api, it works fine. But only when the user is connected to internet, since the air.swf needs to be downloaded from adobe.
Is there a way to detect other air apps in offline mode ? (I tried copying air.swf to local, but doens't work due to security issues)
Anyone with thoughts on how to achieve this in offline mode ?
Thanks,
BrijeshHi Brijesh,
As you've seen, hosting the air.swf locally (or anywhere besides airdownload.adobe.com) isn't supported or allowed. I've seen this request come up a couple of times now, if this functionality is important I'd like to recommend adding a feature request on our ideas.adobe.com site.
I haven't tried this so I'm really not sure if it would work, but if your app was installed natively and you knew the location of the installed app, could you create a file object and check to see if the file existed? If it did, try launching with openWithDefaultApplication(). If not, download the installer to a temp location, then launch the installer with openWithDefaultApplication()? Basically duplicating what you need from the air.swf in your actionscript code.
Chris -
How to provide terms & conditions option while installing an AIR application
Hi
I have an AIR application which is developed using flex SDK. I have got an requirement that when the user tries to install the AIR application, I need to display the terms & conditions details. If the user accepts the terms & conditions, it need to be install the application. Is it possible to do?
And also i need to set the expiration date (i.e. trial period) so the application gets expired on the specified date in the user's machine. I am not sure whether these two things are possible? Please advice.
ThanksHi Douglas,
Thanks very much (and to Chris) for getting back to me.
I attached a zip file that is a small 'hello world' AIR application that I
compiled using FlashBuilder 4, configured to use the 4.1 sdk. I also
attached the self-signed certificate I used when exporting the release
build. The password for this is dogdish. This application gives the error
messages I indicated in my post when attempting to install on the Mac where
the AIR runtime is not yet installed.
We recently upgraded from FlexBuilder 3 to FlashBuilder 4, which I believe
is when this issue started. I followed the instructions for doing a side-car
installation and had no problems with either Mac or Windows when using
FlexBuilder 3.
Thanks for any help you can provide! -
Air application loading flex applications(no Air) with flex linked as RSL.
Hello
I am trying to make an AIR application which loads number of flex applications(no AIR). The subapplications are using the Flex SDK as a RSL, and each of them can use different version of the SDK.
The problem is that the subapplicationsare trying to load the needed SDK from local filesystem, which they are not permited.
public class CrossDomainRSLItem extends RSLItem
override public function load(progressHandler:Function,
completeHandler:Function,
ioErrorHandler:Function,
securityErrorHandler:Function,
rslErrorHandler:Function):voidHi again.
Is there any way to reliably edit the trust files with AIR application?
As I see it we have to make the user to add our folder to the trusted locations, or to use some application which can find and write in the FlashPlayerTrust (native for the specific OS installer for example.). (even finding this directory with an AIR application seems not 100% reliable).
Thanks in advance for you help.
Ps: Right now I am trying to patch this.
I compiled some sub-applications using custom preloader class(the controlling class, not the UI), where I removed the RSL loading. After that in an ApplicationDomain I load all the RSLs with loaders. After that I load the sub-application in the same domain. On paper this should work, but the sub-application can't find the classes from the RSLs(the first exeption is that there is no definition for spark.components.Application) -
Air Application URL Path Issue
I am trying to invoke a content of the file which is in shared folder from Air application.
Version : Flash builder 4.5,Flex3.6 sdk and Air 2.7.
for this am using the below code..
var request:URLRequest = new URLRequest();
//request.url = ('file:///c:/params.txt'); - This is working fine
request.url = ('file:///172.20.188.25/Share/chk/Property/params.txt'); // its not working
trace("Unable to load URL: " + request);
var variables:URLLoader = new URLLoader();
variables.dataFormat = URLLoaderDataFormat.VARIABLES;
variables.addEventListener(Event.COMPLETE, completeHandler);
try
variables.load(request);
The same part of code ,I tried in Flex application is working .but in Air application its not working.
Its urgent requirement,If any one know the way to resolve this path issues.
Kindly let us know.
Thanks in Advance !!I tried in the following URL but no use ..
its throwing ioError and textError and stream error.
1.file:///172.20.188.25/Share/chk/Property/params.txt
2.http://172.20.188.25/Share/chk/Property/params.txt
3. //172.20.188.25/Share/chk/Property/params.txt
Is there any other solution for this issue ? -
AIR application problem in Lion OS X
Hi ,
This is Mani from Bangalore,India. my Adobe AIR application is not working. Actually i am using SockMonitor for checking server status but it is giving always status is available even i am not connected Network cable or VPN Offline. it is giving result as server available.
My application is working fine in Mac OS 10.6
Thank you,
ManiCould you please open a new bug report on this over at bugbase.adobe.com? When adding the bug, please include any source code, project or application so that we can attempt to reproduce the issue internally. If you'd like to keep your code private, feel free to email it directly to [email protected] Once entered, please post back with the URL so that others effected can add their comments and votes.
Thanks,
Chris -
OMG, after last AIR update before current ALL my AIR apps will not work, HELP!
I have 5 or 6 AIR based apps after I did an update last month, none of them will work. I just re-installed and updated AIR again today and re-installed all the apps multiple times and when I go to one it trys to open the last I installed for every app it only opens the last installed. App installions always end with "faled to open app" and in the log I see this "Error: Missing necessary file META-INF/AIR/application.xml" not sure?
Windows 7 (all lastest updates)
Latest Air (13.057 I believe?)
How do I fix this, why did it break?
Full log:
http://ge.tt/2IDeU4b1/v/0?cHello,
I could install and run the AIR application successfully with AIR 4.0, 12.0 and 13.0.
Looking into the log, it seems that "missing application.xml" and "Application Installer end with exit code 7" issues have been there from 2014-02-09, below is the detailed log seen from http://ge.tt/2IDeU4b1/v/0?c. This issue maybe caused by the application.
Is there an application.xml under C:\Program Files (x86)\YourApplicationXXX\META-INF\AIR\ ?
If possible, could a bug against this issue be logged in https://bugbase.adobe.com/, and upload the AIR application which does not work. That would be very helpful to triage and find the root cause for this issue.
Thanks your support!
===================================================
[2014-01-04:01:26:19] Launching subprocess with commandline c:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\Adobe AIR Updater -updatecheck
[2014-01-04:01:26:20] Runtime Installer begin with version 3.9.0.1380 on Windows 7 x86
[2014-01-04:01:26:20] Commandline is: -updatecheck
[2014-01-04:01:26:20] Installed runtime (3.9.0.1380) located at c:\Program Files (x86)\Common Files\Adobe AIR
[2014-01-04:01:26:20] Performing pingback request
[2014-01-04:01:26:21] Pingback request completed with HTTP status 200
[2014-01-04:01:26:21] Starting runtime background update check
[2014-01-04:01:26:21] Clearing unused background update directory
[2014-01-04:01:26:21] Begin Background update download from http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.9.0.1380/update
[2014-01-04:01:26:21] Unpackaging http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.9.0.1380/update to C:\Users\Owner\AppData\Roaming\Adobe\AIR\Updater\Background
[2014-01-04:01:26:21] Runtime update not available
[2014-01-04:01:26:21] Unpackaging cancelled
[2014-01-04:01:26:21] Runtime Installer end with exit code 0
[2014-02-09:13:58:50] Application Installer begin with version 3.9.0.1380 on Windows 7 x86
[2014-02-09:13:58:50] Commandline is: C:\Users\Owner\Downloads\SPPro\SocialPostingPro-4.air
[2014-02-09:13:58:50] Installed runtime (3.9.0.1380) located at c:\Program Files (x86)\Common Files\Adobe AIR
[2014-02-09:13:58:53] Unpackaging file:///C:/Users/Owner/Downloads/SPPro/SocialPostingPro-4.air to C:\Users\Owner\AppData\Local\Temp\fla3EA0.tmp
[2014-02-09:13:58:53] Application signature verified
[2014-02-09:13:58:53] Unpackaging/validation complete
[2014-02-09:13:58:53] No app located for appID 'com.igs.socialpostingpro' and pubID ''
[2014-02-09:13:59:06] Converting unpackaged application to a native installation package in C:\Users\Owner\AppData\Local\Temp\fla729C.tmp
[2014-02-09:13:59:06] Native installation package creation succeeded
[2014-02-09:13:59:06] Starting app installation to C:\Program Files (x86). Installing app com.igs.socialpostingpro version 1.0.8 using the source file at file:///C:/Users/Owner/Downloads/SPPro/SocialPostingPro-4.air
[2014-02-09:13:59:06] Installing msi at C:\Users\Owner\AppData\Local\Temp\fla729C.tmp\setup.msi with guid {050F1169-D97B-B822-C803-D727DB278A96}
[2014-02-09:13:59:17] Got an unexpected fatal error while accessing app for launch: Error: Missing necessary file META-INF/AIR/application.xml
[2014-02-09:13:59:41] Application Installer end with exit code 7 -
Auto launch of Air application
We are using Adobe Air as the UI front end to headless
application. We need to install the Air application but not have it
launch immediately. Is this possible?There is a button to check for not launching it automatically
when you install it.
Maybe you are looking for
-
Installer encountered an error: 0x80096002 on windows 8.1
hello, I am trying to install Windows Installer 4.5 [windows6.0-KB942288-v2-x64] on windows 8.1 which is pre-requisite for installation of "Microsoft® SQL Server® 2008 Express with Advanced Services" I am getting below error while installing Windows
-
I am working in an MNC as xi consultant ...And I got an offer from one another mnc to work as an xi consultant .I have one doubt regarding my job offer and i think you can give me correct advice ...the req in my next company is in BPO sector and my d
-
About the jmxi.jar, posible bug
Hi: Im deploying a web app with oc4j, but im having problems with this library jmxi.jar. I dont have changed any file from the original downloaded file oc4j_extended_101310: I get this warning message: Warning: The source code of D:\OC4J\j2ee\home\ap
-
Have a customer that reports a 4402 controller that has no console access after a software upgrade from 4.2.99 to 4.2.176. They report they thought 4.2.176 went in ok but failed to read the configuration. So they loaded 4.2.112.0 ER.aes. The controll
-
What is raw10 image file type format of X3-02 ? Is it same as camera raw files in general ? If so, is there a raw converter program with support for the file type ?