Title: Android 2.3: Classes generated with @EActivity don't contain method getDeclaredMethods() · Issue #747 · androidannotations/androidannotations · GitHub
Open Graph Title: Android 2.3: Classes generated with @EActivity don't contain method getDeclaredMethods() · Issue #747 · androidannotations/androidannotations
X Title: Android 2.3: Classes generated with @EActivity don't contain method getDeclaredMethods() · Issue #747 · androidannotations/androidannotations
Description: I use Android Studio and Gradle to build my project, version of annotations - 3.0-SNAPSHOT. When I try to call method getDeclaredMethods() for my activity's class then it throw NoSuchMethod exception on devices(and emulators) with Androi...
Open Graph Description: I use Android Studio and Gradle to build my project, version of annotations - 3.0-SNAPSHOT. When I try to call method getDeclaredMethods() for my activity's class then it throw NoSuchMethod excepti...
X Description: I use Android Studio and Gradle to build my project, version of annotations - 3.0-SNAPSHOT. When I try to call method getDeclaredMethods() for my activity's class then it throw NoSuchMethod exc...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/747
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Android 2.3: Classes generated with @EActivity don't contain method getDeclaredMethods() ","articleBody":"I use Android Studio and Gradle to build my project, version of annotations - 3.0-SNAPSHOT. When I try to call method getDeclaredMethods() for my activity's class then it throw NoSuchMethod exception on devices(and emulators) with Android 2.3.x. On devices with 4.0 and later all work good.\nCode sample:\n\n``` java\n@EActivity(R.layout.activity_test)\npublic class CompanyActivity extends NavigationActivity{\n...\n@AfterViews\nvoid init(){\nMethod[] ms = this.getClass().getDeclaredMethods();\n ...\n}\n}\n```\n\nError stack trace:\nCaused by: java.lang.NoSuchMethodException\n at java.lang.Class.getDeclaredMethods(Native Method)\n at java.lang.ClassCache.getDeclaredMethods(ClassCache.java:140)\n at java.lang.Class.getDeclaredMethods(Class.java:757)\n at my.app.test.activity.TestActivity.init(TestActivity.java:25)\n at my.app.test.activity.TestActivity_.onViewChanged(TestActivity_.java:43)\n\nWhen I call this method for another generated classes - for example, generated with @EFragment or with @EViewGroup - app doesn't crash.\n","author":{"url":"https://github.com/AnnKrajnik","@type":"Person","name":"AnnKrajnik"},"datePublished":"2013-09-30T08:46:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/747/androidannotations/issues/747"}
| 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:a3536876-ecf6-136e-e65e-792751a019f2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA24:F0ECB:16BA1BA:213569E:6A609FE7 |
| html-safe-nonce | ee7a804f1e449f2f94c7b3f619ea92aa2096e9343a7969ae2d1ff306aa0c7d48 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTI0OkYwRUNCOjE2QkExQkE6MjEzNTY5RTo2QTYwOUZFNyIsInZpc2l0b3JfaWQiOiI1NzYxMTE5ODA5NTExMTM3MjU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bc55d54ee1d32a42ef795ad6a7e22a23e37b76137d80bdc5ab210a15f5e56567 |
| hovercard-subject-tag | issue:20249919 |
| 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/747/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5d2f11f82904073e40e813669eb6221e4d66b85298e6ff7ac6ccf3dfd7011895/androidannotations/androidannotations/issues/747 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5d2f11f82904073e40e813669eb6221e4d66b85298e6ff7ac6ccf3dfd7011895/androidannotations/androidannotations/issues/747 |
| og:image:alt | I use Android Studio and Gradle to build my project, version of annotations - 3.0-SNAPSHOT. When I try to call method getDeclaredMethods() for my activity's class then it throw NoSuchMethod excepti... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AnnKrajnik |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5142d23feb6a650085422edf60d68c93777dfa6c4b0c9151eb464d3e4969f618 |
| 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 | c55ed501f6bbf0f43900d14552f6a9bd0bec6757 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width