将appcompat-v7导入到项目中

时间:2014-05-11 23:06:20

标签: android android-appcompat

大家好我需要在我的项目中使用appcompat-v7。 我试图将/sdk/extra/.../.../libs/appcompat-v7-jar复制到myproject / libs中,但在我的代码中没有任何错误...... 当我运行我的应用程序时,我可以在调试中看到这一点:

// Compiled from ActionBarActivityDelegate.java (version 1.5 : 49.0, super bit)
abstract class android.support.v7.app.ActionBarActivityDelegate {

// Field descriptor #63 Ljava/lang/String;
static final java.lang.String METADATA_UI_OPTIONS = "android.support.UI_OPTIONS";

// Field descriptor #63 Ljava/lang/String;
static final java.lang.String UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW = "splitActionBarWhenNarrow";

// Field descriptor #63 Ljava/lang/String;
private static final java.lang.String TAG = "ActionBarActivityDelegate";

// Field descriptor #69 Landroid/support/v7/app/ActionBarActivity;
final android.support.v7.app.ActionBarActivity mActivity;

// Field descriptor #71 Landroid/support/v7/app/ActionBar;
private android.support.v7.app.ActionBar mActionBar;

// Field descriptor #73 Landroid/view/MenuInflater;
private android.view.MenuInflater mMenuInflater;

// Field descriptor #75 Z
boolean mHasActionBar;

// Field descriptor #75 Z
boolean mOverlayActionBar;

// Field descriptor #75 Z
private boolean mEnableDefaultActionBarUp;

// Method descriptor #79      
(Landroid/support/v7/app/ActionBarActivity;)Landroid/support/v7/app/ActionBarActivityDelegate;
// Stack: 3, Locals: 1
static android.support.v7.app.ActionBarActivityDelegate  
createDelegate(android.support.v7.app.ActionBarActivity activity);
 0  getstatic android.os.Build$VERSION.SDK_INT : int [1]
 3  bipush 18
 5  if_icmplt 17
 8  new android.support.v7.app.ActionBarActivityDelegateJBMR2 [2]
11  dup
12  aload_0 [activity]
13  invokespecial android.support.v7.app.ActionBarActivityDelegateJBMR2(android.support.v7.app.ActionBarActivity) [3]
16  areturn
17  getstatic android.os.Build$VERSION.SDK_INT : int [1]
20  bipush 16

http://imagebin.org/310148

为什么???任何解决方案谢谢

1 个答案:

答案 0 :(得分:1)