I am a student programmer, and I continue the Android project, which was previously launched by other students. My problem is that I get an error when trying to run an Android application in Android Studio. You can see the error message below. The compilation should have worked for other students since I have an apk file. What is wrong with zipalign?
:app:zipalignDebug FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:zipalignDebug'. > Process 'command 'X:\Sdk Android Studio\build-tools\21.1.2\zipalign.exe'' finished with non-zero exit value -1073741502
My build.gradle:
apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { applicationId "csf.dfc.friendtracker" minSdkVersion 15 targetSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:21.0.3' compile files('libs/guava-18.0.jar') compile files('libs/Pubnub-Android-3.7.2.jar') compile files('libs/mysql-connector-java-5.1.34-bin.jar') }
EDIT: I did not find the cause of the error, but I added all the project objects to a new one and the error disappeared.
source share