경로에서 "support.v4.view.ViewPager"클래스를 찾지 못했습니다 : DexPathList [[zip 파일 "/data/app/com.example.prakashgurung.atry-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.prakashgurung.atry-1/lib/arm,/시스템/lib 디렉토리,/공급 업체/LIB]android.view.InflateException : 이진 XML 파일 라인 # 11 : 바이너리 XML 파일 라인 # 39 : 클래스 inflatable 오류 support.v4.view.ViewPager
는 여기 발견 내 xml 파일
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="com.example.prakashgurung.atry.MainActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
<android.support.design.widget.TabLayout
android:id="@+id/mtab_ID"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_main" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@android:drawable/ic_dialog_email" />
<android:support.v4.view.ViewPager
android:id="@+id/mViewpager_ID"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.CoordinatorLayout>
'build.gradle'에 V4 지원 Core UI 라이브러리를 추가 했습니까? 'compile 'com.android.support : support-core-ui : 25.1.0'' –
방금 추가했는데 여전히 같은 오류가 발생합니다. – user7062312
확인해 보겠습니다. SDK 관리자를 통해 'Android Support Library'를 다운로드 했습니까? 그걸 build.gradle에 추가 한 후 gradle sync를 했습니까? 다시 테스트하기 전에 프로젝트를 정리 했습니까? –