[当我尝试运行Hello,Android Activity时,它说:模拟器:错误:在此AVD的配置中找不到搜索路径。并在其下显示:很奇怪,AVD的config.ini文件格式错误。尝试重新创建它。
我很沮丧,如果有人可以帮助我,我将非常感激。
这是我要的代码:
package my.helloandroid.activity;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroidActivity 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);
}
}
检查清单文件或在此处查看:
我想到三件事。
Window->preferences
。android tools -> fix project
。