buidulbs android.jar,在将AS项目迁移到IDEA时,无法将com.android.bui...
我需要從Android Studio遷移到IntelliJ IDEA,因為我需要在Java中進行其他一些非Android的工作.我從git克隆了我的項目,并將其導入到IDEA中.但是,我在此過程中遇到了Gradle錯誤.我已經搜索過,但是找不到解決我的錯誤的答案.
這是事件日志
03:39:42 PM All files are up-to-date
03:39:42 PM ClassCastException: com.android.build.gradle.internal.model.ApiVersionImpl cannot be cast to java.lang.Integer: com.android.build.gradle.internal.model.ApiVersionImpl cannot be cast to java.lang.Integer
settings.gradle(myproject是SO的示例,想要省略實際名稱)
include ':myproject'
根目錄中的build.gradle(例如/myproject/build.gradle)
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
}
}
allprojects {
repositories {
mavenCentral()
}
}
和另一個build.gradle(例如/myproject/myproject/build.gradle)
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion '20'
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName '1.0'
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
debug {
versionNameSuffix "-alpha"
}
}
productFlavors {
}
packagingOptions{
exclude 'META-INF/DEPENDENCIES.text'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'
compile 'commons-validator:commons-validator:1.4.0'
}
我認為這與Gradle版本有關,或者Studio和IDEA之間不兼容,但我不確定.高度贊賞的答案.謝謝.
總結
以上是生活随笔為你收集整理的buidulbs android.jar,在将AS项目迁移到IDEA时,无法将com.android.bui...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: fetch_lfw_people相关
- 下一篇: Tabular Editor学习笔记_3