[英]Android errors throughout project
I've got a project from Github, that I'm viewing in Android Studio (3.0 Preview). 我有一个来自Github的项目,正在Android Studio(3.0预览版)中查看。 When I build the project I get 0 errors but when I'm viewing the projects files, I get a lot of errors about not matching Class types. 当我构建项目时,我得到0错误,但是当我查看项目文件时,我得到很多关于不匹配类类型的错误。
Examples 例子
Wrong 1st argument type Found 'android.support.v7.appCompatActivity' expected 'android.App.Activity' 发现第一个参数类型错误'android.support.v7.appCompatActivity'预期为'android.App.Activity'
on 上
Utils.patchFiles(outerClass, TAG,
new Utils.DesiredFilesKeywordGetter(), type2files);
Cannot resolve method startActivity(android.content.Intent) 无法解析方法startActivity(android.content.Intent)
on 上
startActivity(intent)
even I had the same problem once. 甚至我曾经遇到过同样的问题。
In your android studio gp to 在您的android studio gp中
File ->Invalidate Cashes / Restart 文件->无效兑现/重启
Then Clean and Rebuild the app again. 然后再次清理并重建应用程序。 Hope this will solve the problem. 希望这能解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.