이 문제와 관련하여이 사이트에서 찾을 수있는 모든 질문을 읽었습니다. 나는 비슷한 문제를 가진 개발자 중 한 사람과 의견을 교환하고 해결할 수있는 채팅을했다.Android Studio 2.3 업데이트 : 경고 : 주석 처리에 호환되지 않는 플러그인 사용 : android-apt. 이로 인해 예기치 않은 동작이 발생할 수 있습니다.
필자는 그라데이션 스크립트에 apt 또는 annotationProcessor를 작성하지 않았습니다.
내 코드에는 어디서든지 android-apt라는 단어는 쓰지 않습니다. 나는 심지어 나아가서 모든 도서관을 조사했다. 그것은 내 프로젝트에 포함되었습니다.
이것은 정말 큰 문제이며 해결해야합니다.
나는 아래의 수정 build.gradle를 부착하고, 제안하십시오 : 영역의
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"
}
}
우우 놀라운 교체! 감사 ! 나는 classpath 라이브러리가 아닌 모든 의존성을 검사했다. – legalimpurity
@botteap 남자, 환상, 당신은 내 저녁을 구해줘 !! – Artem
@botteap이 경고는 2.1.1 버전의 realm-android 플러그인에서 얻었으므로 2.2.0으로 업그레이드했지만 그 다음에는 오류 : Gradle DSL 메서드를 찾을 수 없음 : 'apt()' ' 아시나요? 이 문제를 해결할 방법이 있습니까? –