大佬教程收集整理的这篇文章主要介绍了android – 局部变量或实例字段名称与正则表达式'[a-z]不匹配,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
Instance field name doesn't match regex '[a-z]+' Local variable name doesn't match regex '[a-z]+' Instance field access is not qualified with 'this'
这是截图.
如果我将同一个类文件复制到另一个新项目,则没有警告.只有旧项目会显示这些警告.@H_616_14@这是我的build.gradle文件:
apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "24.0.1" defaultConfig { applicationId "com.example.app" minSdkVersion 10 targetSdkVersion 24 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs',include: ['*.jar']) compile 'com.android.support:appcompat-v7:24.1.0' compile 'com.android.support:design:24.1.0' androidTESTCompile 'junit:junit:4.12' }
我试过File菜单 – >无效的缓存/重启,它没有帮助.@H_616_14@我想解决问题,而不是忽略警告.@H_616_14@任何帮助深表感谢.谢谢.
以上是大佬教程为你收集整理的android – 局部变量或实例字段名称与正则表达式'[a-z]不匹配全部内容,希望文章能够帮你解决android – 局部变量或实例字段名称与正则表达式'[a-z]不匹配所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。