如题,我在Eclipse中创建项目,故意在strings.xml文件中加了个未使用的字符串资源。
然后命令行窗口使用“ lint D:\项目地址”,可以得到
但是,问题来了,我在Android Studio中创建了一个项目,也故意加了未使用的字符串资源,然后使用“ lint D:\项目地址”,却得不到相应的结果。结果是一些类似于这样的:
build\intermediates\exploded-aar\com.google.android.gms\play-services-appindexing\8.1.0: Error: No .class files were found in project "8.1.0", so none of the classfile based checks could be run. Does the project need to be built first? [LintError]
很奇怪。
求帮忙解答,你们可以试试是不是跟我一样。