{"id":1342,"date":"2021-04-03T17:04:57","date_gmt":"2021-04-03T08:04:57","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=1342"},"modified":"2021-04-03T17:04:57","modified_gmt":"2021-04-03T08:04:57","slug":"type-typevariablet-has-no-method-getvaluenothing-kproperty-and-thus-it-cannot-serve-as-a-delegate%e3%81%a3%e3%81%a6%e3%82%a8%e3%83%a9%e3%83%bc","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2021\/04\/03\/1342\/","title":{"rendered":"Type &#8216;TypeVariable(T)&#8217; has no method &#8216;getValue(Nothing?, KProperty<*>)&#8217; and thus it cannot serve as a delegate\u3063\u3066\u30a8\u30e9\u30fc"},"content":{"rendered":"<h1>Type &#8216;TypeVariable(T)&#8217; has no method &#8216;getValue(Nothing?, KProperty&lt;*&gt;)&#8217; and thus it cannot serve as a delegate<\/h1>\n<h2>\u73fe\u8c61<\/h2>\n<pre>var name by rememberSaveable { mutableStateOf(\"\") }<\/pre>\n<p>\u3063\u3066\u69cb\u6587\u3092\u4f7f\u304a\u3046\u3068\u3057\u305f\u6642\u306b\u30bf\u30a4\u30c8\u30eb\u306e\u30a8\u30e9\u30fc\u3067\u305f\u3002<\/p>\n<h2>\u5bfe\u5fdc<\/h2>\n<pre>import androidx.compose.runtime.getValue\r\nimport androidx.compose.runtime.setValue<\/pre>\n<p>\u3092\u8ffd\u52a0\u3002<\/p>\n<h2>\u53c2\u8003<\/h2>\n<p><a href=\"https:\/\/www.reddit.com\/r\/android_devs\/comments\/jff2vp\/jetpack_compose_am_i_stupid_or_is_the_by_remember\/\">https:\/\/www.reddit.com\/r\/android_devs\/comments\/jff2vp\/jetpack_compose_am_i_stupid_or_is_the_by_remember\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Type &#8216;TypeVariable(T)&#8217; has no method &#8216;getValue(Nothing?, KProperty&lt;*&gt;)&#8217; and thus &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2021\/04\/03\/1342\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[9],"tags":[3,6,140,141],"class_list":["post-1342","post","type-post","status-publish","format-standard","hentry","category-9","tag-android","tag-androidstudio","tag-jetpackcompose","tag-kotlin"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/1342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/comments?post=1342"}],"version-history":[{"count":1,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/1342\/revisions"}],"predecessor-version":[{"id":1343,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/1342\/revisions\/1343"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=1342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=1342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=1342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}