草庐IT

nick_name

全部标签

android - 什么是 'action android:name="com.android.vending.INSTALL_REFERRER"'?

我已经测试了AppbrainSDK和InmobiSDK。我找到了这个普通接收器。我制作了定制接收器。我以为在谷歌市场下载应用程序时,谷歌市场会向我的应用程序发送“推荐人”值。但是我没有收到任何东西。什么问题?//ThisisAppbrain'sreceiver//ThisisInmobi'sreceiver//ThisisMyCustomreceiver//sourcepublicclassTestReceiverextendsBroadcastReceiver{publicstaticfinalStringTAG="TEST";StringreferrerString="";@Ove

android - 错误 :No resource found that matches the given name (at 'minHeight' with value '?attr/actionBarSize' )

我正在尝试构建androidstudio项目,但出现以下错误:Error:(11,28)Noresourcefoundthatmatchesthegivenname(at'minHeight'withvalue'?attr/actionBarSize').Error:(12,29)Noresourcefoundthatmatchesthegivenname(at'background'withvalue'?attr/colorPrimary').下面是我的XML文件:-我的gradle.properties文件包含这个:-ANDROID_BUILD_TARGET_SDK_VERSION

android - Firebase 数据库错误 : Found conflicting getters for name: isAccessibilityFocusable

我收到这个错误:Causedby:com.google.firebase.database.DatabaseException:Foundconflictinggettersforname:isAccessibilityFocusable尝试更新我的用户时。User类是这样的publicclassUser{@PrimaryKeyStringuserName;StringgroupName;inttotalMoney;booleanturn;booleanhapyo;booleanblind;@ExcludeTextViewtextView;@ExcludeButtonbHapdiye,

android - 如何添加两个android :name attributes to Application tag in Manifest file?

我的Android应用程序需要两个应用程序类,一个是volleyAppController,另一个是Analytics类。我很困惑如何同时添加这两个类。请帮助我,让我摆脱这个。 最佳答案 您需要实现多级继承来解决这种情况。这是您的场景publicLib1ApplicationextendsApplication{}publicLib2ApplicationextendsApplication{}publicYourApplicationextendsApplication{}如何解决?publicLib1Applicationext

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

我正在开发一个用于谷歌服务文本检测的应用程序,遇到使用File_PROVIDER共享文件的问题。AndroidManifest.xml:对于res/xml/provider_paths.xml:但是我总是得到这个编译错误:错误:找不到与给定名称匹配的资源(在值为“@xml/provider_paths”的“资源”处)。出了什么问题? 最佳答案 我只是在同一个问题上花了很长时间。有些人建议拼写错误(那里没有拼写错误)有些人提到了其他可能性,例如错误的文件夹或修改config.xml或检查sdk版本的建议技术....我缺少的是“prov

java - Gson.toString() 给出错误 "IllegalArgumentException: multiple JSON fields named mPaint"

我想将自定义对象转换为字符串并保存在SharePreferences中,这是我的最终目标。我尝试了以下失败的行。StringmatchString=gson.toJson(userMatches);日志:10-1115:24:33.245:E/AndroidRuntime(21427):FATALEXCEPTION:main10-1115:24:33.245:E/AndroidRuntime(21427):java.lang.RuntimeException:FailuredeliveringresultResultInfo{who=null,request=4001,result=-

安卓工作室 Gradle : Error:Configuration with name 'compile' not found

我的项目刷新失败,并出现以下gradle脚本的错误:错误:找不到名为“compile”的配置。//顶级构建文件,您可以在其中添加所有子项目/模块通用的配置选项。buildscript{repositories{mavenCentral()}dependencies{classpath'com.android.tools.build:gradle:2.3.2'classpath'com.google.gms:google-services:3.1.0'//NOTE:Donotplaceyourapplicationdependencieshere;theybelong//intheind

安卓工作室 : 'name' attribute should be defined

今天我打开了AndroidStudio,这是我发现的:我的资源文件(字符串、样式、尺寸、颜色)也是如此: 最佳答案 和元素没有名为'eventName'的属性.他们有必需的元素'name'在你的情况下,它丢失了。看起来您已经进行了搜索和替换操作并替换了'name'带有'eventName'的属性因为失误。恢复此替换,问题就会消失。 关于安卓工作室:'name'attributeshouldbedefined,我们在StackOverflow上找到一个类似的问题:

android - Gradle : No resource type specified (at 'text' with value '@{user.name}' ). 数据绑定(bind)不工作

我试图将适当的数据绑定(bind)功能添加到我的项目中,但由于某种原因它仍然失败。build.gradle文件如下所示:applyplugin:'com.android.application'buildscript{repositories{mavenCentral()}dependencies{classpath'me.tatarka:gradle-retrolambda:3.2.5'}}repositories{mavenCentral()}applyplugin:'com.android.application'applyplugin:'me.tatarka.retrolamb

Android 加载时区太长 : Loaded time zone names for en_US

亲爱的,我只是编写了一段代码来获取日期时间字符串,如下所示:publicstaticStringgetCurrentDate(){Locale.setDefault(Locale.US);Datedate=newDate();StringstrDate=date.toString();returnstrDate;}但问题是从日期转换为字符串需要很长时间(大约2秒),日志:10-1117:52:51.733:INFO/Resources(6835):Loadedtimezonenamesforen_USin2107ms.你能给我一个如何提高这个方法性能的解决方案吗解决方案更新:我刚刚在主