连接Android与PHP,MySQL -Emulator

时间:2014-07-05 12:20:47

标签: php android mysql android-emulator

  

我使用php将android连接到mysql数据库,但是模拟器无法启动应用程序

我已逐步遵循本教程:

  

How to connect Android with PHP, MySQL

任何人都可以告诉我这个Logcat Ouptut意味着什么

控制台输出

[2014-07-05 17:44:33 - MainScreenActivity] ------------------------------
[2014-07-05 17:44:33 - MainScreenActivity] Android Launch!
[2014-07-05 17:44:33 - MainScreenActivity] adb is running normally.
[2014-07-05 17:44:33 - MainScreenActivity] Performing com.example.mainscreenactivity.FullscreenActivity activity launch
[2014-07-05 17:44:33 - MainScreenActivity] Automatic Target Mode: Preferred AVD 'Dev' is not available. Launching new emulator.
[2014-07-05 17:44:33 - MainScreenActivity] Launching a new emulator with Virtual Device 'Dev'
[2014-07-05 17:44:41 - Emulator] could not get wglGetExtensionsStringARB
[2014-07-05 17:44:41 - Emulator] Failed to create Context 0x3005
[2014-07-05 17:44:41 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2014-07-05 17:44:41 - Emulator] could not get wglGetExtensionsStringARB
[2014-07-05 17:44:41 - Emulator] could not get wglGetExtensionsStringARB
[2014-07-05 17:44:41 - Emulator] could not get wglGetExtensionsStringARB
[2014-07-05 17:44:41 - Emulator] could not get wglGetExtensionsStringARB
[2014-07-05 17:44:41 - Emulator] could not get wglGetExtensionsStringARB
[2014-07-05 17:44:41 - Emulator] could not get wglGetExtensionsStringARB
[2014-07-05 17:44:41 - Emulator] could not get wglGetExtensionsStringARB
[2014-07-05 17:44:46 - MainScreenActivity] New emulator found: emulator-5554
[2014-07-05 17:44:46 - MainScreenActivity] Waiting for HOME ('android.process.acore') to be launched...
[2014-07-05 17:50:32 - Emulator] NAND: nand_dev_load_disk_state ftruncate failed: Invalid argument
[2014-07-05 17:50:32 - Emulator] savevm: unable to load section nand_dev
[2014-07-05 17:51:48 - MainScreenActivity] emulator-5554 disconnected! Cancelling 'com.example.mainscreenactivity.FullscreenActivity activity launch'! 

logcat的

07-05 13:14:46.188: D/AndroidRuntime(1780): Shutting down VM
07-05 13:14:46.188: W/dalvikvm(1780): threadid=1: thread exiting with uncaught exception (group=0xb1e03ce8)
07-05 13:14:46.268: E/AndroidRuntime(1780): FATAL EXCEPTION: main
07-05 13:14:46.268: E/AndroidRuntime(1780): Process: com.example.mainscreenactivity, PID: 1780
07-05 13:14:46.268: E/AndroidRuntime(1780): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.mainscreenactivity/com.example.mainscreenactivity.FullscreenActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.mainscreenactivity.FullscreenActivity" on path: DexPathList[[zip file "/data/app/com.example.mainscreenactivity-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.mainscreenactivity-1, /system/lib]]
07-05 13:14:46.268: E/AndroidRuntime(1780):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2123)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at android.app.ActivityThread.access$800(ActivityThread.java:138)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at android.os.Handler.dispatchMessage(Handler.java:102)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at android.os.Looper.loop(Looper.java:136)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at android.app.ActivityThread.main(ActivityThread.java:5026)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at java.lang.reflect.Method.invokeNative(Native Method)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at java.lang.reflect.Method.invoke(Method.java:515)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at dalvik.system.NativeStart.main(Native Method)
07-05 13:14:46.268: E/AndroidRuntime(1780): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.mainscreenactivity.FullscreenActivity" on path: DexPathList[[zip file "/data/app/com.example.mainscreenactivity-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.mainscreenactivity-1, /system/lib]]
07-05 13:14:46.268: E/AndroidRuntime(1780):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
07-05 13:14:46.268: E/AndroidRuntime(1780):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2114)
07-05 13:14:46.268: E/AndroidRuntime(1780):     ... 11 more

0 个答案:

没有答案