android-apt

Android Annotations + multiple paths to APT

隐身守侯 提交于 2019-12-23 05:48:14
问题 imagine some proyect like this one that use android-annotations and for this work i have to put this in build.gradle apt { arguments { resourcePackageName "com.pandaos.smartconfig" androidManifestFile variant.outputs[0].processResources.manifestFile } } where: resourcePackageName "com.pandaos.smartconfig" its the path where code its annotated... the config for plugin android-apt apply plugin: 'com.neenbedankt.android-apt' I suppose, that plugin "invoke" some task to generate the code that

How to trigger the minimal task on Gradle to run apt plugin

放肆的年华 提交于 2019-12-23 05:37:11
问题 I'm creating a compile-time annotation processor to generate some code on Android. To trigger the annotation processor I'm using the android-apt plugin from hvisser https://bitbucket.org/hvisser/android-apt/overview At the moment, on every change I do on my Processor extends AbstractProcessor I have to run a full /.gradlew clean build to see the results, and that is kinda of a slow process, even for a tiny sample project. So my question, is there any of the gradlew tasks I could use to

Android Studio 3.0 error: android-apt is incompatible

為{幸葍}努か 提交于 2019-12-13 13:13:43
问题 I'm new to Android development and got a legacy project. So I installed the newest version of Android Studio and opened it. When I try to build it, I get this error: Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor' configuration instead. I've trying the solutions shown in these thread, but it did not work. I don't have any android-apt reference on my grandle build script. Many of compile packages are shown as outdated. But when I follow

Cannot get android-apt working

家住魔仙堡 提交于 2019-12-10 14:43:36
问题 Twice already I've tried to get android-apt to work, because it's required by the 3rd-party libraries I wanted to use (AndroidAnnotations and PermissionsDispatcher), and both times I bashed my head against the wall until I got tired of hearing the squishing sound. The problem? Android Studio simply fails to find or fetch the dependencies: Error:Could not find com.neenbedankt.gradle:plugins:android-apt. Searched in the following locations: file:/Applications/Android Studio.app/Contents/gradle

Gradle build not resolving generated classes

若如初见. 提交于 2019-12-10 10:17:07
问题 I've just updated Android Studio from 1.5 to 2.2.1 and same for Gradle. I have a project which uses an annotation processor framework (made by me) to do Dagger like Dependency Injection. This used to work just fine before the update, but now Gradle is not able to resolve the generated classes (although they are generated and the Android Studio editor links them correctly) and thus I'm not able to build the project. I've tried to Google and found lots of similar problems but none solved mine.

Android Studio 2.3 update : Warning:Using incompatible plugins for the annotation processing: android-apt. This may result in an unexpected behavior

廉价感情. 提交于 2019-12-07 00:50:00
问题 So, I have read all the questions I could find on this site regarding this issue. I have also had a chat in comments with one of the developer with similar issue, who was able to solve it. I dont have apt or annotationProcessor written any where in my gradle scripts. I dont have the word android-apt written anywhere in my code. I even went ahead and checked out all the libraries. That were included in my project. This is a really big problem and needs to be solved. I am attaching the modified

Gradle build not resolving generated classes

烂漫一生 提交于 2019-12-06 04:05:15
I've just updated Android Studio from 1.5 to 2.2.1 and same for Gradle. I have a project which uses an annotation processor framework (made by me) to do Dagger like Dependency Injection. This used to work just fine before the update, but now Gradle is not able to resolve the generated classes (although they are generated and the Android Studio editor links them correctly) and thus I'm not able to build the project. I've tried to Google and found lots of similar problems but none solved mine. Can anyone tell me if this is a known bug or if something had changed? Thank you very much. EDIT Here's

annotationprocessor and apt configure equivalent

与世无争的帅哥 提交于 2019-12-05 23:15:54
问题 I'm using AndroidAnnotaion , but due to Android Studio 2.3 and Gradle 2.3.0, they said android-apt was obsoleted. And annotationProcessor is a new one. so, I want to know how can I configure annotationProcessor like I do with apt before. If I misunderstand something, please help. So, before... apply plugin: 'android-apt' dependencies { def AAVersion = '4.2.0' apt "org.androidannotations:androidannotations:$AAVersion" compile "org.androidannotations:androidannotations-api:$AAVersion" } apt {

Android Studio 2.3 update : Warning:Using incompatible plugins for the annotation processing: android-apt. This may result in an unexpected behavior

♀尐吖头ヾ 提交于 2019-12-05 05:32:12
So, I have read all the questions I could find on this site regarding this issue. I have also had a chat in comments with one of the developer with similar issue, who was able to solve it. I dont have apt or annotationProcessor written any where in my gradle scripts. I dont have the word android-apt written anywhere in my code. I even went ahead and checked out all the libraries. That were included in my project. This is a really big problem and needs to be solved. I am attaching the modified build.gradle below, Please suggest : apply plugin: 'com.android.application' apply plugin: 'realm

New Jack toolchain crashes when using android-apt plugin

╄→гoц情女王★ 提交于 2019-11-30 04:44:35
I'm trying to build a simple project with the new Jack toolchain . My project relies on android-apt plugin (it uses some annotation processing tool, but build error occures, even before I tried to add this tool). Here is my module build script (I'm using Android Studio 1.3 and gradle plugin 1.3.0 ): apply plugin: 'com.android.application' buildscript { repositories { jcenter() } dependencies { classpath 'com.neenbedankt.gradle.plugins:android-apt:1.6' } } apply plugin: 'android-apt' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "com.netimen.ui.demo"