Android 앱에서 YouTube 동영상을 재생할 때 YouTube API를 사용하고 있습니다. 그것은 새로운 휴대폰에서 잘 작동하지만 내가 진저 브레드를 실행하는 장치에서 실행하려고하면, 나는 오류 얻을 : 나는 NoClassDefFoundError를에 대한 다른 많은 SO 질문에 읽은Android : NoClassDefFoundError with YouTubePlayerFragment on Gingerbread
Unable to resolve superclass of Lcom/google/android/youtube/player/YouTubePlayerFragment; (21)
Link of class 'Lcom/google/android/youtube/player/YouTubePlayerFragment;' failed
VFY: unable to resolve static method 9606: Lcom/google/android/youtube/player/YouTubePlayerFragment;.newInstance()Lcom/google/android/youtube/player/YouTubePlayerFragment;
thread exiting with uncaught exception (group=0x40015578)
FATAL EXCEPTION: main java.lang.NoClassDefFoundError: com.google.android.youtube.player.YouTubePlayerFragment
을,하지만 난 수없는 것 이 문제를 해결하십시오. 이 내가했던 것들이다 : 내 libs와 자바 빌드 경로에 "주문 및 내보내기 '에서
- 프로젝트를
- 추가 YouTubeAdnroidPlayerApi.jar를 청소, 나는 확실히 YouTubePlayerApi했다 .jar가 확인되었습니다.
- 내 Java 빌드 경로의 YouTube 라이브러리에 YouTubeAndroidPlayerApi.jar이 표시됩니다.
- YouTube API와 호환되는 기기에 YouTube 앱 버전이 있음을 확인합니다 (휴대 전화에는 YouTube 버전 5.3.24가 있음).
누구든지이 문제를 해결하는 방법을 알고 있습니까?
는이를 사용하는 방법의 예를 알고 있습니까? 나는 안드로이드를 처음 사용하고 조각을 사용하지 않았습니다. – scientiffic
도움이 될 것입니다 : http://stackoverflow.com/questions/20302110/struggling-with-youtube-player-support-fragment/20363160#20363160 – CzarMatt
팁 주셔서 감사합니다! 나는 이것을 조사 할 것이다. – scientiffic