내 Android Studio는 CoordinatorLayout
클래스를 찾을 수 없습니다.Android Studio 2.1.2에서 코디네이터 레이아웃이 작동하지 않습니까?
스크린 샷 :
그것은 말한다 :
다음 클래스를 찾을 수 없습니다 : -android.support.design.widget.CoordinatorLayout. 나는이 질문은 많은 시간을 요구하고있다하지만 난 솔루션의 대부분을 시도하고, 아무도 나를 위해 일하지 알고
<?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout 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" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.musical_box.musicbox.MainActivity"> <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/player_Control_container"> </FrameLayout> </android.support.design.widget.CoordinatorLayout>
:
이 내 XML 코드입니다. 내가 Android Studio가 코드 작성 중에 CoordinatorLayout
을 제안하지 않는다는 것을 알았습니다. 누락 된 라이브러리가있는 것 같습니다. 내 gradb 용 코드는 다음과 같습니다.
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.musical_box.musicbox"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:support-v4:24.0.0'
}
내 시스템에 빌드 도구 24.0.0이 설치되어 있습니다. 내가 문제를 파악할 수 없어서 Android 개발자에게 새로운 사람으로서 도움을 줄 수 있습니까?
어떤 도움이 많이 감사합니다.
감사합니다 많이! 그것은 매력처럼 일했습니다. –
위대한! 좋은 하루 되세요. – himanshu1496