草庐IT

matching

全部标签

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'匹配的资源。”

android - MediaCodec 和摄像头 : colorspaces don't match

我一直在尝试使用新的低级MediaCodec让H264编码与Android平板电脑上的相机捕获的输入一起工作.我在这方面遇到了一些困难,因为MediaCodecAPI的文档记录很差,但我终于得到了一些工作。我将相机设置如下:Camera.Parametersparameters=mCamera.getParameters();parameters.setPreviewFormat(ImageFormat.YV12);//parameters.setPreviewFpsRange(4000,60000);parameters.setPreviewSize(640,480);mCamera

android - [INSTALL_FAILED_NO_MATCHING_ABIS : Failed to extract native libraries, res=-113]

我对导入我的项目的第三方库有疑问。我阅读了很多关于此的文章,但没有得到任何信息如何正确处理它。我把我的类.so放到文件夹中。问题是我尝试运行我收到的应用程序[INSTALL_FAILED_NO_MATCHING_ABIS:Failedtoextractnativelibraries,res=-113] 最佳答案 2019年7月25日:我在AndroidStudio3.0.1中遇到过这个问题:在检查了很多帖子之后,这里是Fix可行的:转到模块build.gradle并在Androidblock中添加此脚本:splits{abi{ena

Android Fragment 不尊重 match_parent 作为高度

对于大量的代码转储感到抱歉,但我真的迷路了。MyActivity.javaonCreate:super.onCreate(savedInstanceState);setContentView(R.layout.activity_singlepane_empty);mFragment=newPlacesFragment();getSupportFragmentManager().beginTransaction().add(R.id.root_container,mFragment).commit();PlacesFragment.javaonCreateView:mRootView=(

Android Facebook SDK 3.0 在登录时给出 "remote_app_id does not match stored id"

我正在尝试构建一个使用FacebookSDKforAndroid3.0的应用程序。但是当我试图打电话时Session.openActiveSession它只是简单地给我一个带有CLOSED_LOGIN_FAILED的SessionState,而LogCat是:12-1600:03:40.510:W/fb4a:fb:OrcaServiceQueue(4105):com.facebook.orca.protocol.base.ApiException:remote_app_iddoesnotmatchstoredid我用“remote_app_id”搜索了StackOverflow,结果是

MongoDB高级查询: get elements in an array matching a second condition

我们有一组具有以下结构的元素:元素:{id:123,items:[{color:"blue","groups":[3,5]},{color:"red","groups":[6,8]}]}{id:124,items:[{color:"blue","groups":[1,2]},{color:"green","groups":[5,9]}]}我们想要一种有效的方法来获取具有可访问组5、9、27、123或56的蓝色项目的元素。这应该返回ID为123的元素,但不返回ID为124的元素,因为项目必须同时满足这两个条件.我们希望查询尽可能高效。这个查询效率高但不满足要求:{$and:{"items

MongoDB高级查询: get elements in an array matching a second condition

我们有一组具有以下结构的元素:元素:{id:123,items:[{color:"blue","groups":[3,5]},{color:"red","groups":[6,8]}]}{id:124,items:[{color:"blue","groups":[1,2]},{color:"green","groups":[5,9]}]}我们想要一种有效的方法来获取具有可访问组5、9、27、123或56的蓝色项目的元素。这应该返回ID为123的元素,但不返回ID为124的元素,因为项目必须同时满足这两个条件.我们希望查询尽可能高效。这个查询效率高但不满足要求:{$and:{"items

android - 我得到 "Error: No resource found that matches the given name (at value with value @integer/google_play_services_version)"

我正在IonicFramework/cordova上开发一个应用程序,当我尝试“cordovarunandroid”时,我得到了这个:"Error:Noresourcefoundthatmatchesthegivenname(atvaluewithvalue@integer/google_play_services_version)"我真的不知道发生了什么,我尝试将值设置为固定值(我知道不是最好的解决方案),问题仍然存在。提前致谢! 最佳答案 对于使用AndroidStudio和/或Gradle遇到此问题的任何人,您只需要确保您的成

android - 值等于dimens.xml 中的match_parent 和fill_parent?

基于hereonXMLAttributes我在dimens.xml中指定以下部分:-1dp@dimen/match_parent@dimen/match_parent然后我在布局中使用这两个维度:然后,当我预览到GraphicalLayout时,它会提示:Youmustsupplyalayout_widthattribute.Youmustsupplyalayout_heightattribute.其实我可以在dimens.xml中定义一个等于match_parent的值吗?更新:我也试过了,但是预览还是报错:-1dp-1dp我成功使用了wrap_content(GraphicalLa