Не изменяя ничего в градле, я получаю сообщение об ошибке - `[kapt] Запрошена инкрементная обработка аннотаций ...` - PullRequest
0 голосов
/ 19 февраля 2020

Я работал над своей активностью / адаптером, и внезапно я получил следующую ошибку при попытке запустить приложение -

w: [kapt] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: com.bumptech.glide.annotation.compiler.GlideAnnotationProcessor (NON_INCREMENTAL).

Я ничего не изменил в Gradle, так как он работал. Вот мой файл Gradle -

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-android'
apply plugin: 'io.fabric'
apply plugin: 'kotlin-kapt'

android {

    androidExtensions {
        experimental = true
    }

    signingConfigs {
        config {
            keyAlias 'verte_internal_keystore'
            keyPassword ANDROID_STORE_PASSWORD
            storeFile file('verte_internal_keystore.jks')
            storePassword ANDROID_KEY_PASSWORD
        }
    }

    lintOptions {
        abortOnError false
    }

    compileSdkVersion 29
    buildToolsVersion '28.0.3'

    defaultConfig {
        applicationId "com.twoverte"
        minSdkVersion 21
        targetSdkVersion 29
        versionCode 17
        versionName ".3.4.0"
        multiDexEnabled true
        buildConfigField "java.util.Date", "BUILD_TIME", "new java.util.Date(" + System.currentTimeMillis() + "L)"
    }

    File signFile = project.file('keyInfos.properties')
    if (signFile.exists()) {
        Properties properties = new Properties()
        properties.load(new FileInputStream(signFile))
        signingConfigs {
            release {
                storeFile file(project.file(properties['keystore.filename']))
                storePassword properties['keystore.password']
                keyAlias properties['keystore.alias']
                keyPassword properties['keystore.password']
            }
        }
    }

    buildTypes {
        debug {
            buildConfigField "String", "QR_KEY", '"id"'
            buildConfigField "String", "SIGNALING_SOCKET_IO_URL", '"http://52.55.114.4:3000"'
            buildConfigField "String", "WEB_LOGIN_SOCKET_IO_URL", '"http://52.55.114.4:3000"'
            buildConfigField "String", "WEB_LOGIN_URL", '"http://18.210.123.252/"'
            buildConfigField "String", "MY_VERTE_URL", '"http://dev.myverte.com/api/tokenpayment/PaymentInfo?guid="'

            resValue("string", "chat_domain_name", "18.235.123.32")
            resValue("string", "chat_domain_port", "5222")
            resValue("string", "domain_name", "18.235.123.32")
            resValue("string", "api_domain", "http://18.210.123.252:3007/api/v1/")


            //resValue("string", "api_domain", "http://18.210.123.252/Api/public/api/v1/")

            shrinkResources false
            debuggable true
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        qa {
            buildConfigField "String", "QR_KEY", '"id"'
            buildConfigField "String", "SIGNALING_SOCKET_IO_URL", '"http://52.55.114.4:3000"'
            buildConfigField "String", "WEB_LOGIN_SOCKET_IO_URL", '"http://52.55.114.4:3000"'
            buildConfigField "String", "WEB_LOGIN_URL", '"http://18.210.123.252/"'
            buildConfigField "String", "MY_VERTE_URL", '"http://dev.myverte.com/api/tokenpayment/PaymentInfo?guid="'

            resValue("string", "chat_domain_name", "18.235.123.32")
            resValue("string", "chat_domain_port", "5222")
            resValue("string", "domain_name", "18.235.123.32")
            resValue("string", "api_domain", "http://18.210.123.252/Api/public/api/v1/")


            shrinkResources false
            debuggable false
            minifyEnabled false
            signingConfig signingConfigs.config
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        uat {
            buildConfigField "String", "QR_KEY", '"id"'
            buildConfigField "String", "SIGNALING_SOCKET_IO_URL", '"http://52.55.114.4:3000"'
            buildConfigField "String", "WEB_LOGIN_SOCKET_IO_URL", '"http://52.55.114.4:3000"'
            buildConfigField "String", "WEB_LOGIN_URL", '"http://18.210.123.252/"'
            buildConfigField "String", "MY_VERTE_URL", '"http://dev.myverte.com/api/tokenpayment/PaymentInfo?guid="'

            resValue("string", "chat_domain_name", "18.235.123.32")
            resValue("string", "chat_domain_port", "5222")
            resValue("string", "domain_name", "18.235.123.32")
            resValue("string", "api_domain", "http://18.210.123.252/Api/public/api/v1/")


            shrinkResources false
            debuggable false
            minifyEnabled false
            signingConfig signingConfigs.config
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        staging {
            buildConfigField "String", "QR_KEY", '"id"'
            buildConfigField "String", "SIGNALING_SOCKET_IO_URL", '"http://52.55.114.4:3000"'
            buildConfigField "String", "WEB_LOGIN_SOCKET_IO_URL", '"http://52.55.114.4:3000"'
            buildConfigField "String", "WEB_LOGIN_URL", '"http://18.210.123.252/"'
            buildConfigField "String", "MY_VERTE_URL", '"http://dev.myverte.com/api/tokenpayment/PaymentInfo?guid="'

            resValue("string", "chat_domain_name", "18.235.123.32")
            resValue("string", "chat_domain_port", "5222")
            resValue("string", "domain_name", "18.235.123.32")
            resValue("string", "api_domain", "http://18.210.123.252/Api/public/api/v1/")

            shrinkResources false
            debuggable false
            minifyEnabled false
            signingConfig signingConfigs.config
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        release {
            buildConfigField "String", "QR_KEY", '"id"'
            buildConfigField "String", "SIGNALING_SOCKET_IO_URL", '"http://52.55.114.4:3000"'
            buildConfigField "String", "WEB_LOGIN_SOCKET_IO_URL", '"http://52.55.114.4:3000"'
            buildConfigField "String", "WEB_LOGIN_URL", '"http://18.210.123.252/"'
            buildConfigField "String", "MY_VERTE_URL", '"http://dev.myverte.com/api/tokenpayment/PaymentInfo?guid="'

            resValue("string", "chat_domain_name", "18.235.123.32")
            resValue("string", "chat_domain_port", "5222")
            resValue("string", "domain_name", "18.235.123.32")
            resValue("string", "api_domain", "http://18.210.123.252/Api/public/api/v1/")

            shrinkResources false
            debuggable false
            minifyEnabled false
            signingConfig signingConfigs.config
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }

        chatdemo {
            buildConfigField "String", "QR_KEY", '"id"'
            buildConfigField "String", "SIGNALING_SOCKET_IO_URL", '"http://52.55.114.4:3000"'
            buildConfigField "String", "WEB_LOGIN_SOCKET_IO_URL", '"http://52.55.114.4:3000"'
            buildConfigField "String", "WEB_LOGIN_URL", '"http://18.210.123.252/"'
            buildConfigField "String", "MY_VERTE_URL", '"http://dev.myverte.com/api/tokenpayment/PaymentInfo?guid="'

            resValue("string", "chat_domain_name", "18.235.123.32")
            resValue("string", "chat_domain_port", "5222")
            resValue("string", "domain_name", "18.235.123.32")
            resValue("string", "api_domain", "http://18.210.123.252/Api/public/api/v1/")


            shrinkResources false
            debuggable true
            minifyEnabled false
            signingConfig signingConfigs.config
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    productFlavors {

    }

    dexOptions {
        javaMaxHeapSize "4g"
    }
}

dependencies {
    implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
    configurations {
        all {
            exclude group: 'org.json', module: 'json'
            exclude group: 'xpp3', module: 'xpp3'
        }
    }

    //Room components
    implementation 'androidx.room:room-runtime:2.2.3'
    kapt 'androidx.room:room-compiler:2.2.3'

    //Lifecycle components
    implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
    implementation 'androidx.lifecycle:lifecycle-common-java8:2.1.0'

    fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    testImplementation 'junit:junit:4.12'
    testImplementation 'org.mockito:mockito-core:1.10.19'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.multidex:multidex:2.0.1'
    implementation 'androidx.recyclerview:recyclerview:1.1.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'com.cocosw:bottomsheet:1.0@aar'
    implementation 'org.igniterealtime.smack:smack-android:4.1.4'
    implementation 'org.igniterealtime.smack:smack-tcp:4.1.4'
    implementation 'org.igniterealtime.smack:smack-im:4.1.4'
    implementation 'org.igniterealtime.smack:smack-extensions:4.1.4'
    implementation 'org.igniterealtime.smack:smack-sasl-provided:4.1.4'
    implementation 'com.github.bumptech.glide:glide:4.8.0'
    kapt 'com.github.bumptech.glide:compiler:4.8.0'
    implementation 'com.amazonaws:aws-android-sdk-s3:2.6.30'
    implementation 'com.squareup.okhttp:okhttp:2.6.0'
    implementation 'io.michaelrocks:libphonenumber-android:8.9.14'
    implementation "org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.3.61"

    // Preferred for scheduling background jobs when new push notifications are received.
    // It provides a JobScheduler-compatible API that works on all recent versions of
    // Android (API level 14+) that have Google Play services installed.
    implementation 'com.firebase:firebase-jobdispatcher:0.8.5'

    implementation 'com.facebook.stetho:stetho:1.3.1'
    implementation 'com.facebook.stetho:stetho-okhttp3:1.3.1'
    implementation 'com.github.ksoichiro:android-observablescrollview:1.5.0'
    implementation 'com.google.android.gms:play-services-auth:17.0.0'
    implementation 'com.google.android.gms:play-services-identity:17.0.0'
    implementation 'com.google.android.gms:play-services-location:17.0.0'
    implementation 'com.google.android.gms:play-services-maps:17.0.0'
    implementation 'com.google.android.gms:play-services-places:17.0.0'
    implementation 'com.google.firebase:firebase-auth:19.2.0'
    implementation 'com.google.firebase:firebase-core:17.2.1'
    implementation 'com.google.firebase:firebase-messaging:20.1.0'
    implementation 'com.google.firebase:firebase-crash:16.2.1'
    implementation 'com.google.code.gson:gson:2.8.6'
    implementation 'de.greenrobot:greendao:2.1.0'
    implementation 'io.github.rockerhieu:emojicon:1.4.2'
    implementation 'com.journeyapps:zxing-android-embedded:3.6.0'
    implementation 'com.github.nkzawa:socket.io-client:0.4.2'
    implementation 'com.github.chrisbanes:PhotoView:2.1.3'
    implementation 'com.github.chrisbanes.photoview:library:1.2.4'
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
    implementation 'com.github.nkzawa:socket.io-client:0.4.2'
    implementation 'net.opacapp:multiline-collapsingtoolbar:27.1.1'
    implementation 'org.webrtc:google-webrtc:1.0.23295'
    implementation 'com.github.clans:fab:1.6.4'
    implementation 'io.branch.sdk.android:library:3.0.0'
    implementation 'org.jsoup:jsoup:1.10.3'


    implementation 'com.squareup.retrofit2:retrofit:2.7.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.7.0'
    implementation 'com.google.code.gson:gson:2.8.6'
    implementation 'me.relex:circleindicator:2.1.4'
    implementation 'jp.wasabeef:picasso-transformations:2.2.1'
    implementation 'com.github.ganfra:material-spinner:2.0.0'


    implementation(name: 'appbase', ext: 'aar')
    implementation(name: 'greendao', ext: 'aar')
    implementation(name: 'chat', ext: 'aar')
    implementation(name: 'ffmpeg', ext: 'aar')
    implementation(name: 'imagecropper', ext: 'aar')
    implementation(name: 'imagepicker', ext: 'aar')
    implementation(name: 'webrtc', ext: 'aar')
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
repositories {
    mavenCentral()
}

Вот Gradle уровня проекта -

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext.kotlin_version = '1.3.61'
    repositories {
        jcenter()
        google()
        maven {
            url 'https://maven.fabric.io/public'
        }

        flatDir {
            dirs 'src/main/libs'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.2'
        classpath 'com.google.gms:google-services:4.3.3'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
        classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.2"
        classpath 'io.fabric.tools:gradle:1.25.4'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        google()
        maven {
            name 'Google'
            url "https://jitpack.io"
        }

        maven {
            url 'https://maven.google.com/'
        }
        flatDir {
            dirs 'src/main/libs'
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

ext {
    compileSdkVersion = 27
    buildToolsVersion = '27.0.3'
    targetSdkVersion = 27
    minSdkVersion = 16
    versionCode = 2
    versionName = "2.1"
}

и свойства -

# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
ANDROID_STORE_PASSWORD=Welcome@123
ANDROID_KEY_PASSWORD=Welcome@123
org.gradle.jvmargs=-Xmx5120M
android.useDeprecatedNdk=true
VERSION_NAME=2.1
VERSION_CODE=2
GROUP=com.writingminds
POM_DESCRIPTION=Java implementation of ffmpeg for Android
POM_URL=https://github.com/writingminds/ffmpeg-android-java
POM_SCM_URL=https://github.com/writingminds/ffmpeg-android-java.git
POM_SCM_CONNECTION=scm:https://github.com/writingminds/ffmpeg-android-java.git
POM_SCM_DEV_CONNECTION=scm:https://github.com/writingminds/ffmpeg-android-java.git
POM_LICENCE_NAME=GNU GPLv3
POM_LICENCE_URL=https://github.com/writingminds/ffmpeg-android-java/blob/master/LICENSE.GPLv3
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=hiteshsondhi88
POM_DEVELOPER_NAME=Hitesh Sondhi
android.useAndroidX=true
android.enableJetifier=true
kapt.incremental.apt=true

похоже, что я не ничего не хватает, но ничего не работает.

Я работал над Деятельностью и держателем и ничего не делал с Gradle, внезапно произошла эта ошибка.

Как это исправить? Я не могу загрузить приложение.

...