新建as项目后的Android版本修改
新建as项目时,默认编译版本总是最新sdk版本26,如何修改成22.
新建project
修改编译版本(compileSdkVersion 22),
编译工具版本(buildToolsVersion “25.0.0”),
最高版本(targetSdkVersion 22),
dependencies修改v7版本(compile ‘com.android.support:appcompat-v7:22.1.0’)
dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:support-v4:22.1.0'
compile 'com.android.support:appcompat-v7:22.1.0'
compile 'com.android.support:recyclerview-v7:22.1.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}
删除清单文件的 roundIcon 一行.