SQLite:程序没有在第一个模拟器上运行

时间:2013-02-24 14:26:38

标签: android eclipse sqlite

我打开了一个模拟器,但是当我启动我的应用程序时,它会启动第二个模拟器,而不是在已经打开的模拟器上运行。

控制台输出:

[2013-02-24 14:30:40 - AdatBpro] Android Launch!
[2013-02-24 14:30:40 - AdatBpro] adb is running normally.
[2013-02-24 14:30:40 - AdatBpro] Performing hu.AB.example.adatbpro.MainActivity activity launch
[2013-02-24 14:30:40 - AdatBpro] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2013-02-24 14:30:47 - AdatBpro] Launch canceled!
[2013-02-24 14:31:04 - AdatBpro] emulator-5554 disconnected! Cancelling 'hu.AB.example.adatbpro.MainActivity activity launch'!
[2013-02-24 14:42:15 - AdatBpro] ------------------------------
[2013-02-24 14:42:15 - AdatBpro] Android Launch!
[2013-02-24 14:42:15 - AdatBpro] adb is running normally.
[2013-02-24 14:42:15 - AdatBpro] Performing hu.AB.example.adatbpro.MainActivity activity launch
[2013-02-24 14:42:16 - AdatBpro] Automatic Target Mode: launching new emulator with compatible AVD 'AVD412'
[2013-02-24 14:42:16 - AdatBpro] Launching a new emulator with Virtual Device 'AVD412'
[2013-02-24 14:42:16 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2013-02-24 14:42:16 - Emulator] WARNING: SD Card image already in use: C:\Users\Edit\.android\avd\AVD412.avd/sdcard.img
[2013-02-24 14:42:16 - Emulator] WARNING: Cache partition already in use. Changes will not persist!
[2013-02-24 14:42:16 - AdatBpro] New emulator found: emulator-5556
[2013-02-24 14:42:16 - AdatBpro] Waiting for HOME ('android.process.acore') to be launched...
[2013-02-24 14:43:32 - AdatBpro] HOME is up on device 'emulator-5556'
[2013-02-24 14:43:32 - AdatBpro] Uploading AdatBpro.apk onto device 'emulator-5556'
[2013-02-24 14:43:33 - AdatBpro] Installing AdatBpro.apk...
[2013-02-24 14:44:30 - AdatBpro] Success!

程序正在运行并且数据库打开但是当第一个模拟器没有写入任何内容时。我再试一次。第一个模拟器打开并打开第二个模拟器,并在第二个模拟器上写下所有内容。

它只在模拟器上制作。

它不能在电话上运行。

测试了kill-server和start-servert。 没有解决问题。 我运行任何发生的事情

为什么要这样做?我做错了什么?

我找不到解决方案。

1 个答案:

答案 0 :(得分:1)

打开控制台窗口(终端窗口,命令提示符等)并运行:

adb kill-server
adb start-server

这将解决您的决斗模拟器问题。它发生在我们很多人身上;)注意:adb可以在SDKs文件夹下的platform-tools文件夹中找到。