草庐IT

android - ndk-gdb 和 eclipse "No Source File named..."

我正在尝试调试我使用androidndk-build脚本构建的一些native代码,但遇到了一个小障碍。我已经将native代码编译到一个共享库中,我想在eclipse中使用ndk-gdb对其进行调试。代码是使用构建的APP_OPTIM:=debug在Application.mk文件中,我还添加了-g标志以确保安全。Eclipse配置为调试native代码,我可以连接到设备上的gdbserver,但由于gdb出现以下错误,我无法设置断点:496-break-insert/home/lithium/workspace/supermariowar/jni/SMW/SDL_android_m

android - 禁用 Lint 警告 "The view name suggests this is a number but it does not include a numeric inputType"

我在Lint错误检查首选项中搜索了警告列表,但找不到。列表有点长,无法检查每个警告是否是我想要的,并用name、number、numeric过滤警告>、inputType等不会引发警告。将鼠标悬停在警告上似乎不会提供警告ID。我有充分的理由为名称中带有数字的变量使用文本inputType,这是因为我想登录到使用数字作为登录ID的服务器,因此我需要数字作为字符串。我真的不喜欢那里有警告,如果可能的话,我想禁用该特定警告。谢谢。 最佳答案 您也可以在XML中执行此操作,方法是将xmlns:tools="http://schemas.an

android - <activity> 没有有效的 android :name when dexguarding

我正在尝试dexguard作为系统应用程序运行的应用程序。但是,当我尝试将其推送到system/app目录时,我从PackageParser收到以下错误。W/PackageParser(1995):/system/app/My.apk(atBinaryXMLfileline#290):doesnothavevalidandroid:name我还在dexguard-project.txt中添加了以下内容,但无济于事。-keepresourcexmlattributenamesmanifest/installLocation,manifest/versionCode,manifest/pa

android - google-services.json - 更改了 package_name - 我需要创建一个新的配置文件吗

我当前的环境已经有一个google-services.json文件并且一切正常。但现在由于不可预见的情况,我必须重命名我的项目包。我现在已经成功地重命名了这个包。我还进入了google-services.json文件并在那里重命名了包名称。所以现在我想知道我是否需要回到谷歌开发者网站并创建一个新的配置文件?基本上我担心重命名google-services.json中的包名称是不够的。我认为该配置与原始包名称相关联。我想知道当开发人员重命名项目的包名称时是否需要从googledevelopersite生成新的配置文件?这是我最初生成的google-services.json文件,我将向您

android - Apktool 检索项目 : No resource found that matches the given name '@android:style/Animation.OptionsPanel' 的父项时出错

我正在尝试使用apktool(apktool-2.1.1)重建apk。遇到错误i)找不到与给定名称“@android:style/Animation.OptionsPanel”匹配的资源ii)找不到与给定名称“@android:style/Animation.LockScreen”匹配的资源错误信息:I:UsingApktool2.1.1I:Copying/home/workspace/debug/app-demo-releaseclasses.dexfile...I:Buildingresources...W:/home/workspace/debug/app-demo-releas

android - 如何在 styles.xml 中列出 <item name ="app:fabSize">[value]</item>?

我试图在styles.xml中包含app:fabSize但androidstudio抛出了一个错误有没有办法在styles.xml中包含app:fabSize和其他app:属性?Hereisthecodeforthestyletag 最佳答案 在layout.xml中添加Compat属性时,应使用先前定义的命名空间(实际上不必是app,但应通过xmlns在xml中定义:>-例如将hello作为命名空间也是可能的。无论如何app是某种标准)。但是在styles.xml中使用Compat属性不应该放任何东西,但是属性名称:mini

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