[英]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.