I need to remove "air." from package name. I'm get a Layout xml error when repackaging android app..

So, i'm doing this on my own app. I made an update for an older app that was build using Native Android. But this time, i used Adobe AIR... The catch is Adobe likes to append a "air." to the front of your package name without asking you. So basically I can't upload my update because it has a new package name is now "air.com.mycompany.myapp" rather than the original "com.mycompany.myapp"
Basically I'm going through this guide..
http://helpx.adobe.com/air/kb/opt-out-air-application-analytics.html
I followed all the steps, made all the adjustments to the androidmanifest.xml like it asks.
But after going along with the above guide, with no issues when i get to the step that says
"Run the following command to create the resource file for the updated AndroidManifest.xml:"
I run this..
    "/Users/brybam/Documents/eclipse/android-sdk-mac_x86/platform-tools/aapt" package -f -M AndroidManifest.xml -F resources.arsc -I "/Users/brybam/Documents/eclipse/android-sdk-mac_x86/platforms/android-8/android.jar" -S ./res
But I keep getting the same error regarding the xml files in res/layout
    ./res/layout/expandable_chooser_row.xml:1: error: Error parsing XML: not well-formed (invalid token)
    ./res/layout/expandable_multiple_chooser_row.xml:1: error: Error parsing XML: not well-formed (invalid token)
    ./res/layout/main.xml:1: error: Error parsing XML: not well-formed (invalid token)
    ./res/layout/multiple_file_selection_panel.xml:1: error: Error parsing XML: not well-formed (invalid token)
    ./res/layout/ssl_certificate_warning.xml:1: error: Error parsing XML: not well-formed (invalid token)
The guide doesn't say anything about these xml files, and im not sure what to do with these or how to handle them.
If i go into the res/layout folder, and just delete these (i know they're necessary. But i just deleted them as a test, to get through the rest of the guide...)
I was able to get through the rest of the steps in the guide fine, make an apk, and put it on my phone...only to find out the app will crash the moment you try to run it. Probably because i deleted the layout xml files...But i cant get the command i need to run above to accept them!
So, earlier in the guide they have me use thing thing called the "AXMLPrinter2.jar" to make the AndroidManifest.xml readable so i can edit it.
I run something like this:
    java -jar "/Users/brybam/Desktop/repackage/AXMLPrinter2.jar" AndroidManifest.xml > AndroidManifest.xml.bk
This makes a new file "AndroidManifest.xml.bk" and i can edit that.
So, I was thinking with all of these layout xml files, maybe I could run this "AXMLPrinter2.jar" on them and then edit them. Because right now if you open them they're not human readable, and its hard for me to work on them if they're not...
I tried this thinking i could do the same thing...
    java -jar "/Users/brybam/Desktop/repackage/AXMLPrinter2.jar" main.xml > main.xml.bk
Just get a blank file and a console erorr when trying to use the AXMLPrinter2.jar on the layout xml files...
    java.lang.ArrayIndexOutOfBoundsException: 67
              at android.content.res.StringBlock.getShort(StringBlock.java:231)
              at android.content.res.StringBlock.getString(StringBlock.java:91)
              at android.content.res.AXmlResourceParser.getName(AXmlResourceParser.java:140)
              at test.AXMLPrinter.main(AXMLPrinter.java:56)
So, I think my whole issue is based around these XML files not being converted to human readable before i try and re-package....
EDIT:::
Ok, so I found a site that talks about the error I'm getting but it's in chinese, and even after translating the page...I'm still not well versed with terminal and this stuff to get it.
It reads:
"Error.
Final conclusion:
In minSdkVersion <= 7, AXMLPrinter2.jar can normally decompile xml file
Greater than 7 can not be normal decompile xml file (AndroidManifest.xml except)
Give way to share a batch decompile xml file:
First, create a *. Txt file
Stresses inside the content authoring
for / r layout%% a in (*. xml) do @ java-jar AXMLPrinter2.jar "%% a" >> "%% a". txt
Then this txt file extension into bat form, and this BAT the file and AXMLPrinter2.jar on the same directory will be decompiled xml into the layout directory
Decompilation results can be generated by executing the bat file multiple xml files."
- http://hi.baidu.com/ghcghc/item/ecbaa1ce997cb225a0b50ac2
Maybe someone with more know-how could explain what they're explaining? I get that he's saying the issue im seeing appears when you're using minSdK <=7 but I need to use minSdk 8. Does anyone understand this work around? And how I might go about it on a Mac with terminal?
I wish adobe would make it easy to remove the "air." from the package name. If they want to convert old Native devs to AIR devs...the transition needs to be seamless. But now I'm about to have to go back to Native because I can't update an app I already have out on the market with an air app.

Hello~
     I also tried to remove "air." package name in air application. And i encounter the same problem.
     I do not find any solution to decode the xml inside res folder by AXMLPrinter2.jar. And those xml inside is compressed which is unreadable.
     However, what you can do is copying the structure of res folder. And go to your air sdk file path -  adobeair-sdk-folder/lib/android/lib/resources/
     Replace those file exists in your res folder. And copy "values" folder to your res folder.
     Hope this solve your problem~

Similar Messages

  • Removing date from file name

    Hello,
    Is there any way to move all the file from one location to another and remove the datepart from filename.
    for eg:- if file name is abc_20150411.xls change to abc.xls. if file name does not contain date part then ignore it.
    Can any one suggest if its possible.
    Thank You

    Hi ,
    I have created package based on your question and decribed in detail in below post:-
    https://msbitips.wordpress.com/2015/04/12/ssis-removing-datestamp-from-file-name-when-moving-from-one-location-to-other/
    You need package code, just add comment in this thread.
    Thanks
    Prasad
    Mark this as Answer if it helps you to proceed on further.

  • Hi Support, how can I install photoshop again after disk failure. Still says I have 2 copies installed, need to remove one from my old pc.  Thanks for any help.

    After drive failure, I decided to install photoshopcc on my home pc.
    when I try to start it, I get the message "already installed on 2 devices"
    I need to remove it from one of those devices.
    It's not obvious how to do this.
    Thanks in advance for any help

    On one of your older PCs, Start Photoshop, go to the  Help menu > Deactivate...
    This is a forum of users like yourself volunteering our time to help, we are not Adobe support.
    Gene

  • TS1389 I need help removing UAC from itunes..

    I need help removing UAC from itunes so it will not allow me to open itunes. Everything I have read from other comments that you shouldn't turn off your user account control. I just to be able to open itunes. Can anyone help me with this problem?? Greg, ogrady612@yahoo,com

    I had this problem too but you do not need UAC to be turned on.
    Click on start and search for 'uac' in the search box at the bottom and click on 'Change User Account Control Settings' when it comes up. Move the slider to the bottom when the window appears and save the changes and your done!
    It's worked for me and my uac has been off for months without causing me any problems!
    Hope this helped

  • I need help removing CS3 from Windows 7 so I can reinstall

    I need help removing CS3 from Windows 7 so I can reinstall

    Before trying to remove try re-installing CS3 right on top of the current install.  Often re-installing Photoshop on top of itself fixes the install.  If it does be sure to apply the cs3 updates.
    Download Adobe CS4 and CS3 Free Trials Here (incl. After Effects) | ProDesignTools
    your product key can be retrieved from here https://www.adobe.com/account/my-products-services.html
    use these links for the updates.
    Adobe - Photoshop : For Macintosh
    Adobe - Photoshop : For Windows

  • Alas, I updated to Lion and need to remove Appleworks from laptop. What, besides the application (folder) else do I need to remove. I am putting items onto a CD so I may be able to work on a Leopard machine.

    Alas, I updated to Lion and need to remove Appleworks from laptop.  I am putting items onto a CD so I may be able to work on a Leopard machine.What, besides the application (folder) else do I need to remove to the CD?

    (user)/Documents/AppleWorks 6 Button Bars (this is no longer used) and Appleworks User Data
    (user)/Library/Preferences/Appleworks (folder)

  • I'm getting message Lightroom encountered error when reading from its preview cache needs to quit. Lightroom 5 on Windows 7

    I'm getting message Lightroom encountered error when reading from its preview cache needs to quit. Lightroom 5 on Windows 7

    To delete the preview cache, do this:
    1. Quit Lightroom.
    2. In your Operating System, locate your Lightroom catalog. Typically catalogs are in /Pictures/Lightroom on Mac and My Pictures\Lightroom on Windows.
    3. Find the folder whose name ends with "Previews.lrdata" and delete it. (note, you may also have a folder whose name ends with "Smart Previews.lrdata." You shouldn't need to delete that one.)

  • After migrating to a new MacBook Air from an older MacBook, iPhoto gets stuck on uploading cache, it just "spins" forever. I downloaded a new iPhoto app and replaced it but when opened it just does the same thing? What is going on?

    After migrating to a new MacBook Air from an older MacBook, iPhoto gets stuck on "uploading cache", it just "spins" forever. I downloaded a new iPhoto app and replaced it, but when opened it just does the same thing? What is going on? Where are my photos now? How can I upload photos from my camera without iPhoto?
    Is there a better app?
    Thanks, Chris

    Take the system to an Apple store to be fixed or replaced as the one you have has defective hardware.

  • 'Install App for SharePoint' There were errors when validating the App Package

    Hello,
    When testing with an app, I tried to add an
    app event receiver before learning that remote event receiver are not allowed with
    Sharepoint-hosted app. So I reseted the Handle app installed and
    Web Project properties of my project and tried to redeploy and this error occurred :
    'Install App for SharePoint' There were errors when validating the App Package
    Something other than the project's properties have been modified but I don't know what.

    I think the best way to figure real reason out is to look at ULS logs.
    This is example, what I had:
    Unexpected        App Packaging: CreatePackage: Unexpected exception: There were errors when validating the App package: There were errors when validating the App Package. Other warnings / errors associated with this
    exception:  The current version of SharePoint is less than the SharePointMinVersion specified in the app manifest. CurrentVersion='15.0.4693.1000', SharePointMinVersion='16.0.0.0'.

  • SSRS XML Errors when exporting to .xlsx from Dynamics NAV Database

    We use Dynamics NAV for our ERP and have many SSRS reports.  We get xml Errors when exporting to Excel .xlsx.  I've seen this happen since SQL 2008 R2 and have posted in many places trying to find an answer, but was hoping MS would solve the
    issue.  The numeric data types in the Dynamics NAV database are all decimal(38,20) and when the value is zero the Excel renderer throws the errors. 
    We now have over 400 reports and we export them to Excel 2003 format. I'm starting to feel like this is my new Y2K issue when Excel 2003 is set to sunset.  I'm fearing that I'll have to do conversions on all numeric data types for all reports. 
    Both of these are Microsoft products so I'm wondering is this even on their radar.
    We're running SQL Server 2012 SP2, and just rolled out CRM 2015 on SQL Server 2014.  I get the errors in SSRS 2008R2, 2012, and 2014.  Has anyone seen this before?   
    Timothy Kruse

    Hi Skywalker73,
    According to your description, when you export the report to Excel, the error “Excel was able to open the file by repairing or removing the unreadable content.” throws out when opening the Excel file.
    Based on my research, it has reported the same issue when exporting to Excel. The issue could cause by numeric columns has  a precision of 16 or higher. To fix the issue, we could change data type in the table to a support lower precision, or convert
    the numbers in the stored procedure that populates the report. For more information, please refer to this article:
    SSRS 2012 Bug – “Excel found unreadable content”. Besides, please refer to this
    article to check if non-printing characters exist in the report.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • [svn:bz-trunk] 21394: bug fix for watson 2887837 Not getting duplicate session detected error when same flex client id is used from two different HTTP sessions in CRX .

    Revision: 21394
    Revision: 21394
    Author:   [email protected]
    Date:     2011-06-16 12:34:13 -0700 (Thu, 16 Jun 2011)
    Log Message:
    bug fix for watson 2887837 Not getting duplicate session detected error when same flex client id is used from two different HTTP sessions in CRX.
    get the sessions id before we invalidate the duplicate session.
    Checkintests pass
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseHTTPEndpoint.java

    For our profect I think this issue was caused as follows:
    Believing that remoting was full asynchronous we fired a 2 or 3 remote calls to the server at the same time ( within the same function ) - usually when the users goes to a new section of the app.
    This seemed to trigger the duplicate http session error since according to http://blogs.adobe.com/lin/2011/05/duplication-session-error.html  two remote calls arriving before a session is created will cause 2 sessions to be created.
    Our current solution ( too early to say it works ) is to daisy chain the multiple calls together .
    Also there seemed to be an issue where mobile apps that never quit ( thanks Apple! )  caused the error when activated after a few hours.
    I guess the session expires on the server and the error above occurs on activation.
    So the mobile apps now ping the server with a remote call when activated after sleeping for more than one hour.
    All duplicate http errors are silently caught and reported.
    Fingers crossed we won't get any more!

  • Can't delete certain emails from Mail.  Instead, I get the message "An error occurred while moving messages to the mailbox, etc."

    Can't delete certain emails from Mail.  Instead, I get the message "An error occurred while moving messages to the mailbox, etc."  The problem appears randomly.

    I had the same problem, and it was solved by going to the Mailbox menu and selecting "rebuild."

  • When downloading photos I get "LR encountered and error when reading from its preview cache --?

    When attempting to download images I get "LR encountered an error when reading f rom its preview cache and needs to quit.  Only downloads ~ 10  of 300 photos and shuts down.  What to do?

    Have you tried to delete the preview cache?
    Axel

  • Hi. NOT CALL ME FOR I AM DEAF BETTER U WRITE ONLY EMAIL. When I run the app ALLMYMUSIC FROM WONDERSHARE after installing I get this window up. When I log in with my Apple ID I just get: The Apple ID you entered couldn't be found or your password was incor

    Hi. NOT CALL ME FOR I AM DEAF BETTER U WRITE ONLY EMAIL.
    When I run the app ALLMYMUSIC FROM WONDERSHARE after installing I get this window up.
    When I log in with my Apple ID I just get:
    The Apple ID you entered couldn't be found or your password was incorrect. Please try again.
    I have however made sure that this is the correct Apple ID and password that I am putting in. In the Mac App Store it works.
    Do you have any solution?
    I am running Mavericks 10.9.2.

    To post a screenshot click on the "Camera" button at the top of the reply box and upload it there.
    MtD

  • How to find proc/func name from package name and line number?

    Hi,
    We are using the pl/sql call stack dump (dbms_utility.format_call_stack) for some debugging purposes. But in the case of a package body execution, the dump does not return the name of the procedure/function that is being executed, but only the name of the package and the line number being executed. So, we have a requirement wherein we need to extract the type and name of a package subunit from the package name and line number.
    e.g.
    From the information package 'A', line number 739
    we should be able to deduce that line 739 is a part of *'function A.f'*
    Does the oracle database provide any native mechanism (PL/SQL packages or otherwise) to support such functionality? If it does not, how can we achieve the desired result?
    Thanks in advance,
    Shashank

    The approach we are currently planning to take up is this :
    1. Write PL/SQL code to parse the entire source (user_source) and build a database table with a structure like this :
    PACKAGE_NAME | UNIT_TYPE | UNIT_NAME | START_LINE | END_LINE
    =============================================
    A | PROCEDURE | P1 | 20 | 345
    A | FUNCTION | F1 | 347 | 629
    etc..
    2. Start PL/SQL package execution.
    3. Keep dumping call stack snapshots whenever a custom debug procedure is called.
    4. Dump the package name and line number to a log file.
    5. Using the package name and line number, query the table built in step 1 and build the final report which shows the control flow in a readable form.
    What we want is to get rid of step 5 and by some means get the logic to extract the unit type and name in step 4 itself.
    Keep them coming..
    Thanks and regards,
    Shashank

Maybe you are looking for