草庐IT

authorize-attribute

全部标签

android - map 安卓 API : Authorization failure

和我类似的问题有很多。我把它们都看了一遍(我希望)。我也认为我做的一切都很好。Mapsv2在GoogleServices上次更新到Rev25之前一直有效我得到:E/GoogleMapsAndroidAPI﹕AuthorizationfailureEnsurethatthe"GoogleMapsAndroidAPIv2"isenabled.EnsurethatthefollowingAndroidKeyexists:APIKey:AIzaSyB...关键匹配。下一个:AndroidApplication(;):87:60:41:37...;com.example.example证书匹配所

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

安卓工作室 : how to show author of just selected line

我注意到VisualStudioCode中的一个漂亮功能(不知道是不是因为GitLens扩展):当我编辑一行时,我可以看到该行的GIT注释,包括作者、上次编辑时间和提交信息。这非常酷,因为它不像您可以在AndroidStudio中启用的“注释”Pane那样占用大量空间。它快速、简单、直接。我的问题是:据您所知,是否有任何AndroidStudio扩展允许类似的可视化?谢谢马可 最佳答案 我通过使用名为GitToolBox的插件在Androidstudio中获得了同样的效果 关于安卓工作室

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

android getSharedPreferences 错误 : Map value without name attribute: boolean

我试图找出这个错误的原因,它在我尝试获取应用程序的共享首选项时发生在启动时。代码只是:settings=this.getSharedPreferences(Globals.PREFS_NAME,0)似乎是一个损坏,但该错误存在于应用程序中,因为我已将其安装在多个设备上并且发生了相同的错误。我已经卸载了应用程序并重新安装它无济于事。也做了一个完全干净的构建。我用谷歌搜索了这个错误,但似乎无法在其中找到任何内容。我之前工作正常。所以我很困惑。任何线索都将非常高度赞赏...问候,抢劫W/ApplicationContext(1541):getSharedPreferencesW/Applic

android - 覆盖安卓 :vmSafeMode attribute for debug builds

在尝试优化调试应用程序的构建和部署速度时,我发现在安装过程中执行/system/bin/dex2oat花费了大量时间。这是ARTaheadoftimecompiler.我发现当以API22为目标时,您现在可以停止ARTAOT编译:我看到部署速度有了显着提高,但我担心进行此更改可能产生的副作用。它一定会对运行时性能造成小的影响,但是启用android:vmSafeMode选项是否会产生任何其他后果?对于调试构建,是否可以在gradle构建文件中覆盖此属性?还是创建特定于调试的list文件是唯一的解决方案? 最佳答案 仅为调试构建启用a

安卓错误 :You must supply layout_width attribute

抱歉,因为我的标题与StackOverFlow上的许多其他标题相似,但这些解决方案均未解决我的问题。我正在使用RelativeLayout设计布局。在代码View中设计后,当我更改为图形View时,Eclipse通知:Youmustsupplyalayout_widthattribute.Youmustsupplyalayout_heightattribute..当我运行这个程序时,会注意到LogCat中的错误Causedby:java.lang.RuntimeException:BinaryXMLfileline#2:Youmustsupplyalayout_widthattribu

android - 获取安卓 :windowSoftInputMode attribute programmatically on Android

我知道可以使用以下方法以编程方式设置android:windowSoftInputModelist属性:getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);有没有办法以编程方式获取这个值?我没有看到相应的getter方法。 最佳答案 找到解决方案,没有“方便”的获取方法,但您可以轻松地手动查询窗口属性:intmode=getActivity().getWindow().getAttributes().soft

java.lang.IllegalArgumentException : Illegal character in authority at index 7 while making https request 异常

从Android模拟器向我的本地wamp服务器发出http请求时出现上述错误。//testingonEmulator:privatestaticfinalStringLOGIN_URL="http://10.0.2.2:80/webservice/login.php";//request:JSONObjectjson=jsonParser.makeHttpRequest(LOGIN_URL,"POST",params); 最佳答案 您的字符串LOGIN_URL的索引7处有一个空格,它导致了异常。应该是这样的。LOGIN_URL="h