android - Error:(43, 0) Gradle DSL method not found: 'apt()' -
following app level build
apply plugin: 'com.android.application' android { compilesdkversion 25 buildtoolsversion "25.0.3" defaultconfig { applicationid "com.naman.appointment" minsdkversion 16 targetsdkversion 25 versioncode 1 versionname "1.0" testinstrumentationrunner "android.support.test.runner.androidjunitrunner" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile 'com.taxi-bulgaria.rest:open-rest-client-a:1.0.7-snapshot' compile "com.google.android.gms:play-services-location:10.0.1" compile "com.google.android.gms:play-services-gcm:10.0.1" compile "com.android.support:support-v4:25.1.1" compile "com.android.support:appcompat-v7:25.1.1" compile "com.android.support:design:25.1.1" compile 'pl.charmas.android:android-reactive-location:0.9@aar' compile 'io.reactivex:rxjava:1.1.5' compile(group: 'com.taxi-bulgaria.map', name: 'mapsforge', version: '0.6.1-snapshot') /*{ exclude(module: 'compatibility-v4') exclude(group: 'com.android.support', module: 'support-v4') *//*changing = true*//* }*/ /*compile 'com.mobsandgeeks:android-saripaar:1.0.7-snapshot'*/ compile 'com.mobsandgeeks:android-saripaar:2.0.3' compile 'com.github.hotchemi:permissionsdispatcher:2.4.0' apt 'com.github.hotchemi:permissionsdispatcher-processor:2.4.0' apt "org.androidannotations:androidannotations:4.3.1" compile "org.androidannotations:androidannotations-api:4.3.1" apt 'com.github.aleksandermielczarek:androidannotationspermissionsdispatcherplugin:0.1.0' compile group: 'ch.acra', name: 'acra', version: '4.7.0' /*compile 'org.greenrobot:eventbus:3.0.0'*/ compile group: 'de.greenrobot', name: 'eventbus', version: '2.4.1' //compile group: 'com.getbase', name: 'floatingactionbutton', version: '1.10.1' compile 'net.i2p.android.ext:floatingactionbutton:1.10.1' /*compile 'com.facebook.android:facebook-android-sdk:4.5.0'*/ compile(group: 'com.facebook.android', name: 'facebook-android-sdk', version: '4.5.0') { exclude(module: 'support-v4') exclude(module: 'multidex') } compile group: 'com.github.nicolasjafelle', name: 'paginglistview', version: '1.3' compile(group: 'it.sephiroth.android.library.targettooltip', name: 'target-tooltip-library', version: '1.3.11') { exclude(module: 'appcompat-v7') } compile(group: 'com.joanzapata.iconify', name: 'android-iconify', version: '2.3.2') /*{ exclude(module: 'support-v4') }*/ compile 'com.joanzapata.iconify:android-iconify-material:2.2.2' }
i getting error : possible causes:
the project 'appointment' may using version of android gradle plug-in not contain method (e.g. 'testcompile' added in 1.1.0). upgrade plugin version 2.3.2 , sync project the project 'appointment' may using version of gradle not contain method. open gradle wrapper file the build file may missing gradle plugin. apply gradle plugin please me on
Comments
Post a Comment