0

打开我的应用程序时出现错误这是错误

        10-22 11:06:08.137: E/AndroidRuntime(25165): FATAL EXCEPTION: main
        10-22 11:06:08.137: E/AndroidRuntime(25165): java.lang.NullPointerException
        10-22 11:06:08.137: E/AndroidRuntime(25165):    at    android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1097)
        10-22 11:06:08.137: E/AndroidRuntime(25165):    at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1114)
        10-22 11:06:08.137: E/AndroidRuntime(25165):    at android.os.Handler.handleCallback(Handler.java:615)
        10-22 11:06:08.137: E/AndroidRuntime(25165):    at android.os.Handler.dispatchMessage(Handler.java:92)
        10-22 11:06:08.137: E/AndroidRuntime(25165):    at android.os.Looper.loop(Looper.java:137)
        10-22 11:06:08.137: E/AndroidRuntime(25165):    at android.app.ActivityThread.main(ActivityThread.java:4898)
        10-22 11:06:08.137: E/AndroidRuntime(25165):    at java.lang.reflect.Method.invokeNative(Native Method)
       10-22 11:06:08.137: E/AndroidRuntime(25165):     at java.lang.reflect.Method.invoke(Method.java:511)
        10-22 11:06:08.137: E/AndroidRuntime(25165):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
        10-22 11:06:08.137: E/AndroidRuntime(25165):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
        10-22 11:06:08.137: E/AndroidRuntime(25165):    at dalvik.system.NativeStart.main(Native Method)

这是清单线程

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />

<application
    android:icon="@drawable/schoolbus"
    android:label="The Back To School Zone" >



    <!--*************************************************  -->
    <!--*************************************************  -->
    <!--******  starting the ACTIVITIES classes  ********  -->
    <!--*************************************************  -->
    <!--*************************************************  -->





    <activity
        android:name=".mainMenu"
        android:label="The Back To School Zone"
        android:screenOrientation="landscape"
        android:theme="@android:style/Theme.NoTitleBar" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>


     <activity android:name="com.google.ads.AdActivity"
         android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize">

     </activity>
      <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

还是导致线程失败的计费权限?我似乎无法弄清楚为什么这没有启动?

4

1 回答 1

0

我怀疑您的问题是 yoyu 没有完全限定您启动 Activity 的名称

<activity
        android:name=".mainMenu"

Android 通常会从 Manifest 元素中提取包,但您没有发布它,因此很难 100% 确定。但是从您发布的内容来看,它似乎与 Admob 无关。

于 2013-10-22T21:54:42.493 回答