Flex - Air "nativeprocess not supported" - apache-flex

I want to fix the error when am using "nativeProcess" class it giving error, How to resolve the error.Any air installation failed?

According to documentation, NativeProcess is only supported with extendedDesktop profile via Native Installer
In clear text, you must have this in your appName-app.xml
<supportedProfiles>extendedDesktop</supportedProfiles>
And export your application as an .exe file (or whatever your system is), not an .air file.

I ran into such issue when i was using wrong adobe air sdk. As you know, native process support was introduced in 2.0 adobe air sdk. But i used Adobe Flash Builder plug-in for Eclipse, and Eclipse was pointing to 1.5. Manual replacement of air files in the sdk folder with ones in the Air 2 SDK and pointing Eclipse to the right sdk fixed the problem. See detailed description here:
http://www.selikoff.net/2010/06/28/installing-the-adobe-air-2-sdk-in-eclipse/
If you are using the appropriate air sdk, ensure that you've included "extendedDesktop" profile to the "supportedProfiles" section in your application descriptor file.

Are you running with needed privileges?
Did you do exactly as in this?
What kind of process you are trying to call?

Related

Update Flash Builder mobile app to use 64 bit with Air SDK 18.0

I am having a terrible time updating my Flex Project to use 64bit and iOS 8. I have to update because when I use Adobe Air SDK 14 I get the following error while uploading my release version via the Application Loader.
I've followed all of the instructions listed in the following, but nothing works:
http://easynativeextensions.com/making-your-ios-apps-universal/
https://helpx.adobe.com/flash-builder/kb/overlay-air-sdk-flash-builder.html
https://helpx.adobe.com/x-productkb/multi/how-overlay-air-sdk-flex-sdk.html
When I change the line in my air descriptor mxl file to:
<application xmlns="http://ns.adobe.com/air/application/18.0">
I get the following error:
I've downloaded the Air SDK from this page: http://www.adobe.com/devnet/air/air-sdk-download.html
I tried using both the main link and the Flex specific SDK only link.
Then I installed the Air SDK in /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722
Also, I used the Apache Flex SDK installer to get the latest flex SDK to be used with Air SDK 18.
It seems to have installed fine
As you can see I've tried multiple versions. I also select the air version in my Flex Project compiler path.
I even tried overlaying the SDK in the Flash Builder SDKs folder.
Still, I always get the error when I try to set my app descriptor XML line to 18.0
<application xmlns="http://ns.adobe.com/air/application/18.0">
I can set it to 16.0 and the application will build.
<application xmlns="http://ns.adobe.com/air/application/16.0">
But then when I build, my app has a ton of UI problems. Spinners go crazy and tab bars, buttons, and layout all have problems. My app goes from looking like this:
To this:
I have no idea what to do.
Menu -> Clean Project ....
Next, rebuilding

Adobe Air 2.5 and AIR Debug Launcher (ADL) from AIR 1.5.3 SDK

I am having some issues with the differences between running my Air Desktop application with the ADL from within my IDE and actually running it as an packaged air application that is installed. Everything functions as it should in the IDE when run with ADL, but once it is packaged the drag and drop functionality no longer works correctly.
I was able to get this to work when Adobe Air 1.5 runtime was installed, instead of 2.5. I am aware that there were a lot of changes made with this last update, but I am unsure of how to proceed, as I am unable to debug the packaged air application to see what is actually happening.
One solution that I could see would be to install the Adobe Air 2.5 SDK and use that to debug with.
If anyone has any insight to why drag and drop works in the ADL and the runtime, your feedback would be much appreciated.
Also, I am using Flash Builder 4, with the Flex 3.5 SDK
If something doesn't work when compiled, it's usually because you've used a feature only allowed for natively packaged AIR applications. Try packaging it as a native file using this guide and see if it works:
http://help.adobe.com/en_US/air/build/WS789ea67d3e73a8b22388411123785d839c-8000.html
Essentially all you'll need to do is:
Check this line in your app.xml file and make sure it is uncommented and set to extendedDesktop like below:
<supportedProfiles>extendedDesktop</supportedProfiles>
and then on the command line call:
ADT -package -target native mynewfilepath/myFile.exe myfilepath/myFile.air
[ADT is found within your flex sdk folder.]

How can I tell Flash Builder 4 where to look for FlashPlayer.exe

I uninstalled Flash Builder Beta 2 and installed the Flash Builder 4. I tried to import my new projects, but I keep getting a popup that says:
"
[path/to/Adobe Flash Builder Beta 2/FlashPlayer.exe]
Flash Builder cannot locate the required version of Adobe Flash Player.
Do you want to try to run your application with the current version?
Adobe Flash Player downloads"
I have a run config on a localhost server instead of generating the html wrapper. This only happens with imported projects, but I can't seem to find where in any of the config files the player location is specified.
I don't have a specific answer, but...
Instead of importing projects into a new workspace; have you tried using the same workspace? You can specify the workspace using the data argument when you launch Flash Builder:
flashbuilder.exe data="C:\something\something\something\workspace"
If that doesn't work, you can try to launch Flash builder with the '-clean' command line argument. I've found that fixes a lot of the issues I have.
Also check your SDK on the imported projects. Make sure it is not pointed at an old SDK from the beta 2 directory. After you change the SDK, be sure to clean the project.
Or if none of that works, re-create the project from scratch.

AIR - Making use of air.swf file in an internal network

Hello StackOverflow community,
The air.swf file referenced here:
http://livedocs.adobe.com/flex/3/html/help.html?content=distributing_apps_3.html
used to launch AIR applications from Flex applications requires the use of an air.swf file located here:
http://airdownload.adobe.com/air/browserapi/air.swf
We have tried to download this SWF and use it in our internal network, but it is not working, we depend on using the one located in the Adobe site.
Is there anyway to use this air.swf file without having to access the Adobe site?
Thanks!
Mauricio
No, this swf will not work if it's not loaded from adobe.com domain.
You can download the air.swf from the Adobe website (which the docs say you are free to do) and load it locally. Then the first call correctly gives the status of the AIR installation - "installed" or "available". However, if AIR is installed, the next call to getApplicationVersion always fails with "null" no matter the AIR app is installed or not. If I run the Adobe hosted version of air.swf everything works fine.
I am trying with AIR 2.0 and Actionscript 3.0.
i know this is rather a partial answer, but if I figure out more I will edit it!

How do you install Flex SDK 4 to Flex Builder 3.0.2?

i am really going to be crayz. I did everything to install nightly compiled SDK 4 to FB. When i am going to design mode it says,
Design mode: Cannot load textLayout.swc (reason: ERROR: Load Verify). It may require classes (such as Adobe AIR components) that are not supported by design mode. Check the Eclipse error log for more details.
and also when i'm pressing CTRL+SPACE, code complition is not working.
Do you have an idea?
Have you seen this page: http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-flex-builder-3/
(note: I haven't tried Flex 4 yet, so can't really offer much more than google-fu).
The official word is here.

Resources