Skip to main content
March 6, 2013
Answered

SDK component Runtime.apk is out of date export captive build for Kindle Fire

  • March 6, 2013
  • 2 replies
  • 4181 views

Hello

Kindle fire only supports AIR 2.7 and I'm trying to export a build release in Flash Builder 4.7 with the AIR runtime included (captive build). Whenever I build I get the following error:

SDK component at air/android/device/Runtime.apk is out of date

I tried running the updater and it said I'm up to date. I did download the SDK and put it in my home folder but I can't seem to change the SDK reference in the preferences.

(I had another java out of memory error including my ANE file but I turned it off just to get a build out. Not the focus of this discussion)

It would be nice if flash builder just let me reference my freshly downloaded SDK but instead I have to sift through their document structure guessing where I should be updating the Runtime.apk that SHOULD be up to date already.

I have had to go in to the package itself and modify the ini files and over-write the adb files from the fresh download of the SDK before.

I'm guessing there is a way to update the Runtime.apk but i have so many bin executables spread all of my computer it's hard to tell what flash builder wants!!!

There is always one problem after another developing with Flash Builder ... Please help.

This topic has been closed for replies.
Correct answer

I was able to get it to work! First I used Flash Builder to create the "build-release-temp" folder but not delete it. Then after the build failed in Flash Builder I went to "Customized Launch" and copied the command line build command it provided. Then I opened terminal and went to the "build-release-temp" folder. I had to tweak some of the paths and move my certs folder but I got it to build. It loaded and installed fine on the Kindle.

There is CLEARLY something very wrong with Flash Builder. Here is my command that i used

bin-release-temp Paul$ java -d32 -jar ~/flex_sdk_4.6/lib/adt.jar -package -target apk-captive-runtime -storetype pkcs12 -keystore certs/google-play-store.p12 -storepass <hidden for obvoius reasons> Musicnotes-amazon-2_0_1.apk Musicnotes-app.xml .DS_Store Musicnotes.swf com/.DS_Store icons/.DS_Store icons/icon114.png icons/icon128.png icons/icon16.png icons/icon32.png icons/icon36.png icons/icon48.png icons/icon480.png icons/icon512.png icons/icon72.png icons/icon86.png nochump/.DS_Store com/freshplanet/.DS_Store com/musicnotes/.DS_Store nochump/util/.DS_Store com/musicnotes/containers/.DS_Store com/musicnotes/controls/.DS_Store com/musicnotes/skins/.DS_Store com/musicnotes/navigation/viewer/.DS_Store

A few things to note. First I am using the flex sdk I downloaded and put in my home directory. The swf file is actually being compiled correctly.


Final note, this is helpful for anyone who wants to avoid going through what I did.

Download Flex SDK 4.6.0 from the web and replace the one that Flash Builder gives you. There is some disconnect for some reason. This fixed my problems. Flash Builder actually happens to use the Runtime.apk that is included in the Flex SDK. Which is confusing because the AIR SDK also includes a Runtime.apk. In the prefs, FB says the Flex SDK is up to date when running a check but then when you try to export a captive release it all of a sudden realizes that it's not up to date but provides no update solution.

Flash Builder needs to be more aware of the current SDKs and packaged with valid one.

You're welcome tech support you got some support

2 replies

Participant
July 16, 2013

Hi,

After many try with something similar, (Flash Builder can't see my HTC one runing on Android 4.1 and 4.2 ) and runtime.apkis out of date,
This evening i'm just double check my config booth on my mac and on my Android phone. To be sure i've the last version of air on my phone, i uninstal the previous version.....

By mistake, i ran the debug version of my application, FB say 'There is no AIR on the device...blablabla' click on OK , and it's work ... big surprise.
Everything work, not a damn error ! WTF

I kill my app on my phone, and retry redo this experience.... and BAM "Runtime.apk is out of ..... arrrrggg".

Wait wait wait......

I uninstal the AIR on the PHONE, do the same again (launch without AIR on my phone)... and it's work !!!!!


The Runtime.apk that is out of date is THE ONE ON MY PHONE not on the flex or Air SDK (yeah i've tried to update all also ).

It's really boring but it's a work around!!!

I hope it's help you !

Adobe Employee
July 17, 2013

This issue is fixed in latest AIR3.8 beta and should be available in next release.

Colin Holgate
Inspiring
March 6, 2013

You can't debug with captive runtime in 3.6, and Kindle Fire doesn't do debug in general. If you do a release build with captive runtime, doesn't that work ok on the Kindle Fire?

March 6, 2013

Please read my first sentence noting the bolded words:

"Kindle fire only supports AIR 2.7 and I'm trying to export a build release in Flash Builder 4.7 with the AIR runtime included (captive build). Whenever I build I get the following error:"

A captive build would work if I could get it to BUILD first. I am unable to complete the build due to the error I just described.

Can you please re-read my post, at what point did I say debug build?

I am assuming the Runtime.apk is included as part of the build because captive build means that it's including the runtime and it needs this as part of the package not because I'm doing some sort of debug build ....

March 6, 2013

Here is an image of the error shown at the start of the build release compile:

http://www.d10arts.com/share/fb_compile_err.png

Here is an image of the error shown when I try to update the Flash Builder untouchable AIR SDK:

http://www.d10arts.com/share/fb_sdk_up-to-date.png