Android(安卓)Studio 修改api level
16lz
2021-12-04
- Update build.gradle
Example of build.gradle: app/src/build.gradle
apply plugin:'com.android.application' android { compileSdkVersion 20 buildToolsVersion "20.0.0" defaultConfig { applicationId "com.courses.sottocorp.sunshine" minSdkVersion 10 targetSdkVersion 20 versionCode 1 versionName "1.0"} buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'}}} dependencies { compile fileTree(dir:'libs', include:['*.jar']) compile 'com.android.support:appcompat-v7:20.0.0' compile 'com.android.support:support-v4:20.0.0'}
- Sync gradle button
- Rebuild project
Afterupdating the build.gradle minSdkVersion, you have to click on the button to sync gradle file ("Sync Project with Gradle files").
That will clear the market.
Updating manifest.xml, e.g. deleting any references to SDK levels in the manifest file, is NOT necessary anymore in Android Studio.
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer