简体   繁体   English

更新Android Studio 3.2后,布局文件夹未显示layouts.xml文件

[英]Layout folders not showing layouts.xml files after updating Android Studio 3.2

I've implemented multiple layout folders to divide the xml files for the project.& implemented it as below: 我已经实现了多个布局文件夹来划分该项目的xml文件。并实现了以下内容:

build.gradle(app) 的build.gradle(APP)

android{
    sourceSets{
        main{
            java{
                res.srcDirs = [
                'src/main/res/layouts/activities',
                'src/main/res/layouts/cards',
                'src/main/res/layouts/views',
                ]
            }
        }
    }
}

And it was working perfectly fine until I updated Android Studio to 3.2. 直到我将Android Studio更新到3.2为止,它的工作情况都非常好。 So, is there any another way to implement this functionality? 那么,还有其他方法可以实现此功能吗? Any help would be appreciated. 任何帮助,将不胜感激。

This is bug in new update android studio 3.2 Step:1 change version and dependency like compileSdkVersion and targetSdkVersion --->compileSdkVersion 27 这是新更新的android studio 3.2中的错误步骤:1更改版本和依赖项,例如compileSdkVersion和targetSdkVersion ---> compileSdkVersion 27

---> targetSdkVersion 27 ---> targetSdkVersion 27

and then 接着

---> implementation 'com.android.support:appcompat-v7:28.0.0' to --->实施'com.android.support:appcompat-v7:28.0.0'

---> implementation 'com.android.support:appcompat-v7:27.1.1' Step 2 :create new activity .it automatically appear layout floder --->实施'com.android.support:appcompat-v7:27.1.1'步骤2:创建新活动。它会自动出现布局图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Gradle 更新到 Android Studio 3.2 后构建卡住并且永远不会完成 - Gradle build is stuck and never finishes after updating to Android Studio 3.2 android studio中的一个类可以处理几种布局和用途不同的XML布局吗 - Can one class in android studio handle several different in layout and purpose XML layouts 代码似乎阻止了XML布局在Android Studio中显示 - Code seems to stop xml layout from showing in Android Studio Mac上的Android Studio无法打开XML布局文件 - XML Layout files does not open at Android Studio on Mac 更新Android Studio 3.2并显示gradle项目同步失败 - Updating Android Studio 3.2 and show gradle project sync failed 当我使用java -jar File.jar运行spring-boot时,ServletContext资源[/WEB-INF/layouts/layouts.xml]没有URL - No URL for ServletContext resource [/WEB-INF/layouts/layouts.xml] when I run spring-boot with java -jar File.jar 我的.xml文件布局在模拟中无法正确显示 - My .xml files layout is not showing properly in simulation Android Studio 无法检测布局 R.id 和布局 xml 重构后无法检测标签 - Android Studio unable to detect the layout R.id and the layout xml unable to detect tag after refactoring Android 工作室布局 - Android studio layouts 在android xml的图形布局中正确显示CustomViews - Showing CustomViews properly in Graphical Layout of android xml
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM