Trying to add this file to my app, and I'm getting the following error:
android.view.InflateException: Binary XML file line #25: Binary XML file line #3: Error inflating class android.support.v7.widget.ContentFrameLayout
Here is the file:
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.v7.widget.ContentFrameLayout android:id="@id/action_bar_activity_content" android:layout_width="match_parent" android:layout_height="match_parent" android:foreground="?attr/toolbarId" android:foregroundGravity="top|fill_horizontal"></android.support.v7.widget.ContentFrameLayout>
</merge>
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.example.joestox.fakeaddwevibe"
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'
}
Do I need to add something like android.support.v7.widget
to my dependencies? How would I go about doing this?