草庐IT

pattern-match

全部标签

android - appcompat_v7 : Error retrieving parent for item: No resource found that matches the given name

我正在尝试构建使用appcompat_v7库的Android项目。为此,我通过Eclipse->NewAndroidSampleProject创建了我的项目并添加了我的自定义styles.xml,然后添加了appcompat_v7库Project->Properties->Android->Add。但是当我编译我的项目时,我在appcompat_v7/res/values/styles_base.xml中遇到以下错误:appcompat_v7/res/values/styles_base.xml:24:error:Errorretrievingparentforitem:Noresou

android - RecyclerView 中的项目未填充其宽度 match_parent

我的RecyclerView及其子项有问题。它们不会延伸到整个android:layout_width="match_parent"或fill_parent。我都试过了。问题是,这项工作完美无缺,没有任何改变,不知怎的就毁了。我在FragmentDialog中显示此内容,当我上下ScrollView时,子项仅像wrap_content一样展开,它们已完全展开,但只要我单击它们(我调用notifyDataSetChanged())它们再次缩小。这是一个正确填充的项目的图片,下面是它们在加载或我notifyData时的状态。此外,我使用的StickHeaderAdapter在单击其中一项之

java - 华为系统文件"Source code does not match the bytecode"

我们正在调试一个仅影响华为设备的应用程序的问题。为了调试它,我们购买了P20LiteANE-LX1。我们在代码中放置了一些断点,并正在调查完整的堆栈跟踪。该设备安装了Android8.0,我们在AndroidStudio中下载了相同的SDK。当我们将设备连接到调试器并尝试调查堆栈跟踪时,系统源文件中会出现以下错误:使用堆栈跟踪后,我们可以确认我们的源文件确实与设备上安装的文件不对应。有时,调试器指向调用functionA的行,而在堆栈跟踪中,我们看到调用的是functionB。我们可以确认受此问题影响的文件有:视频View,媒体播放器,ContentProvider.我们已经尝试了所有

Android SDK 版本 25 - android.support v7 :25 gives "No resource found that matches @color/hint_foreground_material_light" Adobe Creative SDK?

在将compileSdkVersion切换到25并使用最新的android.support库版本后,我在gradle同步/构建时收到以下错误。compile'com.android.support:appcompat-v7:25.0.0'compile'com.android.support:design:25.0.0'compile'com.android.support:recyclerview-v7:25.0.0'错误:Noresourcefoundthatmatchesthegivenname(at'android:textColorHint'withvalue'@color/

安卓 Facebook SDK : Key hash does not match any stored key hashes when uploading google play

我的应用程序使用facebookapi进行用户登录。在开发时它工作正常,但是当我将它上传到googleplay时它停止工作。这是错误日志:12-1020:20:02.488:W/fb4a(:):BlueServiceQueue(17284):Exceptionduringservice12-1020:20:02.488:W/fb4a(:):BlueServiceQueue(17284):com.facebook.http.protocol.ApiException:KeyhashXXXXXXXdoesnotmatchanystoredkeyhashes.12-1020:20:02.48

android - Gradle 错误 : Could not find any matches for com. android.tools.build :gradle:2. 2.+

这个问题在这里已经有了答案:Couldnotfindcom.google.gms:google-services:4.0.1[duplicate](2个回答)关闭3年前。这是一个ReactNative项目。在另一台机器上工作正常,但一旦移到我的机器上它就失败了。我找到的大多数解决方案都建议将jcenter()添加到项目级gradle.build的存储库中。就我而言,它已经被添加了。Gradle同步失败并出现此错误:找不到com.android.tools.build:gradle:2.2.+的任何匹配项,因为没有可用的com.android.tools.build:gradle版本。在

MongoDB Aggregate $unwind $match using date - 我错过了什么?

我是MongoDB的新手,我正在尝试使用聚合。我部分地做了我正在寻找的东西,但我对日期有一种奇怪的行为。MongoDB信息Version:2.2.0OperatingSystem:Windows7目标Getallcommentscreatedafter'2012-11-22'让我们举个例子:数据db.blogs.save([{title:"Xthisismysecondtitle",author:"max",posted:newDate(),pageViews:10,tags:["good","nice"],comments:[{"_id":ObjectId("50ac9fdb53a9

MongoDB Aggregate $unwind $match using date - 我错过了什么?

我是MongoDB的新手,我正在尝试使用聚合。我部分地做了我正在寻找的东西,但我对日期有一种奇怪的行为。MongoDB信息Version:2.2.0OperatingSystem:Windows7目标Getallcommentscreatedafter'2012-11-22'让我们举个例子:数据db.blogs.save([{title:"Xthisismysecondtitle",author:"max",posted:newDate(),pageViews:10,tags:["good","nice"],comments:[{"_id":ObjectId("50ac9fdb53a9

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

错误:未找到与给定名称匹配的资源(位于“图标”,值为“@drawable/icon”)。这是我的list...我对此非常陌生,今天早上才开始,之前没有任何编程经验。 最佳答案 找到这个问题。我正在将一个旧项目导入androidstudio并收到错误。这个问题最终在这里得到了解答mipmapdrawablesforicons在list中有但@drawable已被@mipmap取代,因此需要更改为:我把这个答案放在这里,因为它可能会成为一个更常见的问题。 关于android-错误:Nores

android - 错误 : Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'

Error:Noresourcefoundthatmatchesthegivenname:attr'listViewStyle'我已经尝试了这里的一切。没有任何效果。我已将API演示导入API版本15的Eclipse,并且还在src文件中出现错误,例如“无法解析导入com.example.android.apis.R”请帮帮我。我在values-v11/styles.xml文件中有错误而且我在values/styles.xml中有一个错误“错误:检索项目的父项时出错:找不到与给定名称'@android:style/Theme.Holo.Light.NoActionBar'匹配的资源。”