Invalid SWC file using ADT to create an Android Native Extension

I'm following a tutorial on youtube:
https://www.youtube.com/watch?v=dfq9wiuLks4
Using Flash Builder 4.6 and and when I get to the point where the project is supposed to be built using adt I run into the following error:
"Invalid swc file:"
Here is the command I'm using:
adt -package -storetype PKCS12 -keystore newcert.p12 -storepass mypassword -tsa none -target ane notifications.ane build/ane/Notifications.swc -platform Android-ARM -C build/ane/Android-ARM
Ive tried setting the Additional Compiler Arguments in the Flex Library Compiler to this: "-locale en_US -swf-version 19"
Still the same result, If anyone can help me figure out how to trouble shoot this or isolate the problem I would greatly appreciate it.
Thanks

Any progress on it? I have the same problem...
Thanks

Similar Messages

  • Packaging an AIR application in a .EXE file using ADT

         Hi All,
    I have to package a .AIR file in  .exe file with ADT.
    Is it possible setting a default installation path in exe file using ADT tool?
    I would like to create a .exe file where user can't interact with installation wizard to set a particular path.
    Does it exist a particular option?
    Would you suggest an example?
    (...adt -package -target native ??? myApp.exe myApp.air)
    Thanks in advance
    Gianni

         Hi All,
    I have to package a .AIR file in  .exe file with ADT.
    Is it possible setting a default installation path in exe file using ADT tool?
    I would like to create a .exe file where user can't interact with installation wizard to set a particular path.
    Does it exist a particular option?
    Would you suggest an example?
    (...adt -package -target native ??? myApp.exe myApp.air)
    Thanks in advance
    Gianni

  • I am trying to find out how to assign files with particular extensions to the appropriate software. At the moment when I create a file using Word it is apparently given the extension .docx but Word doesn't recognise its own files. How do I alocate th

    I am trying to find out how to assign files with particular extensions to the appropriate software. At the moment when I create a file using Word it is apparently given the extension .docx but Word doesn't recognise its own files. How do I allocate the extension .docx to Word? There used to be a way of doing it, I think under "Preferences" but I can't seem to find it.

    Still in the same location:
    File > Get Info > Open with (select) > Change All (button)

  • Android Native Extension crashes if i use anything other than Activity class to extend my activity

    It seems my android native extension is crashing everythime i use anything like FragmentActivity etc. Looks liek android's supportv4 classes are also not supported with native extension coding. I even have my question posted here.
    http://stackoverflow.com/questions/16470791/adobe-air-native-extension-application-crashes -on-using-fragmentactivity
    If anyone has a answer please help out.

    Any progress on it? I have the same problem...
    Thanks

  • Creating .swf from .fla file using ADT command line

    Dear Adobe Community and Moderators:
    Is it possible to use the ADT command line to directly compile an .fla file into an .swf file? Context: I have an app created in Flash Pro CS55 (6 months worth of work), but now found Adobe has dropped Flash Pro in favor of Flash Builder or Flex. I have some native extensions I want to use for iOS, but they require Air 3.1 to compile (swf-version=14) i.e. using the MessageUI framework in a static .a library for an Air app. Flash Pro CS55's top end limit seems to be swf-version=13 (Flash 11). Because of heavy investment in time and energy into our Air app in Flash Pro, it's not feasible to convert to Flex by end of week. I tried creating an .swc file, and taking the library.swf from that, but alas, a catch-22, Flash Pro CS55 only compiles to swf-version=13.
    Is there any way to either (a) directly compile my root .swf file (from the .fla file) using a command line (so I can use ADT from Air 3.1 SDK) or (b) some way I can marry a native extension I've found I can use on GitHub which is swf-version=14? Again, my issue is that I have to use Air 3.1 since only it supports iOS5.
    Any thoughts, suggestions, comments are highly appreciated (including if it's not possible to do what I'm trying to do).
    Thank you Adobe community in advance,
    Alex

    I have the exact same question, please respond if you hold the answer to this! mxmlc won't work for me since I have created too many assets within the fla already! Thanks!

  • Creating IPA file with Multiple SWF files using ADT

    Iam successfully able to create ipa files using the ADT package but my next requirement is to create an IPA file with multiple swf files.I think it might be easy if your SWF files are regular the tough part is my swf file has lot of action script in it so the only option is to through the command prompt and using the ADT package of Adobe AIR.So now i have 10 SWF files like this and iam creating ipa file for each swf seperatly but now I want to put all of the swf files into one ipa file.Please let me know if i was not clear in my description

    I think you are trying to explain how to load two swf's one with action
    script and loading an other swf file which should be non action script.If
    you read my requirement carefully.I have all the same type of swf's and
    these swf are automatically created as a form of output for xcelsius dash
    board software.Iam capable of creating individialu ipa files from these swf
    files.So when I try to combine the same kind of swf files the first error
    its giving is the file name which I have used in the xml.in the main file
    name for the swf file its not considering the two swf file name in the
    initial window.so the adt package in the command line is not understanding
    the file name from the xml and the command prompt and giving error this swf
    file does not exist.So please consider how to combine two swf files with AS3
    into one ipa file.These swf files are not editable,Let me know if you find
    any idea to achieve this

  • Using OpenGL ES in an AIR native extension on iPad

    Hi,
    I am trying to find out whether I can render images using iPad GPU from a native extension loaded by an AIR application on iPad. The main reason for this is that I need every bit of GPU power in my AIR application and I cannot use Stage3D (see http://forums.adobe.com/thread/1267084 for details).
    The idea is to pass a bitmap from the ActionScript code to the native extension, render it by Objective C code and raw OpenGL ES and send it back to the AIR code.
    Is it technically possible? I am afraid that AIR runtime uses OpenGL ES for its own needs (at least for Stage3D support) so native extension possibly cannot share OpenGL with it.
    Nevertheless I have made a try. Here is some code:
    The first strange thing is that the following initialization code:
    myContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
    [EAGLContext setCurrentContext:myContext];
    does not make much sense for me. Instead of this I can see that EAGLContext already contains some instance previously set up by someone else (maybe AIR runtime did it). And I was able to get an image only when I do not create this context at all. So these two lines are actually commented out in my test app.
    Here is how I initialize framebuffer:
    glGenFramebuffersOES(1, &framebuffer);
    glBindFramebufferOES(GL_FRAMEBUFFER_OES, framebuffer);
    glGenRenderbuffersOES(1, &colorRenderbuffer);
    glBindRenderbufferOES(GL_RENDERBUFFER_OES, colorRenderbuffer);
    glRenderbufferStorageOES(GL_RENDERBUFFER_OES, GL_RGBA8_OES, width, height);
    glFramebufferRenderbufferOES(GL_FRAMEBUFFER_OES, GL_COLOR_ATTACHMENT0_OES, GL_RENDERBUFFER_OES, colorRenderbuffer);
    I do not need 3D so I am not creating depth buffer. Insteat I need to render a lot of 2D polygons and the drawing order is OK for me.
    Then I tried the following code to render a single triangle specified in the vertexData array:
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    glOrthof(-1.0f, 1.0f, -1.0f, 1.0f, -1.0f, 1.0f);
    glMatrixMode(GL_MODELVIEW);
    glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
    glClear(GL_COLOR_BUFFER_BIT);
    // vertexData contains 2d float coordinates followed by 4 bytes of color for each vertex
    glEnableClientState(GL_VERTEX_ARRAY);
    glVertexPointer(2, GL_FLOAT, 12, vertexData);
    // The following two lines cause the whole screen to be filled with random gradient semi-transparent fill.
    // If I comment them out then it renders a black triangle that I really expect to get.
    glEnableClientState(GL_COLOR_ARRAY);
    glColorPointer(4, GL_UNSIGNED_BYTE, 12, (vertexData + 8));
    // Draw the triangle:
    glDrawArrays(GL_TRIANGLES, 0, 3);
    // Get the final image:
    glPixelStorei(GL_PACK_ALIGNMENT, 4);
    NSInteger datalength = width * height * 4;
    GLubyte* rawdata = (GLubyte*)malloc(datalength * sizeof(GLubyte));
    glReadPixels(x, y, width, height, GL_RGBA, GL_UNSIGNED_BYTE, rawdata);
    // In this point the rawdata array contains an image that I am able to convert and send back to my AS code.
    So each time I try to specify color for vertexes then I get the whole iPad screen filled with some random gradient. I have also tried glColor function and it causes such effect too. Disabling lighting and fog did not helped.
    So my main question is the following: is it technically possible to render an offscreen image in the native extension using OpenGL?
    Maybe the black triangle that I was able to get from the rendered image is rendered accidentally and the whole thing should not work at all?

    Hi there,
    I'm a total OpenGL newb but, after quite some struggle I managed to bend OpenGL from AIR extension to do what I wanted in my FlashyWrappers library for iOS (for superfast video capturing from AIR apps).
    Basically you're right in the assumption that the OpenGL context is already initialized by AIR. I'm not sure about your code, because like I said I'm practically a newb in that field, but overall, because you share context with AIR's OpenGL, it's entirely possible you're messing with it's own rendering pipeline if you don't properly unbind / reset stuff and that might cause the screen go crazy.
    Myself I was able to do a little different thing: Create a texture-backed FBO, bind it on every frame and let AIR render into it (instead of screen). I was then able to manipulate the contents of what AIR rendered (you can do glReadPixels on the content too, by the way).
    So I bet if I can let AIR render its stuff into my texture backed FBO you can render your own things into it as well...I just bound it and waited for AIR to finish its rendering into it. Instead you can probably render into it, then bind AIR's original FBO instead of waiting for AIR to render so that AIR renders to screen again on the next frame.
    I partially used this tutorial OpenGL ES 2.0 for iPhone Tutorial Part 2: Textures - Ray Wenderlich .
    Oh and I would like to add that playing with this works only in GPU or Direct mode, not CPU.

  • How to debug swc files in Flash CS5

    Hi, to coin a familiar phrase "I'm new to Flash developement". My question is very simple. How do I debug .swc files (that I've created in Flash Builder 4) in Flash Professional CS5. I've incorporated the .swc file in the Publish Settings->Flash tab. But when I attempt to consume the objects in the .swc file I get an error saying it "Cannot display source code at this location."
    Can someone tell me the best pratice for debugging .swc files. Do I debug them in Flash Builder or Adbobe Professional Flash CS5?

    I think I found the solution to my problem..... but dont know how to implement it correctly.
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/StageScal eMode.html#SHOW_ALL
    I believe I need to use the SHOW_ALL constant, but there isn't an example of how to do it
    Heres my code, it compiles without errors, but when I publish it as .exe I get the 'Error 1037: Package cannot be nested':
    package
              import flash.display.StageScaleMode
              import flash.media.Camera;
              import flash.media.Video;
              public class ScaleMode
                        public static const SHOW_ALL:String = StageScaleMode.SHOW_ALL;
                        var camera:Camera = Camera.getCamera();
                        if (camera != null) {
                                  videoTwo.attachCamera(camera);
                        } else {
                                  trace("You need a camera.");
              stop();
    Any ideas??

  • How to read a text file using Java

    Guys,
    Good day!
    Please help me how to read a text file using Java and create/convert that text file into XML.
    Thanks and God Bless.
    Regards,
    I-Talk

         public void fileRead(){
                 File aFile =new File("myFile.txt");
             BufferedReader input = null;
             try {
               input = new BufferedReader( new FileReader(aFile) );
               String line = null;
               while (( line = input.readLine()) != null){
             catch (FileNotFoundException ex) {
               ex.printStackTrace();
             catch (IOException ex){
               ex.printStackTrace();
         }This code is to read a text file. But there is no such thing that will convert your text file to xml file. You have to have a defined XML format. Then you can read your data from text files and insert them inside your xml text. Or you may like to read xml tags from text files and insert your own data. The file format of .txt and .xml is far too different.
    cheers
    Mohammed Jubaer Arif.

  • Question about openning files using SDK 10.

    I have written a Plug-In for SDK 9 that works wonderfully. One of the functions is for the user to be able to page (Next/Previous) between PDF files on our server. This functionality now longer works without crashing Acrobat 10. All I am doing is creating the URL path to the next/previous PDF, creating a CustomFileSys with the path and calling AVDocOpenFromFile.
    Does this no longer work with Acrobat 10 SDK?
    Thanks!

    Should work fine, AFAIK.
    For this level of issue, I would open a formal support request with developer support.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Mon, 10 Oct 2011 08:51:08 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Question about openning files using SDK 10.
    Question about openning files using SDK 10.
    created by Greggars<http://forums.adobe.com/people/Greggars> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3963065#3963065

  • Can I monitor a Log file using EMGC 10.2.0.2?

    Hi,
    I am thinking of monitoring my web application log file using EMGC by creating a generic service is that possible. Now we are using some shell scripts to do that but its bit difficult to maintain all these shell scripts on each of the host. Is there any in built in mechanism that enable me to monitor the log file and when a perticular pattern match I would like to send a email notification to concerned people say application admins if there is no out of box option for this do we have plugins to do this. please let me know the possibility of implementing this using EMGC or extencibility plug-ins.
    Ashok Chava.

    Hi,
    I have used "Log File Pattern Matched Line Count" of host to monitor the log files and below is the pattern I have defined for the log file. But i could not find any alerts even there are so many such exceptions in the log file matching the patteren given in EMGC.
    /u01/app/oracle/product/IAS904/sysman/log/emias.log;%oracle.sysman.emSDK.util.jdk.EMException;%
    I have even add the log file in agent_home/sysman/config/lfm_ifiles file as given in the documentation but I could not see any alerts as expected am I doint anything wrong in my setup.
    Please let me know.
    Thanks,
    Ashok Chava

  • Why no swc file exported?

    Q1. I am new in flash CS4. I have tried to export an simple flash which just contains a square to .swc file using Publish and Export Movie, but there only has one .swf file exported. No .swc is found. I already selected the export to .swc file in Publish Settings, however the result is same. Any one can help me?
    Q2. I have tried to export a .swc file on the Library Panel. It works. However, when I import it into Flash Builder. I can't find any new component in the Custom Component Panel in Flash Builder. Anything I did wrong?
    War

    experiencing the same with CS5.5 .... publish progress bar shows for a second, then nothing ... no error message at all

  • Transfer files using wifi between different OS.

    How to transfer files e.g. doc; xls or any files using wifi between ios and android devices ?

    Check out the Feem WiFi File Transfer app
    https://itunes.apple.com/us/app/feem-wifi-file-transfer-free/id596378699?mt=8
     Cheers, Tom

  • Creating ios native extension with 3rd party frameworks

    Hello,
    I'm new to Air development and creating a ios native extension for my flex mobile project.I want to include third party frameworks such as admob,facebook,chartboost in my ANE
    I have tried to link frameworks using packagedDependencies but it dosn't work.(gives me an error telling that "armv7 not supported")
    am I doing something wrong? or is there any proper way to link frameworks?
    platformoptions.xml
    <platform xmlns="http://ns.adobe.com/air/extension/4.0">
         <sdkVersion>7.1</sdkVersion>
         <linkerOptions>
              <option>-ios_version_min 6.1</option>
              <option>-framework StoreKit</option>
              <option>-framework CoreGraphics</option>
              <option>-framework UIKit</option>
              <option>-framework Foundation</option>
         </linkerOptions>
         <packagedDependencies>
             <packagedDependency>frameworks/Chartboost.framework</packagedDependency>
             <packagedDependency>ios/libAdExtension.a</packagedDependency>
        </packagedDependencies>
    </platform>
    extensionxml
    <extension xmlns="http://ns.adobe.com/air/extension/4.0">
        <id>com.my.extensions</id>
        <versionNumber>1</versionNumber>
            <platforms>
                <platform name="iPhone-ARM">
                <applicationDeployment>
                <nativeLibrary>libAdExtension.a</nativeLibrary>
                <initializer>ExtInitializer</initializer>
                <finalizer>ExtFinalizer</finalizer>
                </applicationDeployment>
            </platform>
        </platforms>
    </extension>
    -command
    /Applications/Adobe\ Flash\ Builder\ 4.7/sdks/4.6.0+airSDK4.0/bin/adt -package -target ane adExtension.ane extension.xml -swc bin/AdsLibrary.swc -platform iPhone-ARM library.swf frameworks/Chartboost.framework ios/libAdExtension.a -C ios . -platformoptions platformoptions.xml
    -error
    ld: warning: ignoring file /var/folders/3r/x0bh_4.... file was built for unsupported file format ( 0Undefined symbols for architecture armv7:
      "_OBJC_CLASS_$_Chartboost", referenced from:
    ld: symbol(s) not found for architecture armv7
    Compilation failed while executing : ld64
    *I used lipo to combine simulator and device .a files
    please help

    From the catalog Chartboost.framework copy the static library file Chartboost(path: Chartboost.framework/Versions/A/Chartboost) and use it instead of .framework :
    <platform xmlns="http://ns.adobe.com/air/extension/4.0">
         <sdkVersion>7.1</sdkVersion>
         <linkerOptions>
              <option>-ios_version_min 6.1</option>
              <option>-framework StoreKit</option>
              <option>-framework CoreGraphics</option>
              <option>-framework UIKit</option>
              <option>-framework Foundation</option>
         </linkerOptions>
         <packagedDependencies>
             <packagedDependency>frameworks/Chartboost</packagedDependency>
             <packagedDependency>ios/libAdExtension.a</packagedDependency>
        </packagedDependencies>
    </platform>
    adt -package -target ane adExtension.ane extension.xml -swc bin/AdsLibrary.swc -platform iPhone-ARM library.swf frameworks/Chartboost ios/libAdExtension.a -C ios . -platformoptions platformoptions.xml

  • Problems creating a Native Extension linking to a static library

    Hi,
    I'm trying to create my own Native Extension for iOs that will use another static library.
    My problem occurs when I try to package my app with ADT: after a lot of "ld warning: unexpected srelocation type 9" , I get a final error : "ld: thumb bl/blx out of range (-4468380 max is +/-4M)"
    This may be caused by the fact that the static library I am using needs the gcc setting "compile for thumb" turned off. I've done that in XCode to get my .a file to generate my .ane, but how could I tell ADT to take it into account ?
    Thank you for your help !

    Are you compiling for ARMv6 or ARMv7?
    With armv7, you do not need to switch off the "compile for thumb" anyways.
    Also, I guess you are using an iOS version greater than 4.3 to compile your native library. In this case, using -platformsdk switch of adt, while packaging your application might  just resolve your issue.(You will see some ld 4-byte alignment warnings, but thats ok)
    -Neha

Maybe you are looking for

  • Changing apple id for the icloud

    My family of four currently shares one Appleid which is becoming a problem as we dont want to share contacts etc across our iphones. How do I switch the common apple id (that each of our phones is now using) so that each phone now has its own unique

  • How do I display a PDF file in Adobe from h:commandLink or h:outputLink

    I am looking to add a simple "Help" link on my header. The idea is to add an h:outputLink or h:commandLink component and when it is clicked, an existing PDF file will be displayed in the default (Adobe) viewer. Can anyone give me a simple example of

  • Intel Mini: Diabling the onboard bluetooth hardware/using a Dlink USB BT

    I have a Intel Mini Core 2 Duo (1.8x Ghz) I broke the bluetooth antennae connector inside the case while upgrading the memory. My BT keyboard and mouse continues to work, but only with the case open, and when they are very close to the computer. I ha

  • How to configure letter of credit in SAP

    hi all,    how to configure letter of credits (LOC) in sap. regards srinivas

  • Price too low (below tolerance limit of 10%)

    Hello, I am facing the below error while processing of MIRO. The error detail is as below: Price too low (below tolerance limit of 10.00 %) Message no. M8085 Diagnosis The invoice price (value invoiced divided by the quantity invoiced) varies too gre