android.support.v4.widget.DrawerLayout找不到 [英] android.support.v4.widget.DrawerLayout Could Not be found
问题描述
此错误后:
<一个href=\"http://stackoverflow.com/questions/30491113/android-support-v7-internal-widget-actionbaroverlaylayout-could-not-be-found\">android.support.v7.internal.widget.ActionBarOverlayLayout找不到
我看不到 preVIEW
的我的活动 - Android的工作室在本教程中:
I cannot see preview
of My activity - Android Studio with this Tutorial :
http://www.android4devs.com/2014/12/how-to-make-material-design-navigation-drawer.html
即时通讯使用最新版本的Android工作室: 1.2.1.1
这是我的的build.gradle
:
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.0"
defaultConfig {
applicationId "com.client.test"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.android.support:recyclerview-v7:22.0.0'
compile 'com.android.support:cardview-v7:22.0.0'
compile 'de.hdodenhof:circleimageview:1.2.1'
}
那么,如何解决这个问题?
So, how can I fix this problem ?
我想什么? :重建和更新为应用程序兼容性-V7:22.1.1 但它不解决问题。
What i tried ? : Rebuild and update to appcompat-v7:22.1.1 but it doesnt solve the problem.
如果我将其更改为 android.support.v7.widget.DrawerLayout
它说,改变的 V4 !
if i change this to android.support.v7.widget.DrawerLayout
it says change to V4!.
任何解决方案是非常AP preciated!
Any solution is very much appreciated.!
推荐答案
添加此行里面你的build.gradle依赖栏目
Add this line inside your Build.gradle dependencies section
compile 'com.android.support:support-v4:22.+'
这篇关于android.support.v4.widget.DrawerLayout找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!