Why is IntelliJ IDEA creating only non-primary APKs in Gradle projects?

I am using IDEA 13.1 and created a Gradle project with it. When I compile the application and run it, it only creates a non-standard APK.

Opening the same project using Android Studio, as well as restoring it and launching the application, generates both a non-standard and a regular unsigned APK.

Is this a bug in IntelliJ IDEA? If not, where can I establish that it always generates a regular, aligned, APK?

+4
source share
1 answer

/ IDE, gradle. IntelliJ, AndroidStudio gradle .

gradle build.gradle zipAlign, apk. , apk.

, zipAlignEnabled true, :

    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        zipAlignEnabled true
    }

, - , .

, docs:

: zipalign , .apk . zipalign , .

, , , docs.

0

Source: https://habr.com/ru/post/1548514/


All Articles