[转载] Android Studio Rendering Problems "android.support.v7.internal.widget.ActionBarOverlayLayout"
2015-05-07 22:47
459 查看
Android Studio(以下简称AS) 1.2
SDK 4.0
问题:
新建一个Android项目,进入AS后没有显示 具体的手机设配,并给出提示:
解决办法:
1. 打开AS 界面中,默认在AS左边的 “Project” 然后 “app->res->values->styles.xml”
2. 找到
将后面的
原因:
如果此时按 crtr+鼠标左键点击
我们发现
转载自: ERROR :rendering problems The following classes could not be found android.support.v7.internal.widget.ActionBarOverlayLayout
回答者:eee
SDK 4.0
问题:
新建一个Android项目,进入AS后没有显示 具体的手机设配,并给出提示:
The following classes could not be instantiated: - android.support.v7.internal.widget.ActionBarOverlayLayout (Open Class, Show Exception, Clear Cache)
解决办法:
1. 打开AS 界面中,默认在AS左边的 “Project” 然后 “app->res->values->styles.xml”
2. 找到
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
将后面的
"Theme.AppCompat.Light.DarkActionBar"修改为
"Base.Theme.AppCompat.Light.DarkActionBar"回到AS中的activity_main.xml即可正常显示手机设备了;
原因:
如果此时按 crtr+鼠标左键点击
Theme.AppCompat.Light.DarkActionBarAS会显示它的source:
<style name="Theme.AppCompat.Light.DarkActionBar" parent="Base.Theme.AppCompat.Light.DarkActionBar"/>
我们发现
Theme.AppCompat.Light.DarkActionBar是
Base的一个子类, 也就是
Theme.AppCompat.Light.DarkActionBar继承了
Base所以
styles.xml需要修改
转载自: ERROR :rendering problems The following classes could not be found android.support.v7.internal.widget.ActionBarOverlayLayout
回答者:eee
相关文章推荐
- [转载] Android Studio Rendering Problems "android.support.v7.internal.widget.ActionBarOverlayLayout"
- android studio新建hello world时出现Rendering Problems
- Android Studio Rendering Problems不能显示xxx.xml布局文件
- AndroidStudio xml不显示内容出现:Rendering Problems The following classes could not be instantiated
- Android Studio 常见问题之Rendering Problems
- android studio新建hello world时出现Rendering Problems
- Rendering Problems invalid drawable tag vector android studio 显示问题
- Android Studio Rendering Problems
- Android studio Rendering Problems
- Android Studio Rendering Problems
- Android Studio "nativeLibraryDirectories=[/data/app/com.lukouapp-1/lib/arm64, /vendor/lib64, /system
- AndroidStudio打包出现"xxx" is not translated in "zh" (Chinese) [MissingTranslation]
- Windows下Android Studio长时间停留在Building "Project Name" Gradle project info画面的解决方法
- Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"的解决办法
- AndroidStudio出现tools:replace="android:icon"问题
- Android studio出现 Error:Unable to tunnel through proxy. Proxyreturns "HTTP/1.1 400 Bad Request"
- Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"的解决办法
- Android Studio "佛祖保佑 永无bug" 注释模板设置详解(仅供娱乐)
- [Android][Rendering Problems] Failed to find style 'editTextStyle' in current theme 解决方法
- Android Studio "nativeLibraryDirectories=[/data/app/com.lukouapp-1/lib/arm64, /vendor/lib64, /system