草庐IT

assign_attributes

全部标签

安卓工作室 3.0 错误 : style attribute '@android:attr/windowEnterAnimation' not found

我已经按照迁移到androidstudio3.0updgradation的步骤进行操作。构建.gradleflavorDimensions'dimensionless'D:\R\merchant\projapp\popuplibrary\build\intermediates\bundles\debug\res\values\values.xmlError:(28,5)error:styleattribute'@android:attr/windowEnterAnimation'notfound.C:\Users\user.gradle\caches\transforms-1\file

android - 与 android :drawableBottom attribute. 结合使用时不显示可绘制形状

保存在res/drawable/gradient_box.xml的XML文件:(以上形状定义取自当时的Android开发者指南,没有错误)。让我们尝试将它与TextView一起使用:TextView显示时就好像drawableBottom属性不存在一样!但是,将形状设置为背景效果很好:将实际图像(例如*.png)设置为android:drawableBottom也可以正常工作。有什么想法吗? 最佳答案 解决了!问题似乎是形状不一定具有内在边界。也就是说,生成的可绘制对象不知道如何绘制自己!要解决这个问题,只需指定形状的大小,如下所示

android - 错误获取 'name' 属性 : attribute is not a string value

将我的apk文件上传到googleplay会出现此错误:YourAPKcannotbeanalyzedusingaapt.Erroroutput:Failedtorunaaptdumpbadging:ERRORgetting'name'attribute:attributeisnotastringvalue因为我知道这个问题在我的list文件中,所以我把它放在这里:AndroidManifext.xml:我已经检查了所有的android:name属性,没有找到问题所在。谢谢大家。 最佳答案 所以在稍微搜索之后,我找到了三个选项供您执

android - imagebutton 给我错误 : [Accessibility] Missing contentDescription attribute on image

[辅助功能]图片上缺少contentDescription属性这个错误是什么意思,我该如何解决? 最佳答案 DesigningforAccessibility“定义简要描述View内容的文本。此属性主要用于可访问性。由于某些View没有文本表示,此属性可用于提供此类内容。”这不是错误,只是警告。此属性的使用是可选的。 关于android-imagebutton给我错误:[Accessibility]MissingcontentDescriptionattributeonimage,我们在

Android 支持库构建 v26.X.X 构建错误 : Attribute "font" already defined

我正在尝试将支持库的版本25.3.1升级到版本26.X.X,但每次我使用较新版本构建项目时,我得到这个错误:Error:(357)Attribute"font"alreadydefinedwithincompatibleformat.Error:(343)Originalattributedefinedhere.Error:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException:Errorwhileexecutingprocess/Users/johnsmith/Li

c++ - 对 `boost::log_mt_posix::basic_attribute_set<char>::~basic_attribute_set()' 的 undefined reference

新手问题...我是第一次试用Boost,因为我想试驾BoostLog图书馆。我构建了这个测试程序...#include#includeintfibonacci(intnum){inti;inta=1;intb=1;for(i=2;i编译数据:****BuildofconfigurationDebugforprojectLoggingCpp****makeallBuildingfile:../main.cppInvoking:GCCC++Compilerg++-O0-g3-Wall-c-fmessage-length=0-lpthread-MMD-MP-MF"main.d"-MT"mai

c++ - 错误 : Assigning to char* from incompatible type void*

所以我试图将来自libcURLHTTP请求的响应存储到C字符串中,以便稍后解析。响应代码完全是用C编写的,而其他所有内容都是用C++编写的,对于任何其他C++编译器,它应该可以正常工作。但是当我尝试编译时,即使我在文件名后跟“-xc”参数,我也会得到这些特定的响应。g++main.cpp-xccJSON.c-xcrespbuffer.c-lcurl-lm./respbuffer.c:14:9:error:assigningto'char*'fromincompatibletype'void*'s->ptr=malloc(s->len+1);^~~~~~~~~~~~~~~~~./resp

c++ - 提神气 : Take a rule's attribute and set it as a field of an enclosing rule's struct attribute?

像许多其他问题一样,我正在尝试使用Boost.Spirit.Qi将简单语法解析为结构树。我会尽量提炼我正在尝试做的事情,以尽可能最简单的情况。我有:structInteger{intvalue;};BOOST_FUSION_ADAPT_STRUCT(Integer,(int,value))稍后,在语法结构中,我有以下成员变量:qi::ruleinteger;我用它来定义integer=qi::int_;但是,当我尝试实际解析一个整数时,使用qi::phrase_parse(iter,end,g,space,myInteger);myInteger.value在成功解析后始终未初始化。同

c++ - std::string::assign() 导致段错误

我有一个std::vector包含特定偏移量的字符串。这是一个缩短的转储:...@1280000000000000000736F6D6574686933........somethin@14438360000000000000000000000000000ng..............@1600000000000000000312E322E33000000........1.2.3...@17600000000000000000000000000000000...................我正在尝试提取偏移量136处的数据并将其放入std::string中:std::strin

c++ - 错误 [Pe513] : a value of type "void *" cannot be assigned to an entity of type "uint8_t *"

我正在尝试将C项目转换为C++。在C项目中,我在编译成C++时遇到了这个错误:Error[Pe513]:avalueoftype"void*"cannotbeassignedtoanentityoftype"uint8_t*"下面的代码给出了这个错误:#defineRAM32Boundary0x20007D00uint8_t*pNextRam;pNextRam=(void*)RAM32Boundary;//loadupthebaseram谁能解释一下这是在C中做什么以及如何将其转换为C++? 最佳答案 C允许与void*之间的隐式转