tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/344-air-27-playbook-and-robotlegsRobotlegs: Discussion 2018-10-18T16:35:29Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/84891482011-07-08T21:24:10Z2011-07-08T21:24:10ZAIR 2.7, PlayBook and Robotlegs<div><p>Hi all,</p>
<p>I am using FDT, with Robotlegs and the latest PlayBook SDK to
deploy an application to my PlayBook. One problem I am having is
that I cannot connect back to the debugger from the device but
another issue I am having sounds like it could be releated to
Robotlegs.</p>
<p>I can deploy my app in debug mode and although it will not
connect to the debugger, the app will launch and is functional.
However when I change to release mode the app shows a blank screen
(suggesting that the app is not being bootstrapped and therefore
not initialising ). I found this post: (<a href=
"http://knowledge.robotlegs.org/discussions/problems/22-export-release-build-in-flash-builder">http://knowledge.robotlegs.org/discussions/problems/22-export-relea...</a>)
and I thought that maybe in release mode the compiler was ignoring
the metadata required so I added the following to me compiler
arguments:</p>
<p><code>-keep-as3-metadata+=Inject
-keep-as3-metadata+=PostConstruct</code></p>
<p>However this did not solve the problem. I am using ANT to build
my project and I specified the compiler arguments in FDT via the
project properties so I wasn't sure if my compiler arguments would
be ignored. I should point out that this has only become a problem
since the latest PlayBook SDK update (which uses AIR 2.7 rather
than AIR2.5)</p>
<p>Any help would be appreciated.</p></div>darloScottttag:robotlegs.tenderapp.com,2009-10-18:Comment/84891482011-07-09T08:59:36Z2011-07-09T08:59:36ZAIR 2.7, PlayBook and Robotlegs<div><p>Hi Darlo,</p>
<p>If you read the 'common problems' wiki entry you'll find some
info on how to add the metadata when compiling using ant:</p>
<p><a href=
"https://github.com/robotlegs/robotlegs-framework/wiki/common-problems">
https://github.com/robotlegs/robotlegs-framework/wiki/common-problems</a></p>
<p>When in debug-mode the metadata from the swc gets compiled in,
but in release mode it doesn't. It did also happen in Air 2.5 but
again only in release mode.</p>
<p>Hopefully adding the arguments to your ant file will fix it (the
FDT project properties won't be read by ant afaik),</p>
<p>Do come back if that doesn't work,</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/84891482011-07-12T18:48:44Z2011-07-12T18:48:44ZAIR 2.7, PlayBook and Robotlegs<div><p>Hi Stray,</p>
<p>Thank you very much for your reply. I realised I wasn't
compiling using the .SWC, instead I had placed the robotlegs
classes in the src folder. As soon as I used the .SWC the problem
was resolved (no need to use the arguments in my ANT build).</p>
<p>Thanks again.</p></div>darloScottt