I have some views that couldn't be instantiated, which is really annoying:
我有一些无法实例化的视图,这真的很烦人:
How could I resolve this issue? or even just ignore if there is no way to resolve it
我该如何解决这个问题?如果没有办法解决它,甚至可以忽略它
2 个解决方案
#1
0
If you add a new library try to rebuild the project and then refesh the layout preview.
如果添加新库,请尝试重建项目,然后重新设置布局预览。
#2
0
Change your api level appropriate your Sdk
更改适合您的Sdk的api级别
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.example"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
here where is red Circle.
这里是红圈。
for example: if your sdk version is 24 set it to 24..
例如:如果您的sdk版本是24,则设置为24 ..
#1
0
If you add a new library try to rebuild the project and then refesh the layout preview.
如果添加新库,请尝试重建项目,然后重新设置布局预览。
#2
0
Change your api level appropriate your Sdk
更改适合您的Sdk的api级别
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.example"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
here where is red Circle.
这里是红圈。
for example: if your sdk version is 24 set it to 24..
例如:如果您的sdk版本是24,则设置为24 ..