Title: Using androidannotations fails in a library project · Issue #78 · androidannotations/androidannotations · GitHub
Open Graph Title: Using androidannotations fails in a library project · Issue #78 · androidannotations/androidannotations
X Title: Using androidannotations fails in a library project · Issue #78 · androidannotations/androidannotations
Description: I have an application that uses aa, but since I have decided to also provide the app in a free version I wanted to move the main app into a library project (The free version is a small project that just injects ads in the activities). Wh...
Open Graph Description: I have an application that uses aa, but since I have decided to also provide the app in a free version I wanted to move the main app into a library project (The free version is a small project that...
X Description: I have an application that uses aa, but since I have decided to also provide the app in a free version I wanted to move the main app into a library project (The free version is a small project that...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/78
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using androidannotations fails in a library project","articleBody":"I have an application that uses aa, but since I have decided to also provide the app in a free version I wanted to move the main app into a library project (The free version is a small project that just injects ads in the activities). When I initially turned the main project into a library (check isLibrary in Project-\u003eProperties-\u003eAndroid) it was fine, but as soon as I made a change to the main projects code it gives me tons of errors as seen below. The only way to fix the errors is to convert the main project back to a non-library project, force a compile, and then turn it back to a library project, easy to do but a waste of time.\n\n``` java\nUnexpected error. Please report an issue on AndroidAnnotations, with the following content: java.lang.NullPointerException\n at com.googlecode.androidannotations.helper.IdValidatorHelper.idsExists(IdValidatorHelper.java:58)\n at com.googlecode.androidannotations.helper.IdValidatorHelper.idListenerMethod(IdValidatorHelper.java:130)\n at com.googlecode.androidannotations.validation.ClickValidator.validate(ClickValidator.java:49)\n at com.googlecode.androidannotations.validation.ModelValidator.validate(ModelValidator.java:53)\n at com.googlecode.androidannotations.AndroidAnnotationProcessor.validateAnnotations(AndroidAnnotationProcessor.java:332)\n at com.googlecode.androidannotations.AndroidAnnotationProcessor.processThrowing(AndroidAnnotationProcessor.java:284)\n at com.googlecode.androidannotations.AndroidAnnotationProcessor.process(AndroidAnnotationProcessor.java:259)\n at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:139)\n at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:110)\n at org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:159)\n at org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcessorManager.java:134)\n at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:813)\n at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:432)\n at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:364)\n at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.compile(IncrementalImageBuilder.java:329)\n at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:301)\n at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:134)\n at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:265)\n at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:193)\n at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)\n at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\n at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)\n at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)\n at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)\n at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\n at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)\n at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)\n at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)\n at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)\n at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)\n at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)\n```\n","author":{"url":"https://github.com/brh","@type":"Person","name":"brh"},"datePublished":"2012-01-23T16:13:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/78/androidannotations/issues/78"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:203ad775-35a8-e46b-21f2-b507ef825835 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD78:632F1:269EA3:36C1C6:6A62343F |
| html-safe-nonce | b850cc710a9df046b123ce5e7eb9bd55b69e6314e096d4edb7fbd4a7517b6982 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDc4OjYzMkYxOjI2OUVBMzozNkMxQzY6NkE2MjM0M0YiLCJ2aXNpdG9yX2lkIjoiNjQ1NTU0Nzk3MTgxMjYwMjk0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8140151051e2d976346d63469bb5af54aebb95ccf546fcb969590b3d072a1599 |
| hovercard-subject-tag | issue:2937424 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/androidannotations/androidannotations/78/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ed8730392509550617c3c82791337165559500530d639b8746bb4c48ccd9636e/androidannotations/androidannotations/issues/78 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed8730392509550617c3c82791337165559500530d639b8746bb4c48ccd9636e/androidannotations/androidannotations/issues/78 |
| og:image:alt | I have an application that uses aa, but since I have decided to also provide the app in a free version I wanted to move the main app into a library project (The free version is a small project that... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brh |
| hostname | github.com |
| expected-hostname | github.com |
| None | f01037538d0c99e88fa8e01da1b1825ad354ff4da745198c7392a43592c8398c |
| turbo-cache-control | no-preview |
| go-import | github.com/androidannotations/androidannotations git https://github.com/androidannotations/androidannotations.git |
| octolytics-dimension-user_id | 1315313 |
| octolytics-dimension-user_login | androidannotations |
| octolytics-dimension-repository_id | 3116751 |
| octolytics-dimension-repository_nwo | androidannotations/androidannotations |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3116751 |
| octolytics-dimension-repository_network_root_nwo | androidannotations/androidannotations |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10b5a8861bf21b66a650f894089f8ce1476c1d49 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width