“模拟器:错误:在此AVD的配置中找不到搜索路径” Android活动问题

问题描述 投票:1回答:2

[当我尝试运行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);
       }
}
android android-activity
2个回答
0
投票

检查清单文件或在此处查看:

Trouble getting Android emulator to run in eclipse


0
投票

我想到三件事。

  1. 请确保检查您是否具有正确的avd路径Window->preferences
  2. 在项目文件夹上按鼠标右键并使用android tools -> fix project
  3. 只需重新启动Eclipse。
© www.soinside.com 2019 - 2024. All rights reserved.