如果我添加apache flex sdk 4.9.1作为我的编译器,我可以在fb 4.6中使用设计模式吗? [英] can i use design mode in fb 4.6 if I add apache flex sdk 4.9.1 as my compiler?

查看:498
本文介绍了如果我添加apache flex sdk 4.9.1作为我的编译器,我可以在fb 4.6中使用设计模式吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Flash Builder 4.6,并且刚刚添加Apache flex sdk 4.9.1(build 1447119)到运行Moutain Lion的mac专业版,并且当我尝试快速创建hello world并在舞台上添加了一些元素使用设计模式,我有以下错误:


设计模式被禁用,因为项目使用flex sdk的不兼容版本


我的问题是,如果我超出了fb 4.6附带的默认sdk,我是否因此失去了使用设计模式的能力,源模式?

另外,如果我使用的窗口错误是非常相似的,当我鼠标悬停在设计选项卡

lockquote

设计模式不支持 - 不兼容的SDK版本 - Apache Flex

谢谢

解决方案

有一个黑客可以做到让它工作(我自己做了这个它到目前为止完美)涉及编辑4.9.1 SDK中的XML文件以诱使Flash Builder认为它正在使用Flex 4.6。您需要编辑'flex-sdk-description.xml' Version标签并将其从4.9.1更改为4.6,这应该照顾它。文件的位置在4.9.1文件夹的SDK文件夹中,这里是Windows 7的路径:

  C:\\ \\ Program Files(x86)\Adobe\Adobe Flash Builder 4.6 \sdks\4.9.1 


I am running Flash Builder 4.6 and just added Apache flex sdk 4.9.1 (build 1447119) to my mac book pro running Moutain Lion and when i tried to do a quick 'hello world' and add a few elements to the stage using design mode i got following error:

The design mode is disabled as the project uses an incompatible version of the flex sdk

My question is if i go beyond the default sdk that shipped with fb 4.6 do I therefore loose the ability to use design mode and have to do everything in source mode?

Also, if i am using windows the error is quite similar when i mouseover on Design tab

Design mode not supported - incompatible SDK version - Apache Flex

Thanks

解决方案

There is a hack you can do to get it working (I've done this myself and it works perfectly so far) that involves editing an XML file in the 4.9.1 SDK to trick Flash Builder into thinking it is using Flex 4.6. You'll need to edit the 'flex-sdk-description.xml' Version tag and change it from 4.9.1 to 4.6 and that should take care of it. Location of the file is in the SDK folder in 4.9.1 folder, here is the path in Windows 7:

C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.9.1

这篇关于如果我添加apache flex sdk 4.9.1作为我的编译器,我可以在fb 4.6中使用设计模式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆