【问题标题】:My sample doesn't start in android virtual device我的示例没有在 android 虚拟设备中启动
【发布时间】:2013-06-17 11:34:51
【问题描述】:

我是 android 编程的新手。我只有一个表格,只有一个文本框和按钮。当我运行它时,我给了我一个错误,您可以在屏幕截图中看到。

我的 manifest.xml 在下面。

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.deitel.welcome"
android:versionCode="1"
android:versionName="1.0" >

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

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme">
    <activity android:name="welcome" android:label="@string/app_name"
            android:theme="@android:style/Theme.Black.NoTitleBar"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>      

日志

[2013-06-17 14:40:38 - Welcome] ------------------------------
[2013-06-17 14:40:38 - Welcome] Android Launch!
[2013-06-17 14:40:38 - Welcome] adb is running normally.
[2013-06-17 14:40:38 - Welcome] Performing com.deitel.welcome.welcome activity launch
[2013-06-17 14:40:38 - Welcome] Automatic Target Mode: launching new emulator with compatible AVD 'emulator1'
[2013-06-17 14:40:38 - Welcome] Launching a new emulator with Virtual Device 'emulator1'
[2013-06-17 14:40:38 - Emulator] Failed to create Context 0x3005
[2013-06-17 14:40:38 - Emulator] could not get wglGetExtensionsStringARB
[2013-06-17 14:40:38 - Emulator] could not get wglGetExtensionsStringARB
[2013-06-17 14:40:38 - Emulator] could not get wglGetExtensionsStringARB
[2013-06-17 14:40:38 - Emulator] could not get wglGetExtensionsStringARB
[2013-06-17 14:40:38 - Emulator] could not get wglGetExtensionsStringARB
[2013-06-17 14:40:38 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2013-06-17 14:40:38 - Emulator] could not get wglGetExtensionsStringARB
[2013-06-17 14:40:38 - Emulator] could not get wglGetExtensionsStringARB
[2013-06-17 14:40:38 - Emulator] could not get wglGetExtensionsStringARB
[2013-06-17 14:40:39 - Welcome] New emulator found: emulator-5554
[2013-06-17 14:40:39 - Welcome] Waiting for HOME ('android.process.acore') to be launched...
[2013-06-17 14:41:25 - Welcome] HOME is up on device 'emulator-5554'
[2013-06-17 14:41:25 - Welcome] Uploading Welcome.apk onto device 'emulator-5554'
[2013-06-17 14:41:25 - Welcome] Installing Welcome.apk...
[2013-06-17 14:42:24 - Welcome] Success!
[2013-06-17 14:42:24 - Welcome] Starting activity com.deitel.welcome.welcome on device emulator-5554
[2013-06-17 14:42:26 - Welcome] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.deitel.welcome/.welcome }

【问题讨论】:

    标签: android


    【解决方案1】:

    这表明您的应用程序由于某种原因正在崩溃。 调试您的 Main Activity 在您的情况下它是 Welcome.java。将调试点放在您的onCreate 和其他回调方法中,即onResume()onPuase(),还提供完整的堆栈跟踪,您提供的跟踪是无用的。还请提供您的欢迎活动的代码。

    【讨论】:

      猜你喜欢
      • 2014-10-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-09
      • 2014-01-06
      相关资源
      最近更新 更多