我尝试使用appcompat,appcompat v23运行良好,但支持库版本23有问题,我不得不降级到旧版本! 当我使用appcompat v21作为库Eclipse错误时:
android.support.v7.app.ActionBarActivity无法解决
所以我不能使用工具栏
如何解决? 感谢
答案 0 :(得分:0)
اینفایلبرنامهخودمهمیتونیکپیکنی
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'
}