Android Studio 1.5呈现问题:无法实例化类
我刚刚在Windows8上安装了android studio 1.5。我还安装了最新版本的API 23。我创建了一个项目并选择了空白活动。到目前为止一切都很好。 我将应用程序主题更改为holo.Light,但它没有渲染。 我添加了屏幕快照 Style.xmlAndroid Studio 1.5呈现问题:无法实例化类,android,android-layout,android-studio,android-support-library,Android,Android Layout,Android Studio,Android Support Library,我刚刚在Windows8上安装了android studio 1.5。我还安装了最新版本的API 23。我创建了一个项目并选择了空白活动。到目前为止一切都很好。 我将应用程序主题更改为holo.Light,但它没有渲染。 我添加了屏幕快照 Style.xml <resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Lig
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
</resources>
你的
build.gradle
在哪里?在nexus4之后单击light,选择一个appcompat主题。@tinysunlight我将主题更改为appcompat,错误消失了,但右上方的三点(…)菜单也消失了。我在学习一个教程,上面说将主题更改为holo.Light以显示overflowMenu(…)。这只是一个预览。它没用。但一定有办法解决这个问题吗?
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}