草庐IT

attribute-specifier-seq_opt

全部标签

android - 错误 :Attribute "color" has already been defined, 更新 appcompat v-7

我正在尝试将AndroidStudio项目中的appcompat-v7从v20.0.0更新到21.0.0以使用Material设计组件,但我总是遇到相同的错误:“错误:属性“颜色”已被定义”我不知道如何解决此错误,我在互联网上搜索但找不到答案。这是我的毕业典礼:android{compileOptions.encoding="iso-8859-1"compileSdkVersion21buildToolsVersion"21.1.1"defaultConfig{applicationId"com.test"minSdkVersion11targetSdkVersion22}buildT

android - 数据绑定(bind) : Attribute is missing the Androld namespace prefix

安卓工作室3.0classpath'com.android.tools.build:gradle:3.0.1'设置dataBinding{enabled=true}我想使用数据绑定(bind)。这是我的xml布局:但是我得到错误:AttributeismissingtheAndroidnamespaceprefix 最佳答案 您的数据绑定(bind)XML根应该是layout标记FromDocs数据绑定(bind)布局文件略有不同,以布局的根标记开头,后跟数据元素和View根元素。此View元素是您的根在非绑定(bind)布局文件中

android - 如何解决 "WARNING: Application does not specify an API level requirement"?

你好我正在编写一个android应用程序,但是当我运行这个应用程序时,会生成以下应用程序并且应用程序不会出现在Windows上,请帮忙..!!!!如果我得到正确的解决方案,我将不胜感激,,,,,, 最佳答案 要解决此警告,请添加到AndroidManifest.xml中的manifest标签。将4替换为您要支持的最低SDK版本数。 关于android-如何解决"WARNING:ApplicationdoesnotspecifyanAPIlevelrequirement"?,我们在Stac

android - aapt 错误获取 'android:name' 属性 : attribute is not a string value

当我的apk生成时,我对其执行命令aaptdumpbadging。我不断收到以下错误:application:label='Name'icon='res/drawable/icon_128x128.png'application-debuggablelaunchable-activity:name='co.package.name.MainActivity'label='Name'icon=''ERRORgetting'android:name'attribute:attributeisnotastringvalue我尝试为所有Activity添加标签名称,并删除/res下的所有其他v

安卓: "duplicate attribute"XML 错误

我有一个布局,左侧有一组小部件,右侧有其他小部件。现在我想在中间放置一个按钮,在两个TextView的下方(一个在左侧,另一个在右侧)。我收到以下代码的错误(“重复属性”):android:layout_centerInParent="true"android:layout_below="@id/text_left"android:layout_below="@id/text_right"我该如何解决这个问题?谢谢。 最佳答案 如果您在不同的布局中具有相同的xmlns属性,也会出现此错误消息。在这种情况下,xmlns:tools在l

android - 如何使用 android :layout attribute 为自定义首选项实例化布局

我可以通过android:layout属性为首选项设置合适的布局。举个例子布局在哪里我可以在PreferenceActivity的OnCreate中获取ViewPreferencefric=(Preference)this.findPreference("friction");Viewv=fric.getView(null,null);SeekBarsbFriction=(SeekBar)v.findViewById(R.id.sbFriction);sbFriction.setOnSeekBarChangeListener(this);ButtonbtnFric=(Button)v.

安卓数据绑定(bind) : can't find the setter for attribute

不确定它是如何工作的,但根据thispost可以使用不同的命名空间来绑定(bind)特定的监听器。我想对searchview做同样的事情并将QueryTextListener绑定(bind)到它,但我收到以下错误:Cannotfindthesetterforattribute'bind:setOnQueryTextListener'withparametertypeandroid.widget.SearchView.OnQueryTextListener.我在ViewModel中做了什么:publicclassMembersFragmentViewModelextendsBaseObs

java - "specified for property ' resDir' 不存在是什么意思。”

当我构建我的项目时。Gradle结果是underblock(我在一些代码中使用数据绑定(bind))Error:Aproblemwasfoundwiththeconfigurationoftask':app:processDebugAndroidTestResources'.>Directory'C:\Users\user\Desktop\"Myprojectloaction"\app\build\intermediates\data-binding-layout-out\androidTest\debug'specifiedforproperty'resDir'doesnotexis

Android+Maven "No resource identifier found for attribute ' installLocation' in package 'android'”

为了向我的android应用添加对installLocation的支持,我在我的IDE(IntelliJ)中将我的android级别从7提高到8。Android应用程序从IntelliJ构建良好。虽然我们使用Maven,但从Maven编译失败。[ERROR]C:\dev\svnlocal\5x\android\AndroidManifest.xml:3:error:Noresourceidentifierfoundforattribute'installLocation'inpackage'android'[ERROR]Errorwhengeneratingsources.我也添加了我

android - 错误获取 'android:label' 属性 : attribute is not a string value

在尝试将我的应用程序发布到AndroidMarket时出现此错误“获取‘android:label’属性时出错:属性不是字符串值”。前段时间这个应用程序已经在市场上成功发布,但是当我在AndroidManifest.xml中应用小的更改(更改versionCode和versionName)时,我不断收到此错误。我在这里查看了所有类似的主题,例如:AndroidMarketPublishingIssues"ERRORgetting'android:icon'attribute:attributeisnotastringvalue"whentryingtouploadtotheAndroi