Twitter Fabric - Cannot Resolve Symbol

假装没事ソ 提交于 2019-12-24 02:11:59

问题


I've installed the Twitter Fabric plugin for Android Studio. That was simple and straightforward however my project can't recognise any of the Twitter objects when I copy and paste the code from the Fabric dialogue box. For example the following line

private TwitterLoginButton loginButton;

has 'TwitterLoginButton' in red and says 'cannot resolve symbol'. I've copied the import statements already so I thought that would be it.

Obviously I haven't downloaded something or I need to make Android studio aware of a file path maybe. I've configured the setting for the Android SDK, so that's fine. Does anyone know of any common mistakes when first implementing Twitter Fabric to Android Studio?


回答1:


Love these simple, stupid ones. All I had to do was click Rebuild under the Build option in the toolbar to make everything ok. I assume this is due to the Gradle Build.



来源:https://stackoverflow.com/questions/27074997/twitter-fabric-cannot-resolve-symbol

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!