- Android Studio编译报错:sdk:minSdkVer
- [解决]No toolchains found in the N
- No toolchains found in the NDK t
- Android Studio报错unable to access
- Mac : Android Studio 编译时提示 Error
- AS 新安装Android Studio运行项目前报错:Una
- 关于gradle编译报错:Process 'command 'J
- bug日记-缺少licences
- AS报错:platform 'android-28' not f
- Caused by: java.lang.AssertionEr
今天在AS中导入Eclipse的项目,报错:
sdk:minSdkVersion 1 cannot be smaller than version 14 declared in library
百度结果:
http://blog.csdn.net/Xiong_IT/article/details/51394961
原因:
因为引入了'com.android.support:appcompat-v7:26.1.0'
包,其内部minSdkVersion = 1,而我当前module有没有指定minSdkVersion,所以默认最低使用引入库的。
解决方案:
将报错的那个项目设置minSdkVersion
于是将所有library项目同意minSdkVersion
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
}
网友评论