Twitter Fabric - Cannot Resolve Symbol

2019-07-20 15:35发布

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条回答
乱世女痞
2楼-- · 2019-07-20 16:14

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.

查看更多
登录 后发表回答