Copy link to clipboard
Copied
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.
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 capt
...Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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 ....
Copy link to clipboard
Copied
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:
Copy link to clipboard
Copied
It was more exciting the second time I read it!
The situation with updating the SDK in FB 4.7 seems to be tricky. Is there anything in the discussion in these places that applies to your case?:
http://forum.starling-framework.org/topic/flash-builder-47-update-tips
http://helpx.adobe.com/flash-builder/kb/overlay-air-sdk-flash-builder.html
Copy link to clipboard
Copied
After following the steps I am getting the following err:
http://www.d10arts.com/share/fb_err.png
I dont think the whole SDK needs to be updated, just teh Runtime.apk? I guess it wouldn't hurt to use the new SDK if I can figure this out.
Copy link to clipboard
Copied
Well, I fixed that error by including the ANE in my build. Note this time it was a debug build! There must be a setting to ignore this in the previously installed SDK.
Then I went to do the release and I am still getting the Runtime.apk is not up to date error with the newly install SDK.
So installing a fresh SDK did not fix the issue.
Copy link to clipboard
Copied
I've asked iBrent to take a look at this thread. He's a lot smarter than me when it comes to Flash Builder. I have him beat in other areas…
Copy link to clipboard
Copied
Thanks! Note I am trying to export with AIRSDK 3.6 now, a fresh download as of 30 min ago.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Just be sure you've downloaded the correct AIR 3.6 SDK specific to Flash Builder! On this page: http://www.adobe.com/devnet/air/air-sdk-download.html in small print is this note:
Note : Flex users will need to download the original AIR SDK without the new compiler. Mac Windows.
Be sure to install the appropriate sdk if you're using Flex in your mobile project. Otherwise the main download will work with ActionScript only projects in Flash Builder 4.7
Can you confirm you installed the correct SDK? Also with ANEs, it's important to identify what version of AIR the ANE supports.
If you still run into trouble with your current configuration, try building a new mobile project and export release build with captive runtime and see if it compiles correctly. If it does, then it's going to be a problem with your current project, and I'd look at how the ANE is packaged. See if there's documentation on how to include the ANE, etc. If you still can't compile a blank mobile project, then your AIR installation is incorrect.
iBrent
Copy link to clipboard
Copied
That was the SDK that I found through google.
It's now building with Flash Builder after replacing the flex 4.6.0 folder with a freshly downloaded 4.6.0.
My ane requires 3.1, I have compiled it for Android many times before having to make a captive build.
Currently attempting to compile it via command line with the ane and still getting the java out of memory error. This is another issue.
Have added -d64 and -Xmx4112m -Xms4112m with no luck compiling via command line. You'd think 4 gigs would be enough to compile a 5 mb file.
Copy link to clipboard
Copied
I'm getting the same error with FB 4.7 but with AIR SDK 3.7. I replaced every runtime.apk that I could find, but still seem to receive the same error.
Copy link to clipboard
Copied
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 !
Copy link to clipboard
Copied
This issue is fixed in latest AIR3.8 beta and should be available in next release.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now