{"id":3564,"date":"2020-09-25T19:40:28","date_gmt":"2020-09-26T00:40:28","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=3564"},"modified":"2023-03-15T18:52:22","modified_gmt":"2023-03-15T23:52:22","slug":"you-need-to-use-a-theme-appcompat-theme-or-descendant-with-this-activity","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/you-need-to-use-a-theme-appcompat-theme-or-descendant-with-this-activity\/","title":{"rendered":"You need to use a Theme.AppCompat theme (or descendant) with this activity."},"content":{"rendered":"\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/21814825\/you-need-to-use-a-theme-appcompat-theme-or-descendant-with-this-activity\">https:\/\/stackoverflow.com\/questions\/21814825\/you-need-to-use-a-theme-appcompat-theme-or-descendant-with-this-activity<\/a><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">You need to use a Theme.AppCompat theme (or descendant) with this activity.<\/pre>\n\n\n\n<p>Looks like you can get the above error resolved by adding the following to the Android Manifest file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">android:theme=\"@style\/Theme.AppCompat.Light<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"171\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/09\/image-1024x171.png\" alt=\"\" class=\"wp-image-3565\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/09\/image-1024x171.png 1024w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/09\/image-300x50.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/09\/image-768x129.png 768w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/09\/image-500x84.png 500w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/09\/image.png 1386w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/stackoverflow.com\/questions\/21814825\/you-need-to-use-a-theme-appcompat-theme-or-descendant-with-this-activity You need to use a Theme.AppCompat theme (or descendant) with this activity. Looks like you can get the above error resolved by adding the following to the Android Manifest file. android:theme=&#8221;@style\/Theme.AppCompat.Light<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[540,792],"tags":[541,1081,1064,606],"class_list":["post-3564","post","type-post","status-publish","format-standard","hentry","category-android","category-programming","tag-android","tag-appcompat","tag-kotlin","tag-programming"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=3564"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3564\/revisions"}],"predecessor-version":[{"id":4874,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3564\/revisions\/4874"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=3564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=3564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=3564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}