Android(安卓)Studio 无法预览xml布局视图
16lz
2022-06-12
在build.gradle里把依赖API28改为26即可: 把
android { compileSdkVersion 28 defaultConfig { applicationId "com.clkj.surveytest" minSdkVersion 15 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }}
将28修改成26即可
android { compileSdkVersion 26 defaultConfig { applicationId "com.clkj.surveytest" minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }}
更多相关文章
- Android(安卓)Studio多个Module依赖同一个jar的解决方案
- Android(安卓)手机相机自动对焦
- Android(安卓)Studio 小技巧(1):如何导入AAR文件
- Android(安卓)TabHost的标签放在底部,已写成框架,继承即可
- android中的apk签名
- build.prop生成及参数解析
- 5 个顶级 Android(安卓)开源库
- android: WheelView组件(滑轮组件)的应用!
- Dagger2 in Android(四).android 扩展库