Adobe FlashBuilder4を使用しています。
最新のプロジェクトでこの問題が発生しましたが、ほとんど空のプロジェクトで再作成することができました。
これが私がしたことです。
- 新しいFlexプロジェクトを作成しました
- このプロジェクト内にlocale/en_USフォルダーを作成しました。
- SparkDownloadProgressBarを拡張するクラスを追加しました。このクラスが行うのは、ラベルの作成を試みることだけです。
このアプリケーションをデバッグしようとすると、次のエラーが発生します。
Error: Could not find compiled resource bundle 'components' for locale 'en_US'.
at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:340]
at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:269]
at mx.resources::ResourceManagerImpl/processInfo()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:387]
at mx.resources::ResourceManagerImpl()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:122]
at mx.resources::ResourceManager$/getInstance()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\resources\ResourceManager.as:111]
at mx.core::UIComponent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:3728]
at spark.components.supportClasses::TextBase()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\TextBase.as:154]
at spark.components::Label()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Label.as:384]
at Preloader()[C:\SVN\Games\Social\Test\src\Preloader.as:21]
at mx.preloaders::Preloader/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:253]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:1925]
at mx.managers::SystemManager/initHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2419]
Flexコンパイラ/追加のコンパイラ引数セクションには「-localeen_US」が含まれていますが、実行時にローカリゼーション領域に基づいて異なるプロパティファイルをロードすることを計画しているため、これを削除したくありません。 、コンパイル引数行で使用する予定の各ロケールを追加する必要があります。
私はこの問題をどのように攻撃するかについて途方に暮れています。これを支援するために私からの情報がこれ以上必要な場合は、喜んで提供させていただきます。助けてくれてありがとう!