我按照谷歌开发人员的步骤运行了适用于Android的发件人示例
https://developers.google.com/cast/docs/android_sender
我仔细链接了运行所需的库:
在修复了示例中所示的依赖关系之后,当我继续构建apk并在设备中运行它时,Eclipse冻结了300%的CPU,因此永远不会构建apk。等待一段时间后,eclipse返回:无法执行dex:eclipse中超出了GC开销限制。
我已经建立了所有的库(appcompat、mediarouter、google play services等)以及Android sdk 5.0.1(API级别21)的示例
你对可能出现的问题有什么想法吗?
有一种解决方法可以在链接错误冻结之前确定哪些是链接错误。
“转到项目右侧”按钮
这将显示Lint视图中的错误。在我的例子中,字符串中缺少翻译。xml,数组。xml
这里有一个例子:
"caption" is not translated in "af" (Afrikaans), "am" (Amharic), "ar" (Arabic), "bg" (Bulgarian), "bn-rBD" (Bengali: Bangladesh), "ca" (Catalan), "cs" (Czech), "da" (Danish), "de" (German), "el" (Greek), "en-rGB" (English: United Kingdom), "en-rIN" (English: India), "es" (Spanish), "es-rUS" (Spanish: United States), "et-rEE" (Estonian: Estonia), "eu-rES" (Basque: Spain), "fa" (Persian), "fi" (Finnish), "fr" (French), "fr-rCA" (French: Canada), "gl-rES" (Galician: Spain), "hi" (Hindi), "hr" (Croatian), "hu" (Hungarian), "hy-rAM" (Armenian: Armenia), "in" (Indonesian), "is-rIS" (Icelandic: Iceland), "it" (Italian), "iw" (Hebrew), "ja" (Japanese), "ka-rGE" (Georgian: Georgia), "kk-rKZ" (Kazakh: Kazakhstan), "km-rKH" (Khmer: Cambodia), "kn-rIN" (Kannada: India), "ko" (Korean), "ky-rKG" (Kyrgyz: Kyrgyzstan), "lo-rLA" (Lao: Lao People's Democratic Republic), "lt" (Lithuanian), "lv" (Latvian), "mk-rMK" (Macedonian: Macedonia, the former Yugoslav Republic of), "ml-rIN" (Malayalam: India), "mn-rMN" (Mongolian: Mongolia), "mr-rIN" (Marathi: India), "ms-rMY" (Malay: Malaysia), "my-rMM" (Burmese: Myanmar), "nb" (Norwegian Bokmål), "ne-rNP" (Nepali: Nepal), "nl" (Dutch), "pl" (Polish), "pt" (Portuguese), "pt-rBR" (Portuguese: Brazil), "pt-rPT" (Portuguese: Portugal), "ro" (Romanian), "ru" (Russian), "si-rLK" (Sinhala: Sri Lanka), "sk" (Slovak), "sl" (Slovene), "sr" (Serbian), "sv" (Swedish), "sw" (Swahili), "ta-rIN" (Tamil: India), "te-rIN" (Telugu: India), "th" (Thai), "tl" (Tagalog), "tr" (Turkish), "uk" (Ukrainian), "ur-rPK" (Urdu: Pakistan), "uz-rUZ" (Uzbek: Uzbekistan), "vi" (Vietnamese), "zh-rCN" (Chinese: China), "zh-rHK" (Chinese: Hong Kong), "zh-rTW" (Chinese: Taiwan, Province of China), "zu" (Zulu)
Issue: Checks for incomplete translations where not all strings are translated
Id: MissingTranslation
If an application has more than one locale, then all the strings declared in one language should also be translated in all other languages.
If the string should not be translated, you can add the attribute translatable="false" on the <string> element, or you can define all your non-translatable strings in a resource file called donottranslate.xml. Or, you can ignore the issue with a tools:ignore="MissingTranslation" attribute.
By default this detector allows regions of a language to just provide a subset of the strings and fall back to the standard language strings. You can require all regions to provide a full translation by setting the environment variable ANDROID_LINT_COMPLETE_REGIONS.
You can tell lint (and other tools) which language is the default language in your res/values/ folder by specifying tools:locale="languageCode" for the root <resources> element in your resource file. (The tools prefix refers to the namespace declaration http://schemas.android.com/tools.)
[]
以下是解决此问题的方法:避免Android Lint抱怨未翻译字符串
修复lint错误后,您可以让应用程序运行,调整eclipse.ini中使用的内存,如下所示:无法执行dex:Eclipse中超出了GC开销限制
问题内容: 我最近一直在使用Subversive插件在Eclipse中设置SVN(我仍然有些失落,但这是另一个问题)。 我一直在使用本指南(http://soledadpenades.com/2008/12/10/add-svn-support-to-your- eclipse-installation/ ),终于使它起作用了!现在唯一的问题是,我似乎找不到Package Explorer,这是我
主要内容:Eclipse Web浏览器Eclipse Web浏览器 Internal Web Browser 视图允许您从 Eclipse Workbench 窗口内浏览 Internet。要激活内部 Web 浏览器视图,请单击窗口并选择 “Show View” → Other。 在“Show View”对话框的过滤器文本框中输入browser。从树中选择内部 Web 浏览器并单击确定。 要导航到网页,请在内部 Web 浏览器视图的
主要内容:Eclipse 浏览视图,Eclipse 组织视图,Eclipse 移动视图,Eclipse 创建视图文件夹,Eclipse 打开视图Eclipse 浏览视图 Eclipse 视图允许用户查看项目元数据的图形表示。例如,项目导航器视图呈现与项目关联的文件夹和文件的图形表示,而属性视图呈现在另一个视图或编辑器中选择的元素的图形表示。 Eclipse 透视图可以显示任意数量的视图和编辑器。所有编辑器实例都出现在一个编辑器区域中,而视图则放置在视图文件夹中。工作台窗口可以显示任意数量的视图文
我正试图用C语言中的openCV捕捉我的内置摄像头,做一些处理。到目前为止,这项工作仍在进行中。 现在我想将网络摄像头传输到浏览器。我该怎么做? 我应该创建WebSocket吗?还是使用UPD Socket? Poco::网::WebSocket 非常感谢。
问题内容: 我正在使用Javascript解析具有大约3500个元素的XML文件。我正在使用jQuery“每个”函数,但可以使用任何形式的循环。 问题是循环执行时浏览器冻结了几秒钟。停止冻结浏览器而不减慢代码速度的最佳方法是什么? 问题答案: 我会放弃“每个”功能而赞成使用for循环,因为它更快。我还将使用“ setTimeout”添加一些等待,但仅在需要时才如此。您不想每次等待5毫秒,因为处理3
问题内容: 在我的Arch Linux,带有Google Window Builder / SWT应用程序的Eclipse上, 我相信我需要安装XULrunner或其他东西。但是当我在Arch中安装时,我得到了。所以我尝试安装。然后,我添加到并且不确定使用哪个。但是当我跑步时,我仍然遇到相同的错误。似乎仍未使用webkit。我怎样才能解决这个问题? 更新2 到目前为止,我尝试安装。然后添加到中,我