- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
` 无法访问,它给了我这个 logcat 错误
AGPBI: {"kind":"error","text":"Tag \u003cItem\u003e can not appear inside \u003cstring-array\u003e, only \u003citem\u003e","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\src\\main\\res\\values\\strings.xml","position":{"startLine":6,"startColumn":4,"startOffset":298,"endLine":10,"endColumn":19,"endOffset":429}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Base.Widget.AppCompat.DrawerArrowToggle.Common\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-hdpi-v4\\values-hdpi-v4.xml","position":{"startLine":2}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"No resource found that matches the given name: attr \u0027barLength\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\exploded-aar\\com.android.support\\appcompat-v7\\23.4.0\\res\\values-hdpi-v4\\values-hdpi-v4.xml","position":{"startLine":2,"startColumn":4,"startOffset":55,"endLine":6,"endColumn":13,"endOffset":327}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"No resource found that matches the given name: attr \u0027drawableSize\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\exploded-aar\\com.android.support\\appcompat-v7\\23.4.0\\res\\values-hdpi-v4\\values-hdpi-v4.xml","position":{"startLine":2,"startColumn":4,"startOffset":55,"endLine":6,"endColumn":13,"endOffset":327}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"No resource found that matches the given name: attr \u0027gapBetweenBars\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\exploded-aar\\com.android.support\\appcompat-v7\\23.4.0\\res\\values-hdpi-v4\\values-hdpi-v4.xml","position":{"startLine":2,"startColumn":4,"startOffset":55,"endLine":6,"endColumn":13,"endOffset":327}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Base.Widget.Design.TabLayout\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-sw600dp-v13\\values-sw600dp-v13.xml","position":{"startLine":22}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"No resource found that matches the given name: attr \u0027tabGravity\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\exploded-aar\\com.android.support\\design\\23.4.0\\res\\values-sw600dp-v13\\values-sw600dp-v13.xml","position":{"startLine":11,"startColumn":4,"startOffset":677,"endLine":14,"endColumn":12,"endOffset":854}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"No resource found that matches the given name: attr \u0027tabMode\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\exploded-aar\\com.android.support\\design\\23.4.0\\res\\values-sw600dp-v13\\values-sw600dp-v13.xml","position":{"startLine":11,"startColumn":4,"startOffset":677,"endLine":14,"endColumn":12,"endOffset":854}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Base.Widget.Design.TabLayout\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-land\\values-land.xml","position":{"startLine":8}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"No resource found that matches the given name: attr \u0027tabGravity\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\exploded-aar\\com.android.support\\design\\23.4.0\\res\\values-land\\values-land.xml","position":{"startLine":2,"startColumn":4,"startOffset":55,"endLine":5,"endColumn":12,"endOffset":232}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"No resource found that matches the given name: attr \u0027tabMode\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\exploded-aar\\com.android.support\\design\\23.4.0\\res\\values-land\\values-land.xml","position":{"startLine":2,"startColumn":4,"startOffset":55,"endLine":5,"endColumn":12,"endOffset":232}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Base.Theme.AppCompat.Dialog.FixedSize\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-large-v4\\values-large-v4.xml","position":{"startLine":13}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Base.Theme.AppCompat.Light.Dialog.FixedSize\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-large-v4\\values-large-v4.xml","position":{"startLine":14}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Theme.AppCompat\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-night-v8\\values-night-v8.xml","position":{"startLine":2}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Theme.AppCompat\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-night-v8\\values-night-v8.xml","position":{"startLine":3}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Theme.AppCompat.Dialog\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-night-v8\\values-night-v8.xml","position":{"startLine":4}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Theme.AppCompat.Dialog.Alert\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-night-v8\\values-night-v8.xml","position":{"startLine":5}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Theme.AppCompat.Dialog.MinWidth\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-night-v8\\values-night-v8.xml","position":{"startLine":6}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Theme.AppCompat.DialogWhenLarge\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-night-v8\\values-night-v8.xml","position":{"startLine":7}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Theme.AppCompat.NoActionBar\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-night-v8\\values-night-v8.xml","position":{"startLine":8}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Base.V7.Theme.AppCompat.Dialog\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-v11\\values-v11.xml","position":{"startLine":40}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027Base.V7.Theme.AppCompat.Light.Dialog\u0027.","sources":[{"file":"C:\\Users\\Squirrel\\Documents\\MyCodes\\ClickAwayTechnologies\\app\\build\\intermediates\\res\\merged\\debug\\values-v11\\values-v11.xml","position":{"startLine":45}}],"original":"","tool":"AAPT"}
经过简短的研究,我了解到错误的原因是
<string-array name="tabs">
<Item>Tab 1</Item>
<Item>Tab 2</Item>
<Item>Tab 3</Item>
</string-array>
我正在尝试解决它,但我无法找到解决它的最佳方法,有人可以帮忙吗。
我的这部分代码
pager.setAdapter(new viewPagerAdapter(getSupportFragmentManager()));
pager.setOnPageChangeListener(new pager.SimpleOnPageChangeListener() {
public void onPageSelected(int position) {
tabHost.setSelectedNavigationItem(position);
}
});
由于无法识别函数而显示错误
SimpleOnPageChangeListener()
如果我也能解决这个问题,我将不胜感激
最佳答案
在我的例子中,我必须更改 compileSDKVersion
以匹配支持库版本以消除此错误。
我的支持库版本是 27.1.1
而 compileSDKVersion
是 23
。将 compileSDKVersion
更改为 27
以修复错误。
关于android - AGPBI : Error retrieving parent for item: No resource found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38398614/
如果我需要选择第 10 个父级,是否有更简洁的方法,然后重复 .parent() 10 次? $('#element_id').parent().parent().parent().parent().
从 angularJS 指南中的“如何创建通信指令”开始,https://docs.angularjs.org/guide/directive , 我正在尝试使用该布局来制作可导航的表单。 问题在于指
我有一个 jQuery 函数,需要获取元素父元素的位置。 它看起来像: function show(e) { //debugger; var nextTab
我正在尝试修复这个难看的代码。 RadGrid gv = (RadGrid) (((Control) e.CommandSource).Parent.Parent.Parent.Parent.Pare
我有一个 A 标签,可以触发它的曾曾曾祖 parent 的动画。以下所有方法都可以,但哪一个最有效,为什么? $(this).parent().parent().parent().parent().p
关闭。这个问题是opinion-based 。目前不接受答案。 想要改进这个问题吗?更新问题,以便 editing this post 可以用事实和引文来回答它。 . 已关闭 9 年前。 Improv
我在尝试定位绝对定位的 div 时遇到了一些问题。我猜它的工作方式应该是这样,但是我希望它与父对象的父对象而不是父对象一起使用,因为我有一个下拉列表,当我希望它像第一个一样保持在顶部时,它会跟随父对象
我正在做一些非常基本的 jQuery 东西,真正开始,我经常通过做类似的事情来向上导航 dom $(this).parent().parent().addClass('hello'); 我只是想知道是
此 HTML 结构有一个 div#page,其中当前页面内容将通过 Ajax 加载。内容始终由 section 标记组成,这些标记可以具有动态高度(相对于浏览器的百分比)或静态高度(以像素为单位)。
在 javascript 中是否有一种简单的方法来定位父对象的父对象? 我使用 this.parentNode 作为函数的元素来选择父节点,我尝试了 this.parent.parentNode 和
当遍历 pager.Pages 对象的 foreach 循环时,$data 是 self(正如预期的那样)。但是,$parent 应该是寻呼机对象,但它返回的是 WaterQualityResultV
在架构中,我想根据父级的 sibling 调整架构。 例如:如果 toggleMonday 为真,那么 weekdays -> monday 应该有一个特定的验证模式。 现在下面的例子有效。但是,它非
我想要完成的是,当用户将焦点放在文本框上时,其中的字段集将添加一个类“active_fieldset”,以便提供用户在表单中的位置的良好视觉提示。使用以下 javascript,它确实会影响父字段集,
我创建了这个函数来保存我的taches sauverTache(tache:Tache){ this.editionEnCours = true; tache.estReelle =
所以..这是我的问题..我有以下代码(示例): var GameObject = function (posX, posY, width, height) { this.posX = posX;
所以,我是 jQuery 的新手,我正在尝试更改关于函数触发器的 2 个级别的 div: 这是我的第一次尝试:我尝试找到最接近的“.node”,它是所有其他 div 的父级并编辑子 div。 fun
我想了解为什么使用 ng-repeat在repeat 的item 上有某个controller,那个item 的parent 和那个item 的祖父是同一个controller。我期待祖父成为父 Co
我想从我的组件 Controller 之一将 jsonModel 设置为我的 SAPUI5 组件。在组件内,我使用应用程序或 splitapp。 我想避免通过 ID 获取元素。从组件内的某个位置获取层
我不确定如何在标题上准确地表达出来,因为问题在我的场景中太具体了,但无论如何基本上我有两个类似于下面的外部类: class Config { public level: number = 1;
在我正在编写的这个脚本中,我发现自己连续使用 .parent() 最多七次来获取元素。虽然这有效,但似乎可以/应该有一种更简单的方法来完成我不知道的这个/功能。除了更多元素上更具体的类/ID 之外,还
我是一名优秀的程序员,十分优秀!