更新版本的com.android.support:appcompat-v7比23.2.1版本更高:24.0.0-alpha1
出现以下错误 更新版本的com.android.support:appcompat-v4比23.2.1更高 提供:24.0.0-alpha1和更新版本的 com.android.support:appcompat-v7比23.2.1可用: 24.0.0-1 我的build.gradle文件:更新版本的com.android.support:appcompat-v7比23.2.1版本更高:24.0.0-alpha1,android,android-appcompat,Android,Android Appcompat,出现以下错误 更新版本的com.android.support:appcompat-v4比23.2.1更高 提供:24.0.0-alpha1和更新版本的 com.android.support:appcompat-v7比23.2.1可用: 24.0.0-1 我的build.gradle文件: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.zkc.i2ctools"
minSdkVersion 8
targetSdkVersion 23
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:23.2.1'
compile 'com.android.support:appcompat-v7:23.2.1'
compile files('libs/core-3.1.0.jar')
}
带错误的渐变生成。怎么了?我相信您可能会将信息级日志项与错误级日志项混淆。这样的日志将贯穿整个应用程序。但是,这并不意味着应用程序中的任何内容都已损坏 我不认为您应该升级到appcompat的较新版本,除非它们包含您需要的关键功能/错误修复 如果它无法构建,那完全是另一回事。实际上,有一个bug,“Lint不应该建议支持库依赖的alpha版本” 更新(2016年3月21日) 该bug已与此合并
并在3月11日的2.1未来版本中修复,如果您希望Lint停止建议alpha版本,可以在项目根目录中创建Lint.xml对其进行配置:
<?xml version="1.0" encoding="utf-8"?>
<lint>
<!-- Don't warn about available alpha versions -->
<issue id="GradleDependency">
<ignore regexp="is available: .*alpha" />
</issue>
</lint>
如果您愿意,您可以避免测试版太多,以取代生产线:
我正试图在android Studiop中导入eclipse项目,请编辑您的问题,解释您正在尝试做什么以及为什么无法完成此任务。这不是错误,而是警告。警告只是通知您可能需要注意某些内容,但并不一定意味着您的代码中有任何错误。在这种情况下,这是一个已知的bug,lint不应该指导您使用alpha,但这不应该阻止您的应用程序构建。是你的构建失败了,其他地方出了问题。谢谢回复。我是Android的初学者。在事件日志中显示:“Gradle build finished with 1个错误”,消息中显示manifesr合并失败错误
<ignore regexp="is available: .*[alpha|beta]" />