2016-06-15 2 views
7

android studio 2.2 preview 3을 사용하고 서명 한 apk를 생성하여 내 앱을 게시하고 있습니다. 내가 구글에 APK를 업로드하고 그러나 나는 또한 내가 수동으로 zipalign을 도구를 사용하려고 apipal android android studio 2.2

You uploaded an APK that is not zip aligned. You will need to run a zip align tool on your APK and upload it again.  

오류

무엇입니까하지만 난 오류 검증이 실패 얻고 재생할 수 있습니다.
여기 내 build.gradle 파일

android { 
compileSdkVersion 23 
buildToolsVersion "23.0.3" 
defaultConfig { 
    applicationId "blackdogs.newaomsi" 
    minSdkVersion 16 
    targetSdkVersion 23 
    versionCode 1 
    versionName "1.0" 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
} 
buildTypes { 
    release { 
     zipAlignEnabled true 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 


    } 
}} 
+0

'zipalign -c -v 4 yourapk.apk'의 출력은 무엇입니까? – antonio

+0

@antonio 5379164 resources.arsc (확인) 확인 FAILED –

+0

그러면 APK가 zipaligned되지 않습니다. 'zipalign -f -v 4 yourapk.apk yourzipalignedapk.apk' 그리고'zipalign -c -v 4 yourzipalignedapk.apk'를 실행해볼 수 있습니까? – antonio

답변

6

알 수 있습니다. 오류는 내가 사용한 gradle 버전 때문이었습니다. 다음 릴리스 해결

'com.android.tools.build:gradle:2.1.2' 
4

this blog postthis issue에 설명 된대로이, 안드로이드 스튜디오 2.2 미리보기 3 알려진 문제입니다.

미리보기 2를 다운로드하거나 Android Studio의 안정 버전을 사용해야합니다.

+0

은 결국 2.1 병렬 설치로 끝났습니다. –

관련 문제