Android studio在事件日誌中顯示錯誤 NumberFormatException:無效修訂版本:24.0.0-alpha1:無效修訂版本:24.0.0-alpha1NumberFormatException:無效修訂版本:24.0.0-alpha1:無效修訂版本:24.0.0-alpha1
的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致命錯誤表明我成才這樣的:
此異常的插件,Android的支持。
java.lang.NumberFormatException:無效的版本:24.0.0-ALPHA1在 com.android.sdklib.repository.FullRevision.parseRevisionImpl(FullRevision.java:198) 在 com.android.sdklib.repository .FullRevision.parseRevision(FullRevision.java:127) 在 com.android.ide.common.repository.SdkMavenRepository.getHighestInstalledVersion(SdkMavenRepository.java:179) 在 com.android.tools.lint.checks.GradleDetector.checkLocalMavenVersions (GradleDetector.java:1092) ...
後我這樣做,有這個錯誤http://take.ms/RegdF –
,我仍然有錯誤NumberFormatException:無效修訂:24.0.0-alpha1:無效修訂:24.0.0-alpha1 –
@AlexeyPecherey ive試過你的解決方案但不爲我工作:( –