草庐IT

ignore_match

全部标签

java - 检索项目 :No resource found that matches the given name 'Theme.AppCompat.Light' . 的父项时出错 MY R.java 丢失

谷歌现在有AndroidLollipop,我打开了我的sdk管理器并决定更新几个包......这让我从2天开始感到烦恼。Can'tfindtheme我也试过这个:Failedtorenamedirectory不成功。我试图从谷歌下载一个新的sdk并从头开始安装,但没有成功。这是错误。D:\~\res\values\styles.xml:7:error:Errorretrievingparentforitem:Noresourcefoundthatmatchesthegivenname'Theme.AppCompat.Light'.D:\~\res\values-v11\styles.x

安卓 Espresso : How to match text on custom spinner selected item layout?

我有自定义布局的微调器:而且我需要检查所选项目的R.id.tv_text中的值是否与特定文本匹配。是否可以在不实现自定义Matcher类的情况下执行此操作?我的简单测试:@SmallTestpublicclassCategoryTest{publicstaticfinalStringTEXT_TO_MATCH="Spinneritemtext";@TestpublicvoidtestCreate(){...onView(withId(R.id.spn_tt)).perform(click());//openspinneronView(allOf(withId(R.id.tv_text)

android - "No resource found that matches the given name..:"- Android Studio 2.1.2 (React Native App)

在为ios开发reactnative应用程序后,我还想在android上测试它。按照文档中的步骤并设置AndroidStudio进行测试后,遗憾的是我无法运行该应用程序,因为出现了以下错误,我似乎没有找到合适的解决方案。尽管之前已经问过类似的问题。错误:Error:(6,-1)AndroidResourcePackaging:[ios_ver]/path/ios_ver/android/app/src/main/AndroidManifest.xml:6:error:Error:Noresourcefoundthatmatchesthegivenname(at'label'withva

android - 如果使用 Match_Constraints,嵌套约束布局不显示

我正在尝试在Android中创建一个嵌套的ConstraintLayout。目标是在约束布局内,左边有一个图像,右边有另一个约束布局,如下图:它在预览中正确显示,但在应用程序内部,它出现错误并且根本不显示布局文件:正在使用代码将布局添加到另一个ConstraintLayoutparent.addChild(inflater.inflate(R.layout.box_npc);我应该如何解决这个问题?甚至,问题是什么? 最佳答案 面临的情况是OP试图以编程方式将创建的ConstraintLayout添加到另一个ConstraintLa

android - lint.xml 中的 issue.ignore.path 元素相对于什么路径?

根据AndroidStudioDocumentation-Lint我们可以这样写lint.xml:将特定路径列入白名单,但文档未指定路径是相对路径还是绝对路径。从sample的外观上看好像是相对的但是并没有说明路径是相对于什么的。当我在build.gradle中设置了多个源路径时,这会更加困惑。 最佳答案 经过密集测试,结论是:它要么是绝对的,要么是相对的。(可能两者都有?不过还没有测试过)。当它是相对的时,它是相对于模块的根(build.gradle所在的位置)。您始终可以使用**/通配符,例如使其相对于任何路径。澄清:它与lin

android - Apktool 检索项目 : No resource found that matches the given name '@android:style/Animation.OptionsPanel' 的父项时出错

我正在尝试使用apktool(apktool-2.1.1)重建apk。遇到错误i)找不到与给定名称“@android:style/Animation.OptionsPanel”匹配的资源ii)找不到与给定名称“@android:style/Animation.LockScreen”匹配的资源错误信息:I:UsingApktool2.1.1I:Copying/home/workspace/debug/app-demo-releaseclasses.dexfile...I:Buildingresources...W:/home/workspace/debug/app-demo-releas

android - 在 Android 中获取 subview 以 match_parent

我有一个简单的线性布局,我正在适配器中对其进行膨胀:@OverridepublicViewgetView(finalintposition,ViewconvertView,finalViewGroupparent){if(convertView==null){convertView=inflater.inflate(R.layout.category_listview_row,parent,false);}else{((LinearLayout)convertView).removeAllViews();}if(LAYOUT_TYPES.GRID.equals(layoutType))

android - 错误 :No resource found that matches the given name (at 'minHeight' with value '?attr/actionBarSize' )

我正在尝试构建androidstudio项目,但出现以下错误:Error:(11,28)Noresourcefoundthatmatchesthegivenname(at'minHeight'withvalue'?attr/actionBarSize').Error:(12,29)Noresourcefoundthatmatchesthegivenname(at'background'withvalue'?attr/colorPrimary').下面是我的XML文件:-我的gradle.properties文件包含这个:-ANDROID_BUILD_TARGET_SDK_VERSION

Android match_parent 未按预期工作

在我的布局文件中,我使用根ScrollView和子LinearLayout。我对此进行了搜索,但没有得到帮助。我在父View和subview中设置了ma​​tch_parent。但是subview有问题。subview不像父View那样填充。这是图片和xml代码。布局文件。 最佳答案 在ScrollView中尝试android:fillViewport="true"。 关于Androidmatch_parent未按预期工作,我们在StackOverflow上找到一个类似的问题:

android - 错误 :No resource found that matches the given name (at 'resource' with value '@xml/provider_paths' )

我正在开发一个用于谷歌服务文本检测的应用程序,遇到使用File_PROVIDER共享文件的问题。AndroidManifest.xml:对于res/xml/provider_paths.xml:但是我总是得到这个编译错误:错误:找不到与给定名称匹配的资源(在值为“@xml/provider_paths”的“资源”处)。出了什么问题? 最佳答案 我只是在同一个问题上花了很长时间。有些人建议拼写错误(那里没有拼写错误)有些人提到了其他可能性,例如错误的文件夹或修改config.xml或检查sdk版本的建议技术....我缺少的是“prov