新项目缺少xml文件和文件夹



在Android Studio上创建新项目时,我的新项目中缺少一些文件,如:

xml文件:


activity_main.xml, AndroidManifest.xml

res文件夹内的文件夹:
布局,值

我不知道是否还有更多的东西不见了。我用的是windows 8 Pro

res文件夹中唯一需要的文件夹可能是带有"strings.xml"的"values"。在值处理程序中需要一个"styles.xml"。将此文本复制到你的styles.xml:

    <resources>
    <!--
        Base application theme, dependent on API level. This theme is replaced
        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
    -->
    <style name="AppBaseTheme" parent="android:Theme.Light">
        <!--
            Theme customizations available in newer API levels can go in
            res/values-vXX/styles.xml, while customizations related to
            backward-compatibility can go here.
        -->
    </style>
    <!-- Application theme. -->
    <style name="AppTheme" parent="AppBaseTheme">
        <!-- All customizations that are NOT specific to a particular API-level can go here. -->
    </style>
</resources>

标签也必须放在strings.xml文件中。Google找到androidmanifest XML文件并复制到其中

你也可以在创建项目时检查设置,应该有这样的设置:"生成xml文件"

just some ideas

最新更新