Honestly it is giving me this error for almost anything I try to do that isn't adding simple buttons or text. I have tried everything I could think of and find on the interwebs. My API is set to the right API (8). I have updated everything I could in SDK Manager. This is the error:
老实说,它给我这个错误几乎我尝试做的任何事情都不是添加简单的按钮或文本。我已经尝试了所有我能想到的并在互联网上找到的东西。我的API设置为正确的API(8)。我已经在SDK Manager中更新了所有内容。这是错误:
Oh I cut off the beginning of the error. It says:
哦,我切断了错误的开头。它说:
Failed to configure parser for:
无法为以下内容配置解析器:
(Cannot post images without 10 rep)
(不能发布没有10个代表的图像)
Thank you
2 个解决方案
#1
0
The problem is that you're probably using a lower minSdkVersion. You can try set the minSdkVersion to 17 or higher(in the build.gradle)
问题是你可能使用较低的minSdkVersion。您可以尝试将minSdkVersion设置为17或更高(在build.gradle中)
minSdkVersion 17
targetSdkVersion 21
#2
0
I think "Android Studio won't display Drawer Layout" means the Palette didn't display your DrawerLayout
instantly. Actually, it's a normal behavior. After all, the Palette only displays static monolayer views while the DrawerLayout
is a complicated ViewGroup
and it has multilayers: the drawer and the content. Meanwhile, DrawerLayout
is a dynamic View
whose effects only could be seen on a device or a simulator. So, feel free to run your Activity which loads this layout, and you will see the effect of your layout which contains your DrawerLayout
.
我认为“Android Studio不会显示抽屉布局”意味着调色板不会立即显示您的DrawerLayout。实际上,这是一种正常行为。毕竟,Palette只显示静态单层视图,而DrawerLayout是一个复杂的ViewGroup,它有多层:抽屉和内容。同时,DrawerLayout是一个动态视图,其效果只能在设备或模拟器上看到。因此,您可以随意运行加载此布局的Activity,您将看到包含DrawerLayout的布局效果。
#1
0
The problem is that you're probably using a lower minSdkVersion. You can try set the minSdkVersion to 17 or higher(in the build.gradle)
问题是你可能使用较低的minSdkVersion。您可以尝试将minSdkVersion设置为17或更高(在build.gradle中)
minSdkVersion 17
targetSdkVersion 21
#2
0
I think "Android Studio won't display Drawer Layout" means the Palette didn't display your DrawerLayout
instantly. Actually, it's a normal behavior. After all, the Palette only displays static monolayer views while the DrawerLayout
is a complicated ViewGroup
and it has multilayers: the drawer and the content. Meanwhile, DrawerLayout
is a dynamic View
whose effects only could be seen on a device or a simulator. So, feel free to run your Activity which loads this layout, and you will see the effect of your layout which contains your DrawerLayout
.
我认为“Android Studio不会显示抽屉布局”意味着调色板不会立即显示您的DrawerLayout。实际上,这是一种正常行为。毕竟,Palette只显示静态单层视图,而DrawerLayout是一个复杂的ViewGroup,它有多层:抽屉和内容。同时,DrawerLayout是一个动态视图,其效果只能在设备或模拟器上看到。因此,您可以随意运行加载此布局的Activity,您将看到包含DrawerLayout的布局效果。