草庐IT

attribute_exists

全部标签

android - "Extension with name ' android ' does not exist"将 Kotlin 添加到 Android 项目时出错

当我尝试使用theofficialKotlintutorial将Kotlin添加到我们的Android项目时,Gradle无法启动错误Extensionwithname'android'doesnotexist. 最佳答案 AndroidStudio修改你的build.gradle添加applyplugin:'kotlin-android'上面applyplugin:'com.android.application'。只需将Kotlin行移到Android行下方,Gradle就会顺利运行。它应该看起来像这个例子:applyplugi

android - "No resource identifier found for attribute ' showAsAction ' in package ' 安卓 '"

我正在尝试更新我的Android应用程序,使其更适合运行Honeycomb的平板电脑。因此,我的目标是SDK版本11(我的minSdkVersion=4)。这会将Honeycomb主题添加到我的应用程序中,使其看起来更好。但是,我无法访问我的菜单选项。因此,我正在尝试将我的菜单项添加为操作栏项,并在我的/res/menu/文件夹中的文件中添加以下内容:android:showAsAction="ifRoom|withText"但是,我收到以下错误:Noresourceidentifierfoundforattribute'showAsAction'inpackage'android'我

安卓工作室 : Android Manifest doesn't exists or has incorrect root tag

我在AndroidStudio(AS)上收到此错误:我是如何得到它的:我从头开始创建了一个AS项目,一切都很好。然后出现了一个弹出窗口,并且(如果我没记错的话)说的是:“AndroidFrameworkdetected”。我按下"is",项目/模块发生了一些变化。之后我得到了上述错误编辑:在我的情况下,问题与Gradle无关。它与IntelliJ/AndroidStudio配置有关,尤其是一个.iml文件。在阅读了这篇内容丰富的帖子后,我意识到here. 最佳答案 在AndroidStudiov0.8.2上点击Syncproject

android - 错误 : No resource identifier found for attribute 'adSize' in package 'com.google.example' main. xml

当我按照说明通过xml将广告添加到我的应用程序时,我收到以下错误:DescriptionResourcePathLocationTypeerror:Noresourceidentifierfoundforattribute'adSize'inpackage'com.google.example'main.xml/HelloWorld/res/layoutline12AndroidAAPTProblemDescriptionResourcePathLocationTypeerror:Noresourceidentifierfoundforattribute'adUnitId'inpack

android - 什么是安卓:ems attribute in Edit Text?

这个问题在这里已经有了答案:关闭10年前.PossibleDuplicate:WhatmeansEms?(AndroidTextView)在EditText中有一个名为android:ems的属性。说明是“使EditText正好有这么多em宽”ems是什么意思? 最佳答案 取自:http://www.w3.org/Style/Examples/007/units:Theemissimplythefontsize.Inanelementwitha2infont,1emthusmeans2in.Expressingsizes,sucha

android - 当我尝试更新我的应用程序时失败 [INSTALL_FAILED_ALREADY_EXISTS]

当我尝试使用与前一个签名相同的新版本更新我的应用程序时,显示上述错误。我错过了什么? 最佳答案 如果您通过adbinstall在您的设备上安装应用程序,您应该寻找应该是-r的重新安装选项。因此,如果您执行adbinstall-r,您应该可以在不卸载之前进行安装。 关于android-当我尝试更新我的应用程序时失败[INSTALL_FAILED_ALREADY_EXISTS],我们在StackOverflow上找到一个类似的问题: https://stackov

android - android :onClick XML attribute differ from setOnClickListener?到底是怎么回事

据我所知,您可以通过两种方式将onClick处理程序分配给按钮。使用android:onClickXML属性,您只需使用带有签名的公共(public)方法的名称voidname(Viewv)或使用setOnClickListener方法,您可以在其中传递一个实现OnClickListener接口(interface)的对象。后者通常需要一个我个人不喜欢的匿名类(个人喜好)或定义一个实现OnClickListener的内部类。通过使用XML属性,您只需要定义一个方法而不是一个类,所以我是想知道是否可以通过代码而不是在XML布局中完成相同的操作。 最佳答案

linux - "docker images"显示图像,"docker rmi"表示 "no such image"或 "reference does not exist"

由于某些原因,我无法删除docker镜像。这是输出操作系统版本:Linuxlocalhost.localdomain4.12.13-300.fc26.x86_64#1SMPThuSep1416:00:38UTC2017x86_64x86_64x86_64GNU/Linuxdocker版本Client:Version:17.06.2-ceAPIversion:1.30Goversion:go1.8.3Gitcommit:cec0b72Built:TueSep520:05:402017OS/Arch:linux/amd64Server:Version:17.06.2-ceAPIversio

macos - 如何修复 "error in run: Failed to get machine "boot2docker-vm": machine does not exist"?

使用start|info|stop|delete参数运行boot2docker导致错误消息:snowch$boot2dockerstarterrorinrun:Failedtogetmachine"boot2docker-vm":machinedoesnotexistsnowch$boot2dockerinfoerrorinrun:Failedtogetmachine"boot2docker-vm":machinedoesnotexistsnowch$boot2dockerstoperrorinrun:Failedtogetmachine"boot2docker-vm":machine

java - "No property exists found for type"... 将 QueryDslPredicateExecutor 与 MongoDB 和 Spring-Data 一起使用时

我正在尝试将QueryDslPredicateExecutor与MongoDB和Spring-Data一起使用,但它似乎对“exists()”属性感到窒息。我正在使用-org.springframework.boot:spring-boot-starter-parent:1.3.5.RELEASEcom.querydsl:querydsl-mongodb:4.1.2com.querydsl:querydsl-apt:4.1.2org.mongodb.morphia:morphia:1.1.1堆栈跟踪Causedby:org.springframework.data.mapping.Pr