草庐IT

ignore_match

全部标签

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

![给我错误:(]我什么都试过了......[2014-11-1517:56:06-LoginActivity]C:\Users\Different\workspace\LoginActivity\AndroidManifest.xml:15:error:Error:Noresourcefoundthatmatchesthegivenname(at'theme'withvalue'@style/AppTheme').[2014-11-1517:56:06-LoginActivity][2014-11-1517:56:07-LoginActivity]C:\Users\Different

android - "No resource found that matches the given name"错误,即使名称匹配

我正在构建一个简单的待办事项列表应用程序。我试图通过相对于彼此定位它们来组织我的布局。我通过调用像android:layout_toStartOf="@id/to_do_btn"这样的XML属性来做到这一点,但是我得到了一个NoResourceFoundThatMatchesTheGivenName错误。我基本上尝试了Stackoverflow上的所有解决方案,但没有任何帮助。这是我的XML:这是错误的示例:Error:(15,31)Noresourcefoundthatmatchesthegivenname(at'layout_above'withvalue'@id/to_do_bt

android - 警告 :Ignoring Android API artifact com. google.android :android:4. 1.1.4

AndroidStudio今天早上向我的项目添加了外部库。现在,在构建我的项目时,我得到了Warning:IgnoringAndroidAPIartifactcom.google.android:android:4.1.1.4fordebug谁知道这是什么意思? 最佳答案 Doesanyoneknowwhatthismeans?项目的某些依赖已经直接声明了对Android某个版本的依赖。修复要找到有问题的依赖项,请执行以下操作,然后最好将错误告知库的作者。您还可以在等待修复时明确避免该问题:运行./gradlewapp:depend

android - javax.net.ssl.SSLException : hostname in certificate didn't match android 异常

我正在创建一个android应用程序,我在其中将数据发送到web服务,但我收到javax.net.ssl.SSLException错误:证书中的主机名与android不匹配,这是我的代码AsyncHttpClientclien=newAsyncHttpClient();Log.i("URL",String.valueOf(base_url+"Race.svc/json/Race/Scanners/Add/"+series_event_raceid+"/"+qrCode));clien.put(base_url+"Race.svc/json/Race/Scanners/Add/"+ser

Android fill_parent to match_parent

引入match_parent和弃用fill_parent的原因是什么,因为两者意思相同。这种变化不会妨碍向后兼容吗? 最佳答案 使用match_parent而不是fill_parent不会使生成的APK在旧版本中无法运行,因为在生成的APK中,match_parent和fill_parent的出现将被替换为它们相应的常量值,在这种情况下是相同的(均为-1),因此相同的APK也可以在旧版本的Android平台上运行。但是在编译代码时,如果切换到旧版本(版本7或更低版本),则会出现编译错误(因为match_parent未在版本7或更低版

安卓房间 : @Ignore vs Transient

这两者在Room数据库实体的上下文中是否可以互换,或者,如果不能,它们之间有什么区别? 最佳答案 @Ignore是特定于Room的注解,表明Room应该忽略该字段或方法。transient是一个Java结构,表示thisfieldshouldnotbeserializedinstandardJavaserialization.Roomhappenstotreatthissimilarlyto@Ignorebydefault.大多数情况下,当您从某个碰巧使用transient的类继承并且您不控制该类(例如,它来自库)时,情况就是如此。

android - RecyclerView 项目宽度 layout_width =“match_parent” 与父级不匹配

我正在使用RecyclerView并且我正在尝试使RecyclerView的宽度项与父级匹配,因为我正在使用LinearLayoutManager.HORIZONTAL自定义布局.xml布局管理器LinearLayoutManagerlinearLayoutManager=newLinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false);listOffersHits.setLayoutManager(linearLayoutManager);View持有者Viewview=LayoutInflater.

android - match_parent 未按预期执行

我想这应该是一个相当容易回答的问题,如果您比我更了解XML布局的话。在使用ma​​tch_parentlayout_height时,我似乎没有得到我认为应该得到的结果。我有一个带有android:orientation="vertical"的LinearLayout根元素。在这个LinearLayout中,我想要三个元素:-TextView-列表显示-TextView对于这两个TextView,我都设置了android:layout_height="wrap_content"以便它们的高度只达到显示其内容所需的高度。问题是,我希望一个TextView位于表单的顶部,另一个位于表单的底部

android - 使用setRotation后如何在linearLayout中刷新match_parent?

我有几个嵌套布局,我试图在代码中按需旋转90度。我的setRotation部分工作得很好,但不幸的是,旋转的大小调整不完全正确。这些元素的宽度设置为match_parent,旋转后它仍然匹配父级宽度,而不是它应该匹配的父级高度。XML**Abunchofstuffinhere****Abunchofstuffinhere****Abunchofstuffinhere**旋转Java代码view.findViewById(R.id.topPlayers).setRotation(90);//Rotatetheentiretopboxview.findViewById(R.id.p3).s

Android 连续语音识别返回 ERROR_NO_MATCH 的速度太快

我尝试实现连续的SpeechRecognition机制。当我开始语音识别时,我在logcat中收到以下消息:06-0512:22:32.89211753-11753/com.aaa.bbbD/SpeechManager:startSpeechRecognition:06-0512:22:33.02211753-11753/com.aaa.bbbD/SpeechManager:onError:Error706-0512:22:33.35211753-11753/com.aaa.bbbD/SpeechManager:onReadyForSpeech:06-0512:22:33.792117