NativeActivity和GooglePlayServices

时间:2014-07-06 05:13:44

标签: android android-ndk google-play

我正在尝试使用NativeActivity应用来实现GooglePlayServices。我目前正在尝试通过创建我自己的扩展NativeActivity的类来实现这一目的。

我的Android SDK管理器中显示了我的Google Play服务版本。我正在运行Android API 10的设备上运行。

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

以下是我的活动的片段

public class KablamActivity extends NativeActivity {

@Override
protected void onResume(){
    super.onResume();
    GooglePlayServicesUtil.isGooglePlayServicesAvailable(this.getApplicationContext());
}

}

以下输出说我的Google Play服务也已过时,但应该会弹出一个对话框告诉我一些事情。我需要做什么来解决android.app.AlertDialog和android.app.Activity.getFragmentManager问题?

dalvikvm Could not find method android.app.AlertDialog$Builder.<init>, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.a
dalvikvm VFY: unable to resolve direct method 79: Landroid/app/AlertDialog$Builder;.<init> (Landroid/content/Context;I)V
dalvikvm VFY: replacing opcode 0x70 at 0x002c
dalvikvm Could not find method android.app.Activity.getFragmentManager, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.b
dalvikvm VFY: unable to resolve virtual method 28: Landroid/app/Activity;.getFragmentManager ()Landroid/app/FragmentManager;
dalvikvm VFY: replacing opcode 0x6e at 0x0023
dalvikvm VFY: dead code 0x0026-0030 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.b (ILandroid/app/Activity;Landroid/support/v4/app/Fragment;ILandroid/content/DialogInterface$OnCancelListener;)Z
dalvikvm DexOpt: couldn't find field Landroid/content/res/Configuration;.smallestScreenWidthDp
dalvikvm VFY: unable to resolve instance field 53
dalvikvm VFY: replacing opcode 0x52 at 0x0012
dalvikvm VFY: dead code 0x0014-0018 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.b (Landroid/content/res/Resources;)Z
GooglePlayServicesUtil Google Play services out of date.  Requires 5077000 but found 4452034

0 个答案:

没有答案