草庐IT

cm-attribute

全部标签

android - 警告 : Ignoring InnerClasses attribute for an anonymous inner class(org. ksoap2.transport.KeepAliveHttpsTransportSE$1)

当使用ksoap2-android-assembly-2.5.8-jar-with-dependencies.jar作为引用库(外部jar)编译Android项目时,我收到此警告:[2012-03-2011:50:50-AddressBook]Dxwarning:IgnoringInnerClassesattributeforananonymousinnerclass(org.ksoap2.transport.KeepAliveHttpsTransportSE$1)thatdoesn'tcomewithanassociatedEnclosingMethodattribute.Thisc

android - 同步适配器安卓 :userVisible attribute not working

根据android文档android:userVisibledefaultstotrueandcontrolswhetherornotthissyncadaptershowsupintheSyncSettingsscreen.但它会在设置中显示它获得的任何值!2014年11月3日编辑我从authenticator.xml中删除了android:iconandroid:labelandroid:smallIcon现在不是了显示在帐户中,但在三星GalaxyS4上测试的添加帐户上有一个空条目。郑重声明,当从“设置”打开“帐户”时,我的2.3.3模拟器完全崩溃了。

java - 安卓 : No resource identifier found for attribute 'headerView'

使用AndroidStudio,我在Activity布局中遇到此错误:错误:(9)在包“com.merahjambutech.zuki.deteksi”中找不到属性“headerView”的资源标识符我非常确定布局header_parallax_social.xml在我的项目文件(res/layout)中可用,这是header_parallax_social的代码:我已经尝试更改xmlns:app和类似的东西,但仍然没有找到解决方案... 最佳答案 您必须在values文件夹中的attrs.xml中为您的Listview设置自定义属

android - xmlns :tools namespace attribute not reflecting in plugin Element

我正在开发一个cordova插件,我的插件代码需要xmlns:tools="http://schemas.android.com/tools"命名空间。所以,我在Plugin.xml中添加了相同的内容现在,将插件添加到任何cordova项目后,我在Androidlist文件中看不到xmlns:tools="http://schemas.android.com/tools"命名空间。这就像根据cordovaPluginSpecification它应该添加xmlns:tools命名空间,但它没有发生。任何想法如何实现它提前致谢。 最佳答案

android - 为什么错误 :(2) No resource identifier found for attribute 'shortcutShortLabel' in package 'android' when creating shourtcut in Android7?

当我创建快捷方式时,请引用developer.android.com,我写的代码在下面一个简单的。但是当我构建项目时,出现错误消息说错误:(2)在包“android”中找不到属性“shortcutId”的资源标识符错误:(2)在包“android”中找不到属性“shortcutShortLabel”的资源标识符错误:(2)在包“android”中找不到属性“shortcutLongLabel”的资源标识符错误:(2)在包“android”中找不到属性“shortcutDisabledMessage”的资源标识符这是为什么已升级所有AndroidSDK和工具

android - 错误 : Attribute "font" already defined with incompatible format

我在通过Gradle构建应用程序时遇到问题,如下所示。我得到了错误:错误:(516)属性“字体”已经用不兼容的格式定义。错误:(298)此处定义的原始属性。错误:(516)属性“字体”已经用不兼容的格式定义。错误:(298)此处定义的原始属性。但我没有在我的模块中找到使用“字体”属性的地方。请帮助我。dependencies{compilefileTree(include:['*.jar'],dir:'libs')testCompile'junit:junit:4.12'androidTestCompile('com.android.support.test.espresso:espr

android - 如何在没有 odex 的情况下构建 CM 系统应用程序?

当我构建CM7的系统应用程序(例如ADWLauncher)时,我切换到ADWLauncher的文件夹并运行“mm”命令,然后我得到.apk和.odex文件,我怎样才能得到带有dex的.apk文件它。我的意思是我是否应该更改Android.mk或generic.mk中的某处,让编译只生成可以直接安装的apk文件。 最佳答案 试试这个mmWITH_DEXPREOPT=false-B 关于android-如何在没有odex的情况下构建CM系统应用程序?,我们在StackOverflow上找到一

java - 二进制 XML 文件行 #7 : You must supply a layout_width attribute

每当这段代码被执行时:inflater.inflate(R.layout.settings_switch,this);我收到这个错误:10-2913:27:00.090:E/AndroidRuntime(22364):Causedby:java.lang.RuntimeException:BinaryXMLfileline#7:您必须提供layout_width属性。怎么可能呢?我有android:layout_width="match_parent"android:layout_height="match_parent" 最佳答案

java - 错误 : no resource identifier for attribute 'srcCompat'

我在@drawable文件夹中使用复制+粘贴添加了2张图像,但出现错误Error:(25)Noresourceidentifierfoundforattribute'srcCompat'inpackage'com.example.francydarkcool.maps'我添加了:defaultConfig{vectorDrawables.useSupportLibrary=true;...}在build.gradle中还有:ImageViewimg1=newImageView(this);img1.setImageResource(R.drawable.cascada3);setCon

android - android :enabled attribute的双向数据绑定(bind)

我正在尝试找出Android中的双向数据绑定(bind)库。我想通过更改xml中的android:enabled属性来启用/禁用LinearLayout(以及内部的RelativeLayout)。XML部分如下所示:viewModel.doSomething()}"android:background="@drawable/shortcut_button_label_selector"android:orientation="horizontal">现在,我想这样做的原因是因为这两个选择器(shortcut_button_label_selector和shortcut_button_i