2017-03-11 23 views
7

Bu nedenle, bu konuda bu konuyla ilgili bulabildiğim tüm soruları okudum. Aynı sorunu çözmüş olan geliştiricilerinden biri ile yorumlarda da sohbet ettim.Android Studio 2.3 güncellemesi: Uyarı: Ek açıklama işleme için uyumsuz eklentileri kullanma: android-apt. Bu, beklenmedik bir davranışla sonuçlanabilir

Gradyan komut dosyalarında herhangi bir yeri yazılı olarak belirtme veya açıklama yazmama var.

Kodumun herhangi bir yerinde yazılmış kelime kelimesi yok. Daha da ileri gittim ve bütün kütüphaneleri kontrol ettim. Bu benim projemde yer aldı.

Bu gerçekten büyük bir sorundur ve çözülmesi gerekiyor.

aşağıda modifiye build.gradle ekliyorum, önermek edin: Diyar

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" 
    } 
} 

cevap

21

Eski sürümleri android-apt kullanın. realm-android eklenti sürümünüzü yükseltmelisiniz.

+0

Wooh Şaşırtıcı değiştirin! Teşekkürler ! Tüm bağımlılıklarımı kontrol ettim, sınıf kütüphaneleri değil! – legalimpurity

+2

@botteap adam, fantastik, akşamlarımı kurtardın !! – Artem

+0

@botteap 2.1.2 için realm-android eklentisi ile bu uyarıyı aldım, bu yüzden onu 2.2.0'a yükselttim ama sonra 'hata mesajı aldım: Gradle DSL yöntemi bulunamadı: 'apt()'' Bunu düzeltmenin herhangi bir yolu var mı? –

6

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

ile

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

ve sonra uygulamak eklenti

apply plugin: 'realm-android'