Error lint when creating apk android studio

0

This error appears when I compile an apk

  

Lint found fatal errors while assembling to release target.

     

To proceed, either fix the issues identified by lint, or modify your   build script as follows:

...
android {
    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }

this is my gradle

apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'com.neenbedankt.android-apt'
android {
    compileSdkVersion 26
    buildToolsVersion '25.0.0'
    defaultConfig {
        applicationId "doctorbateria.masterclean.speed.booster"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),
                    'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:26.1.0'

    compile 'com.jakewharton:butterknife:7.0.1'

    apt 'com.google.dagger:dagger-compiler:2.2'
    compile 'com.google.dagger:dagger:2.2'

    compile 'io.reactivex:rxandroid:1.2.0'

    compile 'io.reactivex:rxjava:1.1.4'

    compile 'org.greenrobot:eventbus:3.0.0'

    compile 'com.facebook.stetho:stetho:1.3.1'

    compile 'com.facebook.stetho:stetho-js-rhino:1.3.1'

    compile 'com.github.pluscubed:recycler-fast-scroll:0.3.1@aar'
    compile 'me.zhanghai.android.materialprogressbar:library:1.4.2'
    compile 'com.android.support:design:26.1.0'
    compile 'com.android.support:cardview-v7:26.1.0'
    compile 'com.github.john990:WaveView:16a10c1f9b'
    compile 'com.github.lecho:hellocharts-library:1.5.8@aar'
    compile 'com.balysv:material-ripple:1.0.2'
    compile 'com.mikhaellopez:circularfillableloaders:1.2.0'
    compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'


    compile 'com.mikepenz:actionitembadge:3.2.5@aar'

    compile 'com.mikepenz:iconics-core:2.5.11@aar'
    compile 'com.mikepenz:fontawesome-typeface:4.4.0.1@aar'
    compile 'com.jenzz:materialpreference:1.3'
    compile 'com.jaredrummler:android-processes:1.0.9'
    compile project(':orm-library')
    compile 'com.google.android.gms:play-services-location:16.0.0'
    compile 'com.google.android.gms:play-services-ads:17.1.1'
}
    
asked by pauuu 03.12.2018 в 18:41
source

2 answers

2

The problem is the Lint verification:

  

Lint found fatal errors while assembling to release target.

If you check the message, it says in Spanish:

  

Lint found fatal errors in assembling and releasing the target.

     

To continue, correct the problems identified by Lint or   modify your construction script from the following   way:

> ... android {
>     lintOptions {
>         checkReleaseBuilds false
>         // Or, if you prefer, you can continue to check for errors in release builds,
>         // but continue the build even when errors are found:
>         abortOnError false
>     }

Therefore, within your file app/build.gradle add the block lintOptions within android :

android {

    ...
    ...
    lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }
}
    
answered by 03.12.2018 в 20:42
0

Well, from what I see, the 64k limit is affecting you, edit your Module Gradle so you can eliminate this flaw this way:

android {
    ...
    defaultConfig {
        ...
        multiDexEnabled true
    }
}

Activating the multidex will allow you to eliminate the 64K limit problem.

    
answered by 04.12.2018 в 02:03