2014-12-13 29 views
0

我正試圖將Google+登錄按鈕添加到我的應用中。在IDE的佈局查看器中,出現此錯誤: enter image description hereIntellij中的Google+ SignInButton呈現錯誤

但是當我在我的移動設備上運行應用程序時,它呈現得很好。

enter image description here

這是我的Android.manifest樣子:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
     package="com.example.DnD_Model" 
     android:versionCode="1" 
     android:versionName="1.0"> 
<uses-sdk android:minSdkVersion="8"/> 
<uses-permission android:name="android.permission.INTERNET" /> 
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> 
<uses-permission android:name="android.permission.USE_CREDENTIALS" /> 
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher"> 
    <activity android:name="MainActivity" 
       android:label="@string/app_name"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN"/> 
      <category android:name="android.intent.category.LAUNCHER"/> 
     </intent-filter> 
    </activity> 
    <meta-data 
      android:name="com.google.android.gms.version" 
      android:value="@integer/google_play_services_version" /> 
</application> 

怎麼可能是什麼問題?

+0

選擇最新的API級別,它將被排序。 – 2014-12-13 11:39:08

回答

0

那你如何使用最新的API,用於呈現 enter image description here

+0

這正是我的項目。它使用最新的API – 2014-12-13 12:21:14

+0

下載最新的GooglePlayservices並複製最新的Google Play服務庫並替換舊的。可能會有幫助。 – 2014-12-13 13:26:03

+0

我正在使用我今天下載的最新Google Play服務庫(Rev 22):( – 2014-12-13 13:30:27

0

編譯和運行你的應用程序錯誤將自動解決。