日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

buidulbs android.jar,在将AS项目迁移到IDEA时,无法将com.android.bui...

發布時間:2023/12/20 编程问答 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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...的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。