问题描述
Android Studio在事件日志中向我显示错误NumberFormatException:无效版本:24.0.0-alpha1:无效版本:24.0.0-alpha1
Android studio show me error in event logNumberFormatException: Invalid revision: 24.0.0-alpha1: Invalid revision: 24.0.0-alpha1
build.gradle:
build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
lintOptions {
checkReleaseBuilds false
abortOnError false
}
defaultConfig {
applicationId "com.xxxx"
minSdkVersion 10
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile project(':library')
compile 'com.android.support:multidex:1.0.0'
compile 'com.android.support:support-v4:23.2.1'
compile 'com.google.guava:guava:18.0'
compile 'com.android.support:appcompat-v7:23.0.2'
compile 'com.google.android.gms:play-services:+'
compile 'com.google.android.gms:play-services-analytics:8.1.0'
compile files('libs/gdata-base-1.0.jar')
compile files('libs/gdata-calendar-2.0.jar')
compile files('libs/gdata-calendar-meta-2.0.jar')
compile files('libs/gdata-client-1.0.jar')
compile files('libs/gdata-client-meta-1.0.jar')
compile files('libs/gdata-contacts-3.0.jar')
compile files('libs/gdata-contacts-meta-3.0.jar')
compile files('libs/gdata-core-1.0.jar')
compile files('libs/gdata-maps-2.0.jar')
compile files('libs/gdata-maps-meta-2.0.jar')
}
IDE的致命错误向我显示了类似的东西:
IDE fatal errors show me someting like this:
插件Android支持中的此异常.
This exception in plugin Android Support.
推荐答案
SDK更新后,我遇到了同样的问题.在我的情况下,解决方案是从sdk/extras/android/m2repository/com/android/support/appcompat-v7中删除24.0.0-alpha1文件夹,并从sdk/extras/android/m2repository/com/中删除<version>24.0.0-alpha1</version>
行android/support/appcompat-v7/maven-metadata.xml
I had the same problem after SDK update.In my case the solution was to remove 24.0.0-alpha1 folder from sdk/extras/android/m2repository/com/android/support/appcompat-v7 and to delete <version>24.0.0-alpha1</version>
line from sdk/extras/android/m2repository/com/android/support/appcompat-v7/maven-metadata.xml
这篇关于NumberFormatException:无效的修订版:24.0.0-alpha1:无效的修订版:24.0.0-alpha1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!