2013-12-09 122 views
0

其实我是新安卓用户目前正面临着一个问题this is 你可以看到谷歌提供的代码的链接。它在eclipse中显示我在GoogleAuthUtil上的红线。请帮助我。安卓谷歌播放服务

private String[] getAccountNames() { 
    AccountManager mAccountManager = AccountManager.get(this); 
    Account[] accounts = mAccountManager.getAccountsByType(
      GoogleAuthUtil.GOOGLE_ACCOUNT_TYPE); 
    String[] names = new String[accounts.length]; 
    for (int i = 0; i < names.length; i++) { 
     names[i] = accounts[i].name; 
    } 
    return names; 
} 
+0

当您将鼠标悬停在它上面时,红线会说明什么?或点击左侧的红色十字,看看它说了些什么。 –

回答

0

Sayed.jalil: -

其表现 “Google.AuthUtil不能得到解决”,并 其在import语句也给错误.. 进口com.google.android.gms.auth.GoogleAuthUtil;
在“com.google”上显示红色线条nd错误是“导入com.google无法解析”