Title: ListPicker not working on API 29 · Issue #7785 · NativeScript/NativeScript · GitHub
Open Graph Title: ListPicker not working on API 29 · Issue #7785 · NativeScript/NativeScript
X Title: ListPicker not working on API 29 · Issue #7785 · NativeScript/NativeScript
Description: Hi, It seems that the ListPicker is not working on API 29: System.err: An uncaught Exception occurred on "main" thread. System.err: Calling js method onCreateView failed System.err: Error: java.lang.NoSuchFieldException: No field mSelect...
Open Graph Description: Hi, It seems that the ListPicker is not working on API 29: System.err: An uncaught Exception occurred on "main" thread. System.err: Calling js method onCreateView failed System.err: Error: java.lan...
X Description: Hi, It seems that the ListPicker is not working on API 29: System.err: An uncaught Exception occurred on "main" thread. System.err: Calling js method onCreateView failed System.err: Error...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/7785
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ListPicker not working on API 29","articleBody":"Hi,\r\nIt seems that the `ListPicker` is not working on API 29:\r\n``` \r\nSystem.err: An uncaught Exception occurred on \"main\" thread.\r\nSystem.err: Calling js method onCreateView failed\r\nSystem.err: Error: java.lang.NoSuchFieldException: No field mSelectorWheelPaint in class Landroid/widget/NumberPicker; (declaration of 'android.widget.NumberPicker' appears in /system/framework/framework.jar!classes3.dex)\r\nSystem.err: java.lang.Class.getDeclaredField(Native Method)\r\nSystem.err: com.tns.Runtime.callJSMethodNative(Native Method)\r\nSystem.err: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1209)\r\nSystem.err: com.tns.Runtime.callJSMethodImpl(Runtime.java:1096)\r\nSystem.err: com.tns.Runtime.callJSMethod(Runtime.java:1083)\r\nSystem.err: com.tns.Runtime.callJSMethod(Runtime.java:1063)\r\nSystem.err: com.tns.Runtime.callJSMethod(Runtime.java:1055)\r\nSystem.err: com.tns.FragmentClass.onCreateView(FragmentClass.java:53)\r\n```\r\n\r\nThe issue seems to be because of using a Java field through reflection which is 'hidden' in the API 29 SDK and causes a `NoSuchFieldException`: https://github.com/NativeScript/NativeScript/blob/4f39fb728b6bcacdafed38dd0a80137fcc9fb1e9/tns-core-modules/ui/list-picker/list-picker.android.ts#L67\r\n\r\nWe reproduced it in the Playground when dropping the list picker in the markup and deploying on API 29.","author":{"url":"https://github.com/vmutafov","@type":"Person","name":"vmutafov"},"datePublished":"2019-09-05T13:39:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/7785/NativeScript/issues/7785"}
| 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:378e2a44-6137-7503-f0d7-fec154ea9eb9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C512:F5113:B8FB7:105CB0:6971FC14 |
| html-safe-nonce | a5ae75378cc1fd2c5d02e4ad21e4ff438c0ad7025d119b16ba3b6a4221f4714d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTEyOkY1MTEzOkI4RkI3OjEwNUNCMDo2OTcxRkMxNCIsInZpc2l0b3JfaWQiOiIxMzI2NjI1ODc5NTAwMTI3MjUyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1dba30c70b9be1a0b0fbaa4a85994a868c79ad2bb64ac7b8254a71d563a333b1 |
| hovercard-subject-tag | issue:489762382 |
| 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/NativeScript/NativeScript/7785/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae23d31f355d217f938dbb63c1cd5d594526846a4ed17d4cbb3c6b41ed2e119f/NativeScript/NativeScript/issues/7785 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae23d31f355d217f938dbb63c1cd5d594526846a4ed17d4cbb3c6b41ed2e119f/NativeScript/NativeScript/issues/7785 |
| og:image:alt | Hi, It seems that the ListPicker is not working on API 29: System.err: An uncaught Exception occurred on "main" thread. System.err: Calling js method onCreateView failed System.err: Error: java.lan... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vmutafov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5d01a3551afdd1a0e12e78acaf3ba43a9a1f7dcb518695d6ed59db76a9290f13 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| 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 | 062b05dcdf64ee7a3dad7acabb746494ae0982cc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width