草庐IT

scss-lint

全部标签

Android Lint 错误 : Class requires API level 3, 当前最小值为 1

在运行我的Android应用程序时,我经常会收到错误列表,上面写着ClassrequiresAPIlevel3(currentminis1):android.hardware.SensorEventListener我已经搜索过这个问题的正确答案,例如Android工具>清除链接标记,但这并不能解决问题。每隔一段时间,错误列表就会不断出现。它是在我的项目设置中还是我的方法已被弃用?我已经为Android4.4安装了最新的SDK。 最佳答案 在您的manifest文件中,根据您的要求像这样设置sdk..

java - 无法使用 gradle 构建滑动菜单,在 lint 上失败

当我尝试构建滑动菜单项目时出现以下错误。这个项目是在eclipse中使用的,但我在androidstudio中使用默认导入来获取这个项目。:slidingMenu:lintFAILEDFAILURE:Buildfailedwithanexception.Whatwentwrong:Executionfailedfortask':slidingMenu:lint'.[Ljava/util/HashMap$Entry;尝试:使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。构建失败总时间:9.59秒无法使用Gradle执行构建分

android - Android Studio 1.5.1 中的 Lint 不适用于缺少权限检测

目前,我正在将我的应用程序迁移到目标API23。我花了一段时间才弄明白为什么accountManager.getAccountsByType("com.google")不再有效。这是由于新的Marshmallow权限模型-http://developer.android.com/intl/es/training/permissions/requesting.html我正在使用AndroidStudio1.5.1根据http://tools.android.com/tips/lint-checks,我希望lint能够根据MissingPermission警告我以下代码publicstat

java - 添加自定义 Lint 规则

我正在关注此(http://tools.android.com/tips/lint-custom-rules)页面上的教程。我卡在了这一步:lint--showMyId我收到以下错误消息,有什么想法吗?Couldnotloadcustomrulejarfile/Users/me/.android/lint/CustomLintRule.jarjava.lang.NoSuchMethodError:com.android.tools.lint.detector.api.Issue.create(Ljava/lang/String;Ljava/lang/String;Ljava/lang/

android - 获取蓝牙适配器时出现 Lint 错误

我正在按照低功耗蓝牙设备的文档扫描BLE设备。如文档中所述,我定义了---BluetoothAdaptermBluetoothAdapter=null;finalBluetoothManagerbluetoothManager=(BluetoothManager)getSystemService(Context.BLUETOOTH_SERVICE);mBluetoothAdapter=bluetoothManager.getAdapter();//LintError..但是我遇到了一个Lint错误---CallrequiresAPIlevel18(currentminis8):andr

android - 在 View 级别抑制 lint 警告

我从lint收到以下错误:InconsistentLayout。有时这是预期的,因为平板电脑和手机布局不同。这就是lint警告的最后几句话的原因:Therearecaseswherethisisintentional.Forexample,youmayhaveadedicatedlargetabletlayoutwhichaddssomeextrawidgetsthatarenotpresentinthephoneversionofthelayout.Aslongasthecodeaccessingthelayoutresourceiscarefultohandlethisproper

android - 这个 Android Lint 是什么意思 : "Wrong orientation?"

我在eclipse中运行Androidlint时出现错误:Wrongorientation?Noorientationspecified,andthedefaultishorizontal,yetthislayouthasmultiplechildrenwhereatleastonehaslayout_width="match_parent"Issue:ChecksthatLinearLayoutswithmultiplechildrensettheorientationId:Orientation这是错误代码:这是什么意思?如果我忽略此lint错误会发生什么?

android - Android L : "This method is not overriding anything" 上 Fragments 的 Lint 错误

Thismethodisnotoverridinganythingwiththecurrentbuildtarget,butwillinAPIlevel11(currenttargetis1).如何消除这个错误?该应用程序编译并运行。我正在使用gradle:android{compileSdkVersion"android-L"buildToolsVersion"19.1.0"defaultConfig{applicationId"com.codepath.apps.restclienttemplate"minSdkVersion14targetSdkVersion"android-L

android - 如何在文件级别重新启用已禁用的 Android Lint 警告

我禁用了针对特定XML文件的AndroidLint警告“HardcodedText”(它用于数字小键盘,其中包含数字的固定文本)。我找不到在这个文件上重新启用它的方法('RestoreDefaults'左右),无论是在Windows>Preferences>Android>LintErrorChecking还是项目>属性>AndroidLint首选项。关于如何在文件级别重新启用已禁用的警告有任何想法吗? 最佳答案 自己发现:Lint将文件“lint.xml”放入包含依赖项的项目中。不幸的是,编辑和保存这个文件是不够的。您必须关闭并重

android - signingConfigs 标签在升级到 v22 后在 build.gradle 中给我一个 Lint 错误

一段时间以来,我的build.gradle(app)文件中包含以下代码:signingConfigs{release{storeFilefile("D:\\Android\\keystore\\myApp.jks")storePassword"myStorePw"keyAlias"myKeyAlias"keyPassword"MyKeyPw"}}我刚刚升级到targetSdkVersion=22,这意味着将SDK和构建工具也升级到22。现在,整个部分在AndroidStudio(141.1793788)中以黄色突出显示,并显示以下消息:'signingConfigs'cannotbea