2017-03-11 3 views
7

So, ich habe alle Fragen gelesen, die ich auf dieser Website zu diesem Thema finden konnte. Ich habe mich auch in Kommentaren mit einem der Entwickler mit ähnlichem Thema unterhalten, der es lösen konnte.Android Studio 2.3 Update: Warnung: Verwenden von inkompatiblen Plugins für die Annotationsverarbeitung: Android-apt. Dies kann zu einem unerwarteten Verhalten führen

Ich habe keine Apt oder AnnotationProcessor geschrieben, wo in meinen Skripten.

Ich habe nicht das Wort Android-Apt überall in meinem Code geschrieben. Ich ging sogar weiter und überprüfte alle Bibliotheken. Das war in meinem Projekt enthalten.

Dies ist ein wirklich großes Problem und muss gelöst werden.

ich das modifizierte build.gradle bin Befestigung unten, bitte vorschlagen:

apply plugin: 'com.android.application' 
apply plugin: 'realm-android' 


android { 
    dexOptions { 
     jumboMode = true 
    } 

    compileSdkVersion rootProject.ext.compileSdkVersion 
    buildToolsVersion rootProject.ext.buildToolsVersion 


    useLibrary 'org.apache.http.legacy' 
    defaultConfig { 
     applicationId "com.legalimpurity.indiancourts" 
     minSdkVersion rootProject.ext.minSdkVersion 
     targetSdkVersion rootProject.ext.targetSdkVersion 
     versionCode rootProject.ext.versionCode 
     versionName rootProject.ext.versionName 

     multiDexEnabled true 
     vectorDrawables.useSupportLibrary = true; 
    } 
    buildTypes { 
     release { 
//   minifyEnabled true 
//   proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
    signingConfigs { 
    } 

    dataBinding { 
     enabled = true 
    } 



} 
//For Facebook i guess 
repositories { 
    mavenCentral() 
    maven { 
     url "https://jitpack.io" 
    } 
    maven { url 'https://maven.fabric.io/public' } 
} 
def var = dependencies { 
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1' 

    compile 'com.google.android.gms:play-services-auth:9.4.0' 
    compile 'com.google.android.gms:play-services-analytics:9.4.0' 
    compile 'com.google.android.gms:play-services-plus:9.4.0' 
    compile 'com.google.android.gms:play-services-ads:9.4.0' 
    compile 'com.google.android.gms:play-services-identity:9.4.0' 
// compile 'com.google.android.gms:play-services-gcm:9.4.0' 

    compile 'com.google.firebase:firebase-messaging:9.4.0' 


    compile "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" 
    compile "com.android.support:cardview-v7:${rootProject.ext.supportLibVersion}" 
    compile "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}" 
    compile "com.android.support:design:${rootProject.ext.supportLibVersion}" 
    compile "com.android.support:support-v4:${rootProject.ext.supportLibVersion}" 



    compile('com.github.ozodrukh:CircularReveal:[email protected]') { 
     transitive = true; 
    } 
    compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' 
    compile 'com.android.support:multidex:1.0.1' 

// compile 'com.joanzapata.pdfview:android-pdfview:[email protected]' 
    compile 'com.github.barteksc:android-pdf-viewer:2.4.0' 
    compile 'com.wdullaer:materialdatetimepicker:3.1.3' 


    compile 'com.facebook.android:account-kit-sdk:4.+' 


    compile 'com.android.volley:volley:1.0.0' 

// compile 'com.facebook.android:facebook-android-sdk:4.6.0' 


// compile 'com.satsuware.lib:usefulviews:2.3.6' 

    compile 'com.hkm:hkmprocessbuttons:1.2.4' 
    compile 'com.github.thorbenprimke:realm-searchview:0.9.6' 

    compile 'com.jakewharton:butterknife:8.5.1' 
// compile 'com.github.amlcurran.showcaseview:library:5.4.3' 
    compile 'com.github.deano2390:MaterialShowcaseView:1.1.0' 
// compile 'com.zaihuishou:expandablerecycleradapter-databinding:1.0.0' 
// compile 'com.squareup.picasso:picasso:2.5.2' 

// compile 'com.legalimpurity.expandablerecyclerview:expandable-recyclerview:1.0' 
    compile project(':agendacalendarview') 
    compile project(':expandablelibrary') 
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1' 
    compile 'com.android.support:support-v4:25.+' 

} 
apply plugin: 'com.jakewharton.butterknife' 
apply plugin: 'com.google.gms.google-services' 

configurations.all { 
    resolutionStrategy { 
     force "com.android.support:support-annotations:25.2.0" 
    } 
} 

Antwort

21

Ältere Versionen von Realm android-apt verwenden. Sie sollten Ihre realm-android Plugin-Version aktualisieren.

+0

Wooh Erstaunlich bewerben! Vielen Dank ! Ich habe alle meine Abhängigkeiten geprüft, nicht Klassenpfadbibliotheken! – legalimpurity

+2

@botteap mann, fantastisch, du sparst meinen abend !!!! – Artem

+0

@botteap Ich habe diese Warnung mit realm-android Plugin zu 2.1.1, also habe ich es auf 2.2.0 aktualisiert, aber dann habe ich 'Fehler: Gradle DSL-Methode nicht gefunden: 'apt()' ' Wissen Sie Irgendeine Möglichkeit, das zu beheben? –

6

ersetzen

classpath "io.realm:realm-gradle-plugin:1.2.0" 

mit

classpath "io.realm:realm-gradle-plugin:3.1.2" 

und dann Plugin

apply plugin: 'realm-android' 
Verwandte Themen