마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

youtube api 에러 문의

0 추천

fragment에서 책장넘기기를 구현하고 

마지막에 유튜브의 연결하여 영상을 출력하려고 하는데..

계속 XML에서 에러가 나서 이렇게 문의를 드립니다.

 

 

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="company.testapp.app.GuideFragment">

    <ViewFlipper
        android:id="@+id/flipper"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@drawable/guide1">
        </LinearLayout>
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@drawable/guide2">
        </LinearLayout>
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@drawable/guide3">
        </LinearLayout>
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@drawable/guide4">
        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <com.google.android.youtube.player.YouTubePlayerView
                android:id="@+id/youtube_view"
                android:layout_weight="1"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"/>
        </LinearLayout>

    </ViewFlipper>

</RelativeLayout>
 
아래와 같은 에러가 발생하였는데 어떻게 처리를 해야하나요?ㅠㅠ
Process: company.nuc.testapp.kuvings_app, PID: 1311
android.view.InflateException: Binary XML file line #36: Binary XML file line #36: Error inflating class com.google.android.youtube.player.YouTubePlayerView
Caused by: android.view.InflateException: Binary XML file line #36: Error inflating class com.google.android.youtube.player.YouTubePlayerViewCaused by: java.lang.reflect.InvocationTargetException

 

쿠쿠부다스 (6,470 포인트) 님이 2017년 8월 16일 질문

1개의 답변

0 추천
 
채택된 답변
익명사용자 님이 2017년 8월 16일 답변
쿠쿠부다스님이 2017년 8월 16일 채택됨
...