Skip to main content
74soft
Participant
July 25, 2015
Question

Flash Builder 4.7 - Error occurred while packaging the application on android device (help newbie)

  • July 25, 2015
  • 2 replies
  • 1311 views

I keep getting this error when I try to package to my android device. I have moved the aapt.exe, adb.exe, adbWinApi.dll, adbWinUsbApi.dll and the dx.jar to the appropriate places and the original error of the device not being recognized is gone and now I am hitting the following error below. I have searched for a solution but nothing pertains to this exact problem. Any help would be appreciated.

Also before anyone asks the android-res.jar is in the folder and has been updated with the latest sdk.

Following is this error:

Error occurred while packaging the application:

aapt tool failed:ERROR: Asset package include 'C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\lib\android\lib\resources\android-res.jar' not found.

This topic has been closed for replies.

2 replies

marchbold
Inspiring
August 28, 2015

Most likely you've used version 21 or higher of the build tools.

These introduced some stricter rules on how resources are packaged and the AIR SDK is failing at present (which is the error message you are seeing).

Best you can do at the moment is update the SDK with v20 of the build tools.

air native extensions // https://airnativeextensions.com
Participant
September 7, 2015

Just to keep this thread up to date, I will post what worked for me:

adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll and dx.jar from Android sdk 23.0, and aatp from google sdk 20, working perfectly on windows 10 with flash builder 4.7 64 bit.

If you are using flash builder as a plugin in Eclipse Version: Luna Service Release 2 (4.4.2), this will not work due to scope issues.  It is an open eclipse bug afaik.

I will continue to test with ways to make it work as an eclipse plugin, since the flash builder native eclipse platform is very out of date, and many people these days prefer to use eclipse.  If I find a way, you will see a new post from me.  if not... well bad news ...

Anyway, this thread was exactly what I needed, so I hope that me providing this latest update will assist someone else.

Thanks to everyone on the thread!

Participant
March 31, 2016

Thank you very much, you helped me!

Colin Holgate
Inspiring
July 25, 2015

If you look for that file, is it there?

74soft
74softAuthor
Participant
July 26, 2015

Yes, I have checked its there.