{"id":1245,"date":"2016-01-31T16:55:40","date_gmt":"2016-01-31T08:55:40","guid":{"rendered":"http:\/\/www.vcoo.cc\/blog\/?p=1245"},"modified":"2016-01-31T16:57:38","modified_gmt":"2016-01-31T08:57:38","slug":"android-rendering-problems-the-following-classes-could-not-be-found","status":"publish","type":"post","link":"https:\/\/vcoo.cc\/blog\/1245\/","title":{"rendered":"\u3010Android\u3011Rendering Problems:The following classes could not be found"},"content":{"rendered":"<p>Rendering Problems The following classes could not be found:<\/p>\n<p>&#8211;\u00a0android.support.v7.internal.app.WindowDecorActionBar (Fix Build Path, Create Class) Tip: Try to build the project.<\/p>\n<p>\u95ee\u9898\u5982\u56fe\uff1a<\/p>\n<p><a href=\"http:\/\/www.vcoo.cc\/blog\/wp-content\/uploads\/2016\/01\/android.support.v7.internal.app_.windowdecoractionbar.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1246 size-medium\" src=\"http:\/\/www.vcoo.cc\/blog\/wp-content\/uploads\/2016\/01\/android.support.v7.internal.app_.windowdecoractionbar-300x243.png\" alt=\"android.support.v7.internal.app.windowdecoractionbar\" width=\"300\" height=\"243\" \/><\/a><\/p>\n<p><b>\u89e3\u51b3\u65b9\u6848\uff1a<\/b><\/p>\n<hr \/>\n<p>The Actionbar has been deprecated and replaced by Toolbar. That being said, you can do the following if you want to continue using Actionbar for now:<\/p>\n<p>1\u3001Open styles.xml in the values folder inside the res folder.<\/p>\n<p><span style=\"color: #222426;\">2\u3001Add the word\u00a0<\/span><em>Base<\/em><span style=\"color: #222426;\">\u00a0to the beginning of the theme name so that it reads &#8220;<\/span><span style=\"color: #ff0000;\">Base.<\/span><span style=\"color: #222426;\">Theme.AppCompat.Light.DarkActionBar&#8221;<\/span><\/p>\n<p>I had the same issue today and this solution worked for me. FYI I am in Android Studio though, but hopefully the solution is similar for Eclipse.<\/p>\n<p>\u5373\uff1a<\/p>\n<p>styles.xml \u6587\u4ef6\u4e2d Theme.AppCompat.Light.DarkActionBar \u524d\u6dfb\u52a0Base.<\/p>\n<pre class=\"lang:default decode:true \">&lt;style name=\"AppTheme\" parent=\"Base.Theme.AppCompat.Light.DarkActionBar\"&gt;<\/pre>\n<p>\u6539\u540e\u5982\u56fe\uff1a<\/p>\n<p><a href=\"http:\/\/www.vcoo.cc\/blog\/wp-content\/uploads\/2016\/01\/android.support.v7.internal.app_.windowdecoractionbar2.png\" rel=\"attachment wp-att-1247\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1247\" src=\"http:\/\/www.vcoo.cc\/blog\/wp-content\/uploads\/2016\/01\/android.support.v7.internal.app_.windowdecoractionbar2-300x145.png\" alt=\"android.support.v7.internal.app.windowdecoractionbar2\" width=\"300\" height=\"145\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rendering Problems The following classes could not be found:<\/p>\n<p>&#8211; android.support.v7.internal.app.WindowDecorActionBar (Fix Build Path, Create Class) Tip: Try to build the project.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76],"tags":[275,308],"class_list":["post-1245","post","type-post","status-publish","format-standard","hentry","category-android","tag-android","tag-as","cat-76-id"],"_links":{"self":[{"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/posts\/1245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/comments?post=1245"}],"version-history":[{"count":0,"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/posts\/1245\/revisions"}],"wp:attachment":[{"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/media?parent=1245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/categories?post=1245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/tags?post=1245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}