2014-06-15 46 views
-3

爲什麼應用程序無法在Android設備2.3版運行2.3.7

<uses-sdk 
    android:minSdkVersion="8" 
    android:targetSdkVersion="19" /> 



<application 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" 
    > 

我的minSdkVersion &目標之上,但這個程序是不是2.3的Android設備運行version.So plz幫助我

+0

你的意思是「沒有在android中運行」?無法安裝?崩潰? – ProGM

+0

應用程序安裝但打開時它崩潰nd被迫關閉.. –

+2

向我們展示logcat。遇到事故時你應該一直這樣做。我的猜測是:它可能是一個全息主題,你使用的不在3.0以下(我猜這是因爲你已經標記了你的問題android-holo到處)。無論如何,即使不是這樣,logcat會告訴你真正的原因。 –

回答

1

您必須使用getSupportActionBar()而不是getActionBar()

+0

在這段代碼中我如何使用getsupportActionbar(); –

+0

我編輯了我的答案,使其更清晰。 –

+0

雅我使用你的建議bt時getSupportActionBar()寫它。它給錯誤 –

相關問題