这是我写的代码
package com.test.AndroidApp;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class TestAppActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("Hello, Android....");
setContentView(tv);
}
}
我收到这些错误
[2010-04-06 19:24:03 - Emulator] 2010-04-07 00:49:03.366 emulator[498:903] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
[2010-04-06 19:34:42 - TestApp] emulator-5554 disconnected! Cancelling 'com.test.AndroidApp.TestAppActivity activity launch'!
我安装了最新的sdk和ADT。
解决方案是什么????
由于
答案 0 :(得分:1)
它应该可以使用bug
答案 1 :(得分:1)
NSQuickdraw警告发生在我认为在Mac上运行的模拟器上。但是它不会使模拟器出错。几个月来我用这个警告运行一台机器,这不是问题。断开连接错误通常是连接到我认为的仿真器的超时问题,但不要分散第一个警告。