[英]Android appcompat v21 not work but v23 works
i try using appcompat , and appcompat v23 works good but , support library version 23 have problems with something and i had to downgrad to older version! 我尝试使用appcompat,而appcompat v23效果很好,但是,支持库版本23出现了问题,我不得不降级到旧版本! when I using appcompat v21 as a library Eclipse error This :
当我使用appcompat v21作为库Eclipse错误时This:
android.support.v7.app.ActionBarActivity Can Not Resolve
android.support.v7.app.ActionBarActivity无法解析
So i can't use Toolbar 所以我不能使用工具栏
how to fix it ?! 如何解决? thanks
谢谢
این فایل برنامه خودمه میتونی کپی کنی النفایلبرنامهخودمهمیتونیکپیکنی
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.