草庐IT

export-ignore

全部标签

android - `export signed` 和 `unsigned` .apk 文件有什么区别?

这个问题在这里已经有了答案:Androiddifferencesbetweensignedandunsigned.apkfiles?(2个回答)关闭9年前。我正在使用Android工具-导出...为我的Android应用程序构建.apk文件,按照here的指导我的问题是什么是签名和未签名的.apk文件?我们如何使用已生成的.apk文件?(我试图导出一个未签名的,但我无法为我的GalaxyNexus安装它) 最佳答案 SigningAndroidapps就像签署任何其他应用程序一样;它为用户提供了一定程度的保证,即代码自发布以来未被篡

android - 如何正确触发 ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS Intent ?

如文档中所述:"AnappholdingtheREQUEST_IGNORE_BATTERY_OPTIMIZATIONSpermissioncantriggerasystemdialogtolettheuseraddtheapptothewhitelistdirectly,withoutgoingtosettings.TheappfiresaACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONSIntenttotriggerthedialog."有人能告诉我触发这个Intent的正确方法吗? 最佳答案

android - 如何正确触发 ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS Intent ?

如文档中所述:"AnappholdingtheREQUEST_IGNORE_BATTERY_OPTIMIZATIONSpermissioncantriggerasystemdialogtolettheuseraddtheapptothewhitelistdirectly,withoutgoingtosettings.TheappfiresaACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONSIntenttotriggerthedialog."有人能告诉我触发这个Intent的正确方法吗? 最佳答案

安卓 Lint : how to ignore missing translation warnings in a regional locale string file that purposely only overrides some default translations?

是否可以在一个单独的资源文件中翻译一些字符串,但不是全部,而不用Lint提示MissingTranslation?例如:我的应用的字符串都在res/values/strings.xml中。其中一个字符串是PostalCode由于“邮政编码”在美国通常称为“邮政编码”,我想添加另一个资源res/values-en-rUS/strings.xml,其内容为:ZipCode但是,Lint提示values/strings.xml中的其他字符串,但values-en-rUS/strings.xml中没有我知道您可以通过指定tools:ignore来抑制警告。在values/strings.xml

安卓 Lint : how to ignore missing translation warnings in a regional locale string file that purposely only overrides some default translations?

是否可以在一个单独的资源文件中翻译一些字符串,但不是全部,而不用Lint提示MissingTranslation?例如:我的应用的字符串都在res/values/strings.xml中。其中一个字符串是PostalCode由于“邮政编码”在美国通常称为“邮政编码”,我想添加另一个资源res/values-en-rUS/strings.xml,其内容为:ZipCode但是,Lint提示values/strings.xml中的其他字符串,但values-en-rUS/strings.xml中没有我知道您可以通过指定tools:ignore来抑制警告。在values/strings.xml

android - 摆脱 "Exported service does not require permission"警告

我正在寻找消除警告的解决方案。我什至不明白它为什么会出现。我查看了一个没有出现警告的SDK示例。首先这是我的list,我收到警告导出的服务不需要权限:...虽然AndroidSDK的SampleSyncAdapter有这个list:...但是没有警告。为什么我会收到警告?好吧,我使用Theme.Sherlock主题来使用ActionBarSherlock。但我无法想象这会导致错误。 最佳答案 警告告诉您,您在未经许可的情况下导出(即:公开提供)服务。这使您的服务可以不受限制地用于任何其他应用程序。见Exportedservicedo

android - 摆脱 "Exported service does not require permission"警告

我正在寻找消除警告的解决方案。我什至不明白它为什么会出现。我查看了一个没有出现警告的SDK示例。首先这是我的list,我收到警告导出的服务不需要权限:...虽然AndroidSDK的SampleSyncAdapter有这个list:...但是没有警告。为什么我会收到警告?好吧,我使用Theme.Sherlock主题来使用ActionBarSherlock。但我无法想象这会导致错误。 最佳答案 警告告诉您,您在未经许可的情况下导出(即:公开提供)服务。这使您的服务可以不受限制地用于任何其他应用程序。见Exportedservicedo

android - 这是什么警告: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute

这个问题在这里已经有了答案:Whatisthe"IgnoringInnerClassesattribute"warningoutputduringcompilation?(4个回答)关闭8年前。我创建了3个布局HDPI和MDPI和LDPI,我编辑了xml文件中的任何一个,在控制台中,它们显示错误:warning:IgnoringInnerClassesattributeforananonymousinnerclassthatdoesn'tcomewithanassociatedEnclosingMethodattribute.(Thisclasswasprobablyproducedb

android - 这是什么警告: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute

这个问题在这里已经有了答案:Whatisthe"IgnoringInnerClassesattribute"warningoutputduringcompilation?(4个回答)关闭8年前。我创建了3个布局HDPI和MDPI和LDPI,我编辑了xml文件中的任何一个,在控制台中,它们显示错误:warning:IgnoringInnerClassesattributeforananonymousinnerclassthatdoesn'tcomewithanassociatedEnclosingMethodattribute.(Thisclasswasprobablyproducedb

android - Proguard 问题 "Warning:Ignoring InnerClasses attribute for an anonymous inner class"

我不知道该如何描述这个问题。我搜索了很多,但没有找到任何解决方案。这个解决方案也没有帮助我-keepattributesEnclosingMethod:dependencies{compileproject(':libraries:material-drawer')compilefileTree(dir:'libs',include:['*.jar'])testCompile'junit:junit:4.12'compile'com.android.support:appcompat-v7:23.2.0'compile'com.android.support:recyclerview-