简单手机网站模板,南宁市建设工程造价信息网,东莞大岭山网站制作,企业如何做网站收款我需要从Android Studio迁移到IntelliJ IDEA,因为我需要在Java中进行其他一些非Android的工作.我从git克隆了我的项目,并将其导入到IDEA中.但是,我在此过程中遇到了Gradle错误.我已经搜索过,但是找不到解决我的错误的答案.这是事件日志03:39:42 PM All files are up-to-date03:…我需要从Android Studio迁移到IntelliJ IDEA,因为我需要在Java中进行其他一些非Android的工作.我从git克隆了我的项目,并将其导入到IDEA中.但是,我在此过程中遇到了Gradle错误.我已经搜索过,但是找不到解决我的错误的答案.这是事件日志03:39:42 PM All files are up-to-date03: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.Integersettings.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: androidandroid {compileSdkVersion 19buildToolsVersion 20defaultConfig {minSdkVersion 14targetSdkVersion 19versionCode 1versionName 1.0}buildTypes {release {runProguard falseproguardFiles getDefaultProguardFile(proguard-android.txt), proguard-rules.txt}debug {versionNameSuffix -alpha}}productFlavors {}packagingOptions{exclude META-INF/DEPENDENCIES.textexclude META-INF/LICENSE.txtexclude META-INF/NOTICE.txt}}dependencies {compile fileTree(include: [*.jar], dir: libs)compile com.readystatesoftware.systembartint:systembartint:1.0.3compile commons-validator:commons-validator:1.4.0}我认为这与Gradle版本有关,或者Studio和IDEA之间不兼容,但我不确定.高度赞赏的答案.谢谢.