gpt4 book ai didi

android - gralloc_goldfish(634) : Emulator without GPU emulation detected

转载 作者:太空狗 更新时间:2023-10-29 15:56:16 30 4
gpt4 key购买 nike

我正在使用 android SDK 4.0.3,我正在尝试运行一个简单的程序,在该程序中,我尝试使用 Intent 从一个页面切换到另一个页面(通过将 intent 对象传递为:Intent intent = new Intent (getApplicationContext(),SecondActivity.class);启动 Activity ( Intent ); )

[另外,我有 3GB RAM]

但是当我运行程序时,它在 DDMS 中给出了类似这样的内容:

01-23 01:58:23.892: D/gralloc_goldfish(634): Emulator without GPU emulation detected.

01-23 01:58:45.482: D/AndroidRuntime(634): Shutting down VM

01-23 01:58:45.492: W/dalvikvm(634): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)

01-23 01:58:45.532: E/AndroidRuntime(634): FATAL EXCEPTION: main

01-23 01:58:45.532: E/AndroidRuntime(634): android.content.ActivityNotFoundException:
Unable to find explicit activity class {com.example.actionbar_demo/com.example.actionbar_demo.SecondActivity}; have you declared this activity in your AndroidManifest.xml?

01-23 01:58:45.532: E/AndroidRuntime(634): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1508)

01-23 01:58:45.532: E/AndroidRuntime(634): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1384)

01-23 01:58:45.532: E/AndroidRuntime(634): at android.app.Activity.startActivityForResult(Activity.java:3190)

01-23 01:58:45.532: E/AndroidRuntime(634): at com.example.actionbar_demo.Actionbar_demoActivity$1.onClick(Actionbar_demoActivity.java:23)

01-23 01:58:45.532: E/AndroidRuntime(634): at android.view.View.performClick(View.java:3511)

01-23 01:58:45.532: E/AndroidRuntime(634): at android.view.View$PerformClick.run(View.java:14105)

01-23 01:58:45.532: E/AndroidRuntime(634): at android.os.Handler.handleCallback(Handler.java:605)

01-23 01:58:45.532: E/AndroidRuntime(634): at android.os.Handler.dispatchMessage(Handler.java:92)

01-23 01:58:45.532: E/AndroidRuntime(634): at android.os.Looper.loop(Looper.java:137)

01-23 01:58:45.532: E/AndroidRuntime(634): at android.app.ActivityThread.main(ActivityThread.java:4424)

01-23 01:58:45.532: E/AndroidRuntime(634): at java.lang.reflect.Method.invokeNative(Native Method)

01-23 01:58:45.532: E/AndroidRuntime(634): at java.lang.reflect.Method.invoke(Method.java:511)

01-23 01:58:45.532: E/AndroidRuntime(634): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)

01-23 01:58:45.532: E/AndroidRuntime(634): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)

01-23 01:58:45.532: E/AndroidRuntime(634): at dalvik.system.NativeStart.main(Native Method)

01-23 01:58:49.173: I/Process(634): Sending signal. PID: 634 SIG: 9

最佳答案

如果您担心:

Emulator without GPU emulation detected.

我不会。鉴于粗略地搜索一下网络,结果相当多,而且它与正在讨论的具体问题无关,我想说这只是表明您的模拟器根本不模拟 GPU。这不太可能成为问题。

事实证明这是一条调试消息(甚至不是警告,更不用说错误了),而且这与您的实际问题之间存在 42 秒的巨大差距。

实际问题似乎由以下行指示:

01-23 01:58:45.532: E/AndroidRuntime(634):
android.content.ActivityNotFoundException: Unable to find explicit activity
class {com.example.actionbar_demo/com.example.actionbar_demo.SecondActivity};
have you declared this activity in your AndroidManifest.xml?

所以我不得不问:您是否在 AndroidManifest.xml 中声明了此 Activity ?

关于android - gralloc_goldfish(634) : Emulator without GPU emulation detected,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8968238/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com