草庐IT

lint_result

全部标签

android - 警告 : Deactivation of this APK will result in your app being available for new installs on fewer types of devices

我在Playstore上上传了一个具有不同架构的应用程序版本,现在我想用新版本上传我的应用程序但是得到了。Error:Youcan'trolloutthisreleasebecauseitdoesn'tallowanyexistinguserstoupgradetothenewlyaddedAPKs.还有一些警告错误,比如DevicesupportremovedWarningDeactivationofthisAPKwillresultinyourappbeingavailablefornewinstallsonfewertypesofdevices.TipIfthisisanunin

android - 我找不到在 Android Studios 项目 View 中显示 lint 错误的方法

在Eclipse中,任何lint错误或警告都会在代码文件中突出显示,而且还会在包树中用图标突出显示带有警告/错误的文件。尽我所能,我找不到在AndroidStudio中复制此功能的方法。有谁知道这样做的方法吗?是否有我找不到的IntelliJ插件可能有帮助? 最佳答案 尝试查看位于以下位置的错误报告文件:ProjectDir/app/build/report/lint-results-release-fatal.html 关于android-我找不到在AndroidStudios项目Vi

android - 从右到左布局支持导致 xml 编辑器中出现警告 lints

最近我更新了新的ADT插件。从那时起,每当我使用之类的任何标签创建xml布局时android:layout_toRightOf=""android:layout_alignParentLeft="true"基本上任何带有left和right这个词的lint警告都会告诉我为我使用的每个左右标签添加开始和结束标签,以支持从右到左的布局。例如它建议我将之前的xml更改为android:layout_toRightOf=""android:layout_alignParentLeft="true"android:layout_toEndOf=""android:layout_alignPare

android - 使用 Lint 分析代码以查找需要权限的调用

我将我的targetSdkVersion设置为23,因此我想实现“在运行时请求权限”。(参见here)如果忘记检查权限,Lint会直接调用告诉你以下内容:Callrequirespermissionwhichmayberejectedbyuser:codeshouldexplicitlychecktoseeifpermissionisavailable(withcheckPermission)orexplicitlyhandleapotential`SecurityException'这非常好,我想分析我的代码以进行任何可能的调用忘记了,但我找不到必须选择的Lint选项在我的检查资料中

android - 从 Android Studio 导出 Android Lint 的 html 报告?

我了解到我们无法在eclipse中导出AndroidLint的xml/html报告。它也适用于AndroidStudio吗?我想导出AndroidLint的xml/html报告(由-studio-analyze-InspectCode使用)..当我通过我的macbook终端运行它时,它说--bash:./gradlew:Nosuchfileordirectory.让我知道如何解决它。 最佳答案 来自(./gradlewlint)的lint报告不同于AndroidStudio代码检查报告(Analyze->InspectCode)。看

android - 抑制 XML 中的 Lint 警告

我的理解是,可以在XML中通过添加ignore属性来抑制个别警告,例如xmlns:tools="http://schemas.android.com/tools"tools:ignore="SpUsage"android:textSize="30dp"当直接指定文本大小时,这很好用。但是当我使用对维度的引用时,例如android:textSize="@dimen/largeTextSize"尽管忽略了,Lint还是会发出警告。让我们假设给定的情况是一个合理的异常(exception),并且关于文本的sp维度优先于dp的指南已被很好地理解和遵循。因为这是一个异常(exception),所

android - 在 Jenkins 中显示 Android Lint 结果

如何在Jenkins中显示AndroidLint的结果,例如作为警告?我想浏览来自JenkinsGUI的警告,就像编译器警告和PMD/Checkstyle警告一样。Jenkins作业的输出是这样的:[exec][exec]Scanningorg.digitalcure.ccnf.app:..........IncorrectdetectorreporteddisabledissueTooManyViews[exec]IncorrectdetectorreporteddisabledissueTooManyViews[exec]...[exec][exec]Scanningorg.dig

android - Lint 错误修复

我在androidstudio中遇到lint错误Error:Executionfailedfortask':app:lint'.Lintfounderrorsintheproject;abortingbuild.Fixtheissuesidentifiedbylint,oraddthefollowingtoyourbuildscripttoproceedwitherrors:android{lintOptions{abortOnErrorfalse}}Information:BUILDFAILEDInformation:Totaltime:7.288secsInformation:1>

java.lang.RuntimeException : Failure delivering result ResultInfo while logging using Facebook 错误

我的应用程序在模拟器上运行良好。所以我决定在我的Android手机上运行我的应用程序。我正在尝试使用我的应用程序登录Facebook帐户,它在模拟器上运行良好。一旦我在Android手机上运行我的应用程序,我总是会收到此异常-01-3011:06:08.400:E/AndroidRuntime(7463):java.lang.RuntimeException:FailuredeliveringresultResultInfo{who=null,request=64206,result=0,data=null}toactivity{com.facebook.samples.session

android - 忽略特定文件的 IconDensities lint 警告

我试图忽略某些特定文件的IconDensitieslint警告。这是我收到的lint警告:Usability:Icons1warningIconDensities:IcondensitiesvalidationIcondensitiesvalidation../../../src/main/res/drawable-xxhdpi:Missingthefollowingdrawablesindrawable-xxhdpi:my_image_1.png,my_image_2.png,my_image_3.png,my_image_4.png,my_image_5.png...(22more