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