草庐IT

that-dont-suck

全部标签

android - 在 Android Studio 中构建项目时出错 "Error: No resource found that matches the given name (at ____ with value ' @drawable/<name>')

我在Google、stackoverflow和其他android编程网站上进行了搜索,许多网站都为那些将文件从一个文件夹错放到另一个文件夹的人提供了建议等等。但没有一个能说明我面临的问题。这不是像here中那样的损坏文件因为我尝试过但没有成功。我面临的错误是类似的:[debug]C:\Users\Name\AppData\Local\Temp\android_manifest_copy6264790980678653632tmp\AndroidManifest.xml:11:error:Error:Noresourcefoundthatmatchesthegivenname(at'ic

android - 通过 eclipse 构建的 Dagger 示例失败并显示 'Please ensure that code generation was run for this module.'

我在Android中使用Dagger进行依赖注入(inject),使用Eclipse进行构建。我克隆了android-activity-graphs用作示例。我已经根据来自https://github.com/square/dagger/issues/126的staxgr设置了我的环境这些是我的库:​​dagger-1.1.0.jar、dagger-compiler-1.1.0.jar和javax.inject.jar最后,我将Eclipse中的源文件夹更改为指向src/main/java(而不仅仅是src/),以便Eclipse检测相关的通过包关键字文件。项目构建,但在运行时立即失败

android - 在Eclipse中添加库v7 AppCompat时如何解决错误 "No resource found that matches the given name"?

我有一个API级别10的项目目标,我想实现新的ActionBar支持库。按照SupportLibrarySetup中的所有说明进行操作后,将库添加到我的项目时,我遇到了很多这样的错误消息:android-support-v7-appcompat\res\values-v14\styles_base.xml:24:错误:检索项目父项时出错:找不到与给定名称“android:Widget.Holo..”匹配的资源...好的,我知道这个问题有很多答案,但是,在尝试了所有更明显的方法之后,我仍然无法解决错误。我一直在寻找并找到了原因,这不是很明显,至少对于像我这样的新手来说是这样。我的目的是提

android - 检索项目 : No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored' 的父项时出错

今天,我遇到了这篇文章中提到的错误:Errorretrievingparentforitem:Noresourcefoundthatmatchesthegivenname'android:TextAppearance.Material.Widget.Button.Borderless.Colored'有趣的是(也是不同之处)——我们的应用程序已经投入生产5个月,到目前为止我们已经制作了数百个版本和APK。我们一周没有更改任何一行代码(也没有更改任何库版本)并且构建突然停止工作并出现这个提到的错误。Executionfailedfortask':react-native-fbsdk:pr

安卓 Intent : Start activity using class name from another app that has the same sharedUserId

我所有的应用程序都具有相同的sharedUserId。我想使用我当前应用程序的类启动另一个应用程序的类。我想使用intentextras但我不想使用intentURL。我也希望不必更改我的目标Activity的应用程序的AndroidManifest。 最佳答案 这很容易,因为您已经设置了sharedUserId。Intentres=newIntent();StringmPackage="com.your.package";StringmClass=".actYouAreLaunching";res.setComponent(new

android - 错误 : Only the original thread that created a view hierarchy can touch its views

您好,感谢您查看我的问题。我是C的中级程序员,但Android新手。我一直在尝试让聊天程序正常工作。假设下面代码中的其他一切都完美无缺。我想问的一个问题是,当我尝试从正在运行的线程中setText()时,出现了上面的异常。我看了很多网站,也看了这里。发现了很多东西,但是我真的不明白。请以最简单的方式向我解释,或者尽可能提供一些简单的修复方法。非常感谢!!publicclasschatterextendsActivity{privateStringname="UnknownUser";/**Calledwhentheactivityisfirstcreated.*/@Overridepu

android - Xamarin : No resource found that matches the given names (AppCompat)

我在Azure上部署了一个虚拟机。我已经安装了VisualStudio2015、Xamarin和其他移动开发工具。我在本地计算机上进行了相同的设置,以通过VisualStudio在我的设备上测试我的应用唯一的区别是AndroidSDK的安装。在我的本地机器上,我没有图像系统。我在我的虚拟机上开发了一个应用程序。我在编译期间没有错误。我使用Android.Support.Design、Android.Support.V4、Android.Support.V7.AppCompat、Android.Support.V7.RecyclerView(NuGet的最新版本)及其MvvmCross实

c++ - Q : Template class that takes either a normal type or a template template argument

最近我设计了元类型和允许编译时类型连接的可能操作:#includetemplatetypenameT>structMetaTypeTag{};/*variabletemplatehelper*/templatetypenameT>constexprMetaTypeTagmeta_type_tag={};templatestructTypeTag{};/*comparison*/templateconstexprbooloperator==(TypeTag,TypeTag){returntrue;}templateconstexprbooloperator==(TypeTag,TypeT

c++ - cppcheck 认为我有 "Redundant code: Found a statement that begins with numeric constant"

Cppcheck(version1.46.1)对像这样的枚举发出以下警告:enumDATABASE_TYPE{DATABASE_TYPE_UNKNOWN=-1,//Redundantcode:Foundastatementthatbeginswithnumericconstant我不认为这是多余的。能够做那样的事情非常重要。这是cppcheck的错误还是我没有看到什么?更新我设法将它归结为一个最小的例子。这因为cppcheck有2个(更多)错误而变得复杂,这使得我的减少看起来没有效果。共有5个文件:a.h、a.cpp、b.h、b.cpp和inc。h包含以下内容。VC9在没有警告的情况下

c++ - 错误 C4996 : 'std::_Copy_impl' : Function call with parameters that may be unsafe

我知道这个问题在SO中被问过很多次,但这是与其他问题的不同。CompilerError:FunctioncallwithparametersthatmaybeunsafeVisualStudioWarningC4996xutility(2227):warningC4996:'std::_Copy_impl'失败的代码片段DWORDdwNumberOfNames=pExportDirectory->NumberOfNames;LPDWORDdwNames=(LPDWORD)((LPBYTE)hDLL+pExportDirectory->AddressOfNames);std::vecto