2013-12-09 120 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無法解析」