2014-12-17 2 views
-1
에 대한 Chromecast를 구글 보낸 샘플에서 VideoBrowserActivity를 구축

나는 신중하게 실행하는 데 필요한 라이브러리를 연결 한 이클립스 안드로이드

https://developers.google.com/cast/docs/android_sender

안드로이드

의 발신자 샘플을 실행하기 위해 구글 개발자의 단계를 따라했습니다 정지 :

  • CastVideos 안드로이드
  • CastCompanionLibrary 안드로이드
,

예에서 설명한대로 종속성을 수정 한 후 apk를 빌드하고 장치에서 실행하면 이클립스가 CPU의 300 %에 도달하여 apk가 빌드되지 않습니다. 일식 기다리는 후 반환 : Unable to execute dex: GC overhead limit exceeded in Eclipse.

나는 모든 라이브러리 (APPCOMPAT, mediarouter, 구글 플레이-서비스, ...) 및 안드로이드 SDK 5.0.1 (API 레벨 21)

는 당신이 아이디어를 가지고 있습니까와 예제를 구축 무슨 문제가 될 수 있습니까?

+1

당신은 실제로 문제가 무엇인지 알고 있습니다 : Android Studio 사용 : –

+0

그런 솔루션으로 내 stackoverflow-reputation을 다운 그레이드 해 주셔서 감사합니다. 이것은 투표해야하는 방식이 아닙니다 ... – Bernauer

답변

0

고정되기 전에 링크 오류를 확인하는 해결 방법이 있습니다. 프로젝트를 마우스 오른쪽 버튼

이동> 안드로이드 Toold> 내보내기 서명되지 않은 응용 프로그램 패키지>이 당신에게 린트보기에서 오류를 표시해야

. Avoid Android Lint complains about not-translated string

:

"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.) 

[여기

이 문제를 해결하는 방법은 다음과 같습니다 내 경우에는, 그들은, strings.xml의에서 번역 누락 여기

을 arrays.xml 된 것은 한 예이다

lint 오류가 수정되면 eclipse.ini에서 사용되는 메모리를 조정하여 앱을 실행할 수 있습니다. Unable to execute dex: GC overhead limit exceeded in Eclipse