when i try to do the release build using jenkins im getting following error, can some one help me to fix this issue. gradle-build-file
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.testt"
minSdkVersion 16
targetSdkVersion 20
versionCode 1
versionName "1.0"
}
signingConfigs {
release {
storeFile file("../keystore/keystore")
storePassword "*****"
keyAlias "****"
keyPassword "****"
}
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
debuggable false
zipAlign true
}
android.applicationVariants.all{ variant ->
if (variant.buildType.name == 'release') {
def apkName = "${campaignId}";
apkName += "-" + variant.buildType.name;
apkName += ".apk";
println "$project.buildDir/apk/" + apkName
variant.outputFile = file("$project.buildDir/apk/" + apkName)
}
}
}
productFlavors {
festival {
applicationId "${newAppId}"
versionCode 20
versionName "2.0"
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.code.gson:gson:2.2.+'
compile 'commons-io:commons-io:2.4'
compile 'com.android.support:support-v4:20.0.0'
compile 'com.google.android.gms:play-services:4.3+'
}
proguard-pro file
-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}
-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
:app:clean UP-TO-DATE
:app:preBuild
:app:preFestivalReleaseBuild
:app:checkFestivalReleaseManifest
:app:preFestivalDebugBuild
:app:prepareComAndroidSupportSupportV42000Library
:app:prepareComGoogleAndroidGmsPlayServices4323Library
:app:prepareFestivalReleaseDependencies
:app:compileFestivalReleaseAidl
:app:compileFestivalReleaseRenderscript
:app:generateFestivalReleaseBuildConfig
:app:generateFestivalReleaseAssets UP-TO-DATE
:app:mergeFestivalReleaseAssets
:app:generateFestivalReleaseResValues
:app:generateFestivalReleaseResources
:app:mergeFestivalReleaseResources
:app:processFestivalReleaseManifest
:app:processFestivalReleaseResources
:app:generateFestivalReleaseSources
:app:compileFestivalReleaseJavaNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:app:lintVitalFestivalRelease
:app:compileFestivalReleaseNdk
:app:preDexFestivalRelease FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDexFestivalRelease'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
/opt/android-sdk-linux/build-tools/20.0.0/dx --dex --output /var/lib/jenkins/jobs/Android-BaseTemplate/workspace/app/build/intermediates/pre-dexed/festival/release/classes-b64780b69b2491b2c1d0c3458c1b1c58c10a315f.jar /var/lib/jenkins/jobs/Android-BaseTemplate/workspace/app/build/intermediates/exploded-aar/com.google.android.gms/play-services/4.3.23/classes.jar
Error Code:
1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
0 comments:
Post a Comment