Android R.* access and the case of the missing styleable

Hi,
I'm trying to use appcompat-v7 in my ANE and access it via the R.* mechanism.
The packaging step of the ANE works fine.
However, when building the final .apk using this ANE, the styleable elements disappear. The other resources (such as drawables, etc) are present just fine in the output.
The artifacts I'm using are classes.jar and the res folder from inside the .aar for appcompat-v7: \android-sdk\extras\android\m2repository\com\android\support\appcompat-v7\19.0.1\appcompa t-v7-19.0.1.aar
The end result is that the generated apk contains and R file for this library, and an R.styleable, but it's empty (by comparison in a properly built non-air android app this R.styleable would contain quite a few different fields). The other R. classes seem to be properly populated with a merge of the resource ids - R.string, R.layout, etc.
Here's (a trimmed down version) of the platform.xml I'm using when packaging the ANE:
<platform xmlns="http://ns.adobe.com/air/extension/4.0">
    <packagedDependencies>
        <packagedDependency>support-v4-19.0.1.jar</packagedDependency>
        <packagedDependency>android.support.v7.appcompat-classes.jar</packagedDependency>
    </packagedDependencies>
    <packagedResources>
        <packagedResource>
            <packageName>android.support.v7.appcompat</packageName>
            <folderName>android.support.v7.appcompat-res</folderName>
        </packagedResource>
    </packagedResources>
</platform>
Here are the errors I'm seeing during install time:
D/dalvikvm﹕ DexOpt: couldn't find static field Landroid/support/v7/appcompat/R$styleable;.ActionBarLayout
D/dalvikvm﹕ DexOpt: couldn't find static field Landroid/support/v7/appcompat/R$styleable;.ActionBarWindow
D/dalvikvm﹕ DexOpt: couldn't find static field Landroid/support/v7/appcompat/R$styleable;.Theme          
...the list continues here
and at runtime:
java.lang.NoSuchFieldError: android.support.v7.appcompat.R$styleable.ActionBarWindow
So the question is: are styleable attributes supported in air native extensions?
Thanks,
Radu

Nimisha1,
Thank you for the info but it seems R.styleable still has something wrong. As suggested, I'm using AIR beta 14.0.0.125 and I set JAVA_HOME
in the machine, pointing to JDK 1.6.0. I'm on Mac OSX 10.9.3, by the way.
I used apktool again to compare the apk with the one created by Eclipse. All the xml files of the resources are in 'res' now but the difference is in
the file named R$styleable.smali which is located at
APK_ROOT/smali/android/support/v7/appcompat/R$styleable.smali
The one created by Eclipse contains the declarations for ActionBarWindow but the one by Flash Builder doesn't.
I wonder if something is still missing... anyhow it would be great if you could help me again. Thanks.
middletail

Similar Messages

  • Itunes on my Ipad takes me to the American store, tells me I can't access and to switch to the Canadian store.  I am Canadian.  How do I switch?

    Itunes on my Ipad takes me to the American store, tells me I can't access and to switch to the Canadian store.  I am Canadian.  How do I switch?

    Changing App Store Country
    settings/itunes & app store, tap ID, tap view ID, log in, tap country/region then select the country you want
    See "Change your iTunes Store country" > http://support.apple.com/kb/HT1311

  • Does OS installed through boot camp or in virtual machine has access and full control of the peripherals like native OS X Lion?

    I am planning to buy new PC for my faculty needs and this time I am thinking to buy Apple laptop like Mac book Pro 13" or so ( I owe already IPhone and Ipad 2)
    To make final decision I need few information . These are:
    1. May I use Boot Camp or similar utility software to install Windows 7 OS next to OS X Lion, or use some kind of virtual box software to create virtual machines with diverse guest OS in them like Windows , Linux etc.?
    2. Does OS installed through Boot camp or in virtual machine has access and full control of the peripherals like native OS X Lion?
    3. May I use the same disk partitions to access to the files regardless if I am using Windows 7 or OS X Lion operating system?
    4. Is there full compatibility between Microsoft Office under OS X Lion and Windows 7 M. Office?
    5. What is general user experience with OS X Lion operating system comparing to Windows 7?
    Thanks for  sharing your experience with me.
    Adnan S

    adnans wrote:
    I am planning to buy new PC for my faculty needs and this time I am thinking to buy Apple laptop like Mac book Pro 13" or so ( I owe already IPhone and Ipad 2)
    To make final decision I need few information . These are:
    1. May I use Boot Camp or similar utility software to install Windows 7 OS next to OS X Lion, or use some kind of virtual box software to create virtual machines with diverse guest OS in them like Windows , Linux etc.?
    2. Does OS installed through Boot camp or in virtual machine has access and full control of the peripherals like native OS X Lion?
    3. May I use the same disk partitions to access to the files regardless if I am using Windows 7 or OS X Lion operating system?
    4. Is there full compatibility between Microsoft Office under OS X Lion and Windows 7 M. Office?
    5. What is general user experience with OS X Lion operating system comparing to Windows 7?
    Thanks for  sharing your experience with me.
    Adnan S
    1. Yes. You can install Windows 7 natively using Boot Camp Assistant or you can install Windows 7 in a virtual machine using Parallels, Fusion, or VirtualBox
    2. If installed using Boot Camp Assistant Windows 7 uses all your computer's resources just as OSx does. If installed using a VM Windows 7 will share the computer's resources with OSx.
    3. A Boot Camp partition is separate from the OSx partition. The VMs allow sharing of files across partitions since both OS are running at the same time.
    4. No, not 100%.
    5. Too broad a question. Be specific about what feature you are asking about or search the Internet for comparisons. I use both and find they both work well.

  • HT202774 Captions are not respected when turned off under Accessibility and still appear in the native player, how do I turn of captions?

    Captions are not respected when turned off under Accessibility and still appear in the native player, how do I turn of captions for the native player?

    Restart your computer while holding down left mouse key. That will eject the CD and your Mac will start as normal.
    Lupunus

  • G'day, i am trying to type into an adobe document using the typewriter function. However everytime after i type the text vanishes. It is almost as if the text is white and vanishes into the background. However this is not the case as the works are not vis

    G'day,
    I need some help, i am trying to type into an adobe document using the typewriter function.
    However every time after i type the text vanishes. It is almost as if the text is white and vanishes into the background.
    This is not the case as the works are not visible regardless of the background color.
    The text box remains available and can be edited if clicked on, also if i double click on it the typed words become visible and editable, however once i close the box i cannot see them on the screen.
    I would appreciate any help i can get, i cant seem to do anything using properties or view.
    Thanks 
    Tiernan

    Hi Sara,
    See response to your questions below:
    1.     Are you running into this issue in a specific PDF, or in all of them?
    A.     All of them
    2.     What version of Acrobat are you using (and, are you on Mac OS or Windows?).
    A.     Using Acrobat 10.0\Acrobat on Windows
    3.     If you look at the text properties on the Tools panel (under Format), what color is the text swatch?
    A.     Test swatch for the text is black
    4.     What happens if you change the text color?
    A.     Nothing.
    I look forward to hearing back from you.

  • My macbook 13 inch late 2007 model got soaked in wine I bought a pro to replace it , I want to use my hard drive on it as an external , I already purchased the case , now the motherboard I understand gets bad but not the hard drive , right?

    my macbook 13 inch late 2007 model got soaked in wine I bought a pro to replace it , I want to use my hard drive froom the old one on the macbook pro and use it as an external , I already purchased the case , now the motherboard I understand gets bad but not the hard drive , right? but everything else still is in there right. ? 
    I got my case from owc computing
    thye used a cloner last time I got the hard drive from them , but the apple had to be working. and now it's just not going to turn on wine is sticky forget about
    no worries I enjoyed it for 6 years could have gone longer I have all this extra gig ram memory, and a new digital drive for ith had broke
    all I want it my hard drive available at owc and make it a usb drive and acc3sss my stutt ? thansk any ideas and also on how I could sell or use the parts I can salvage,    and yay my new pro ix 17 inches silver sleek full ms office i life and i work. included 389 awesome price , no need for new this does awesome . rather than buying an optical drive for 200.00 I got a new computer to me and better for a lot less.          
    I am gratefful , just please help on the hard drive question as external ,
    thanks
    just didnt want to make this sound like a sob sitiuation and also inspire others what can be done.
    and I then will be able to upgrade to Snow Leopard and i life 2011.

    Well as I suspected I love OWC company I pulled out the mac hard drive , they offered me a Macdrive  free trial program to check your drive on PC Windows and yesSSSSSSSSSSSSSSSSSSSSSSSS it all there nothing lost
    woohooooo , thank you but nothing is dead, when you have faith , this was a prayer answered big time I wanted a pro so much and I get to use my 500  plust 250 plus 120 GB drives all of them
    ladies and gentlemen and I get to keep the 2 GB in from my macbook 13 inch and sell all the parts
    yipeee
    thanks for the support, now the case is Solved. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • The Case of the Disappearing Clones

    Ok, here's a new one for me.
    I was cloning a cloud edge, and examining my work. The History palette was blocking my view, so I moved it. Instead, it jumped to the palette bar. Brought it back and tried to move it again. Same thing. Huh? I opened it for the third time, carefully clicked on the top of the History  and this time it moved off the edge of the image. But look! The clones have disappeared from the image, but they are still present in the palette! I ran back and forth up History and nothing. There they are in History, there they aren't on the image. Not a big deal, redo the clones. Looks better than before anyway, but still, where are the first ones?
    (Yeah, I know. Dual monitors and all that. But consider if I have dual monitors, this puzzle never would have appeared! Or would they?)
    Win7 64, CS5 with all the patches.
    Oh, and Happy New Year.

    Thanks for getting back Noel.With a name like yours, tis the season!
    Last first. Nothing wrong with dual monitors except for my cramped desk space. I probably will change that as soon as any of my potential clients actually materializes. Been quite slow!
    So far as screen shots and such, it would have been nice had I anticipated this event, but there it was and I had to write down what I could recall as to the steps leading up to the event. Saving it would lose history so I proceeded rather slowly to try and glean whatever I could.
    Now, a variation on this occurred about an hour later. This time I was using the Burn Dodge tool. I flattened the file first, then proceeded to use the tool, and suddenly noticed that nothing happened when a went backwards through history, as if I didn't actually burn anything. The setting for the brush looked ok, and then I noticed that the file is no longer flattened! WTF! I was deliberate in doing so, and even if I went back to before flattening in History, flattened should be visible and available as I drop down through History. According to History, I never flattened it. This could also be the case in the first instance. I thought I had flattened it but it wasn't. I assumed I didn't flatten.
    At this point, I have to consider that a prefs reset is adviseable, but before doing that, I really want to see if I can replicate either event. So far, no dice.
    I checked the History setup to see if non-linear History was checked and it isn't. But it sure seems like it is.
    One unusual condition is that last night, before going out for New Years, I saved my work but left PS running with the file open. So, this morning, I proceeded to do the little detail work on the open file as I intended to run some test prints.
    That's when it all started.
    Note: as I am writing this, I'm also checking out the app. I just tried to open PS. The icon in the tray showed PS is not running, but I cannot open it. The executable doesn't run. I've seen this before in Win7 and I usually open Task Manager and shut down the program. I see this on any number of programs, like even Fire Fox. But this time I noticed two versions of PS running. I didn't think this was possible. One shows a large memory component 670,000k, the other  about 6,000k. Huh? I shut down the smaller one and get a message that this is an illegal action, but it shuts down anyway.(That notice lasted only seconds and went away.)  I try again, I again see the second version in Processes, the same 6000k memory size. Now it shuts down with no notice. I know I saved the file and did tell PS to exit, so I shut down both instances of PS. Now it opens correctly.
    I'm of a mind that there is some corruption going on.The fact that programs won't close when I exit does bother me. ( I'd hate to think about reinstalling the whole shootin' match!)  What I will do is enable the History log. and see if I can capture any information.

  • After editing a RAW photo in PE13 (my External Editor) sent from Apple's iPhoto, I can not reimport the edited photo bank into my iPhoto library. The "Import to Library" command is greyed out. This was not the case before the latest PE13 RAW update versio

    After editing a RAW photo in PE13 (my External Editor) originally sent from Apple's iPhoto, I can not reimport the edited photo back into my iPhoto library. The
    "Import to Library" command is greyed out. This was not the case until the latest PE13 update (Camera Raw Version 8.7.1.311). What needs to be done
    to reimport edited photos back into my iPhoto library? Ideas?

    Launch PSE Expert Mode and go to:
    Photoshop Elements Editor >> Preferences >> Saving Files (tab)
    Set the drop-down dialog
    On First Save : Save Over Current File
    Click OK.
    When you have finished editing in PSE use Cmd+S to save (not Save As)

  • HT3255 Do the cases for the Macbook 13.3' air 2011 model fit the Macbook 13.3' air 2008 model?

    I recently purchased a MacBook Air 13.3' late 2008 model. I am looking for a case. Do the cases for the 2011 still fit the 2008 model?

    Generally speaking yes, but check the manufacturer's website to be sure.
    I like these:
    http://www.speckproducts.com/macbook-cases/macbook-air/pixelsleeve-for-macbook-a ir.html

  • Where can I buy an ipad2 case with the same design as the case for the original ipad?

    I thought the case for the original ipad was great, but it doesn't quite fit the ipad2.  Is there somewhere I can find a case with that same design, but fitted for the ipad2?

    www.amazon.com
    Search for "iPad 2 Case"

  • Why should u not leave the case on the ipod while it is charging?

    Why should u not leave the case on the ipod while it is charging?

    Because charging the iPod battery generates heat which may become excessive if the iPod is left in a case. If you don't allow the heat to escape, then you risk damage to the iPod.

  • Mac App Store -- why can't I 'gift' Mac Apps? Gifting specific apps in the iTunes store is easy. This is not the case on the Apple Mac App Store.

    Why can't I 'gift' Mac Apps? Gifting specific apps in the iTunes store is easy. This is not the case on the Apple Mac App Store.

    An alternative is to purchase an iTunes gift card that can be redeemed for apps in the Mac App Store.
    Buy Apple Gift Cards, iTunes Gift Cards & iPhone Gift Cards - Apple Store (U.S.)
    iTunes Store: How to redeem a code
    You can provide feedback to Apple >  Apple - iTunes - Feedback

  • My TC has been working fine. Using WIFI my iMac, ipod touch were able to access the internet. Last night, no internet access and when I plug the router connection in my Mac all is good.

    My TC was fine, it supports a Mac and an ipod touch. I have had no issues until last night. Nominternet access, Timecapsule app cannot detect or finf the TC. I have my router cable plugged into my Mac and it's fine. I am using Leopard and have no idea what TC firmware version I am on. The TC does get hot! Any clues?

    Firmware downgrade.
    Go to the airport menu at the top of the page when you have airport utility open.
    The second screen will open over the airport utility.
    Now hold down the option key when you select firmware so not just new ones open but also old ones.
    You get a warning ..
    You proceed.
    Now you have your TC with whatever firmware you chose.
    That is about as Gumpy as I can do it.

  • Accessing and Moving files in the Cached Location

    I am having trouble accessing jar files in the cached location where WebStart puts files after an install.
    I cannot do the following:
    1. Start a separate process within the main process using a jar file brought over by WebStart.
    See the jnlp file below, the jar file I want to run as a separate process is second.jar.
    2. Move a jar file from the cached location to some other location on disk.
    All of this is attempted on my own machine with Admin rights.
    Here is the jnlp file:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
    codebase="http://server/test/"
    href="test.jnlp">
    <information>
    <title>Test App</title>
    <vendor>None</vendor>
    <homepage href="home.html"/>
    <description>Install the Client Application</description>
    <description kind="short">This is a description, kind = \"short\"</description>
    <description kind="tooltip">This is a description, kind = \"tooltip\"</description>
    <icon href="img/chart.gif"/>
    </information>
    <security><all-permissions/></security>
    <resources>
    <j2se version="1.4+"/>
    <jar href="main.jar" main="true"/>
    <jar href="second.jar"/>
    </resources>
    <application-desc main-class="MainApp"/>
    </jnlp>

    I'm having a few problems following your suggestion. We have main.jar and second.jar. In your solution you say to access some file in the jar, for me this is second.jar. I added a file called chart.gif to second.jar.
    The following code is inside main.jar to access chart.gif inside second.jar:
    URL url = getClass().getClassLoader().getResource("images/chart.gif");
    I verified that images/chart.gif is bundled inside second.jar by doing a "jar tf second.jar".
    The problem is when I re-load the updated jar files, and run the client app, the URL is null.
    I think your idea is to access any file in the other jar file to get at the url, and finally to get at the path
    of the jar file and execute it inside main.jar.
    So I am not able to access a resource that is in second.jar from main.jar.

  • I have sent my iPhone for repair, but the case has the wrong description, I have called and talked to Apple Support, and told them the actual case and they told me thats what it was for and my Warranty covered it.. When will I get a new iPhone or mine?

    I filed for a case and my One-Year warranty is still available until Jne 2014 , somehow the description in the case is mixed up and says it was cracked or dropped, but the real reason is the Audio goes out on my iPhone 5 after the iOS 7.1 update every 20 minutes and I have to restart it. I talked to apple support and they told me my warranty will cover the audio issue, but it still doesn't say that in the repair description. How can I see that? or will they already know? Apple has told me that they will, but I don't want it to be mixed up and me have to pay for something and it not being my fault.

    Besides checking the support status assuming you filed the case with your Apple ID, there is nothing more you can do. Nobody here knows that as nobody here works for Apple. We are users like you. Apple does not monitor this forum. You will have to contact Apple support for the information if you cannot get it the way I described.

Maybe you are looking for

  • Premiere Elements 12 and Davinci Resolve Lite

    I'm reaching out to see if anyone is currently using Davinci Resolve Lite along with PE12. Can't seem to find any info regarding a Workflow of color correcting / editing using these two programs. There are several regarding Premiere Pro, but not PE.

  • Acrobat X plugin & browser hosting

    Hi, We are currently in the process of adjusting one of our plugins for Acrobat X (using the Acrobat X SDK, of course). The plugin is relevant only when Acrobat is hosted (opened through) in a browser (mainly IE & Safari), that is - A user clicks on

  • How to fix a issue with a corrupted LDAP?

    Hi all. I am new to this communty ll appreciate if some of the knowledgeable members can help me on few weblogic scenario based querries. so here's it: If your weblogic server fails to start after you enter your credentials; and you know it's an issu

  • Camera Profiles gone in Camera Raw 6.2

    I recently updated my camera raw in Photoshop CS5 (Win 7 64 bit) to 6.2. I noticed this evening that my camera profiles are missing. Even if I open a raw file that I had previously edited. The only option under camera profiles is "Matrix". I used to

  • Query in Item Reservations Report

    Hi all, Can i know what the 'Remaining Quantity' in the Item Reservations Report mean.Also let me know when the same column will be affected and how. ie.When can reserved quantities and remaining quantities vary in the report? Regards, Bala.