草庐IT

display-name

全部标签

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 线性布局 : not displaying correct height

我有一个白色背景的LinearLayout,其中填充了一堆LinearLayout和RelativeLayout。我已尝试将父布局设置为具有最小高度,但它似乎仍然包裹着内容。这是它现在的样子的照片。空白区域的最小高度应该大于现在的高度。这是我认为是xml的相关部分:...和许多其他LinearLayouts,都以编程方式设置为“GONE”。任何人都可以提出修复建议吗?我不明白为什么那个白色部分占用的空间这么小。 最佳答案 //trythis 关于Android线性布局:notdispla

android - 具有自定义布局的 ListFragment : empty message always displayed

我使用默认的ArrayAdapter为ListFragment创建了自定义布局。我的问题是当列表不为空时,每一行都显示空消息(当列表为空时,消息按预期只显示一次)。headline_list.xml(即我的自定义布局文件)HeadlineFragment.javapublicclassHeadlineFragmentextendsListFragment{@OverridepublicViewonCreateView(LayoutInflaterinflater,ViewGroupcontainer,BundlesavedInstanceState){returninflater.in

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 调用需要 API 级别 13(当前最小值为 10): android. view.Display#getSize

我正在尝试以尽可能多的架构为目标,并尽可能减少警告。Pointdims=newPoint();if(android.os.Build.VERSION.SDK_INT>=13){mWindowManager.getDefaultDisplay().getSize(dims);}elseif(android.os.Build.VERSION.SDK_INT但这给了我错误和警告:CallrequiresAPIlevel13(currentminis10):android.view.Display#getSizeThemethodgetWidth()fromthetypeDisplayisde

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,