なぜ私は私のプロジェクトを実行するとこのエラーが表示されますか?私がこの種の問題を抱えているのは初めてです!あなたが私を助けることができればと願っています!android.view.InflateException:バイナリXMLファイル行#0:バイナリXMLファイル行#0:クラスを膨張させるエラーandroid.support.design.widget.CoordinatorLayout
java.lang.RuntimeException:バイナリXMLファイルのライン#0:バイナリXMLファイルの行#0:エラー膨らまクラスandroid.support.design.widget.CoordinatorLayout`活動
:
android.view.InflateExceptionを開始することができません
これはコードです:
のGradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
// buildToolsVersion "24.0.1"
defaultConfig {
applicationId "info.androidhive.navigationdrawer"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.0.0-beta1'
compile 'com.android.support:design:24.0.0-beta1'
compile 'com.android.support:support-v4:24.0.0-beta1'
testCompile 'junit:junit:4.12'
compile 'com.github.bumptech.glide:glide:3.7.0'
}
完全スタックトレースをポストする - その答えは、「原因」のネストされた例外のいずれかにある可能性があります。 – laalto
アクティビティの代わりにAppCompatActivityを使用します。コードとstyle.xmlを代わりに投稿してください。 – ADM
[inflating class android.support.design.widget.CoordinatorLayout]の重複の可能性があります(https://stackoverflow.com/questions/30571097/error-inflating-class-android-support-design-widget-coordinatorlayout) – ADM