我已经在稳定的频道中将android studio 1.5.1更新为2.0。从那以后,我的项目没有得到建设。
以下是我的gradle插件:
@ViewScoped
使用gradle分发
classpath 'com.android.tools.build:gradle:2.0.0'
Gradle控制台在运行2小时后停在gradle/gradle-2.10
。请建议我做错了哪些失败了。
app.gradle
:app:transformClassesWithDexForDebug
project.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.mobcast.sbilife"
minSdkVersion 10
targetSdkVersion 23
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.google.android.gms:play-services-base:8.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.android.support:appcompat-v7:23.1.1'
compile files('libs/android-support-v7-recyclerview.jar')
compile files('libs/AndroidEasingFunctions-1.0.0.jar')
compile files('libs/AndroidViewAnimations-1.1.3.jar')
compile files('libs/apache-mime4j-0.6.jar')
compile files('libs/commons-io-2.4.jar')
compile files('libs/commons-lang3-3.1.jar')
compile files('libs/httpclient-4.5.1.jar')
compile files('libs/httpcore-4.4.3.jar')
compile files('libs/httpmime-4.2.jar')
compile files('libs/jsr305-1.3.9.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
compile files('libs/nineoldandroids-2.4.0.jar')
compile files('libs/okhttp-2.4.0.jar')
compile files('libs/okio-1.4.0.jar')
compile files('libs/picasso-2.5.2.jar')
compile files('libs/recyclerview-animators-1.2.0.jar')
compile files('libs/stetho-1.1.1-fatjar.jar')
compile files('libs/stetho-okhttp-1.1.1.jar')
compile files('libs/systembartint-1.0.4.jar')
compile files('libs/universal-image-loader-1.9.5.jar')
compile files('libs/YouTubeAndroidPlayerApi.jar')
}
等待几个小时后,它会抛出以下错误:
`任务执行失败':app:transformClassesWithDexForDebug'。
com.android.build.api.transform.TransformException:java.lang.RuntimeException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android.ide.common.process .ProcessException:org.gradle.process.internal.ExecException:进程'命令' C:\ Program Files \ Java \ jdk1.8.0_25 \ bin \ java.exe''完成非零退出值3 `