Eclipse android 项目不创建空白活动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22232836/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse android project not creating blank activity
提问by user3213348
Every time I create a new android project, I specify that I want to create blank activity. I get to the page where I name it. But after clicking finish, the blank activity is nowhere to be found. I know that I can create the blank activity file manually. But I want to know why eclipse is not creating the blank activity even though it goes through the creating process when i make a new android project. It is not even showing up on the manifest file.
每次我创建一个新的 android 项目时,我都会指定我要创建空白活动。我进入我命名的页面。但是点击完成后,空白的活动无处可寻。我知道我可以手动创建空白活动文件。但我想知道为什么 eclipse 没有创建空白活动,即使我在创建一个新的 android 项目时它经历了创建过程。它甚至没有出现在清单文件中。
回答by Addon.mahesh
I had the same problem even though I downloaded the Android SDK and did a clean install, but I just resolved it. I tried to click "Help" -> "Install new software" and install (this will update it) from this url: https://dl-ssl.google.com/android/eclipse/OR try to create a empty activity, not a blank activity
即使我下载了 Android SDK 并进行了全新安装,我也遇到了同样的问题,但我刚刚解决了它。我尝试单击“帮助”->“安装新软件”并从此网址安装(这将更新它):https: //dl-ssl.google.com/android/eclipse/或尝试创建一个空活动,不是空白活动
回答by Silambarasan Poonguti
Try this...
尝试这个...
Go to Help> Install New Software,
Click Available Software Sites,
Removethe installed Repository,
Click Add,
Type name: Android Developer Tools Update Site; location: http://dl-ssl.google.com/android/eclipse/.
Press Ok,
Select all press Next,
Press Next,
Accept and Installrepository,
Eclipse restart automatically when the repository update is complete,
I hope, the issue had solved now.
转到“帮助”>“安装新软件”,
单击可用的软件站点,
删除已安装的存储库,
点击添加,
类型名称:Android 开发者工具更新站点;位置:http: //dl-ssl.google.com/android/eclipse/。
按确定,
全选按下一步,
按下一步,
接受并安装存储库,
存储库更新完成后 Eclipse 自动重启,
我希望,问题现在已经解决了。
Happy coding.....
快乐编码......
回答by oiyio
I have faced the same problem. After a while i understand that i installed Android APIs in wrong place. Try to rerun installer_r22.6.2-windows.exe which you download in order to work with Android.
我遇到了同样的问题。过了一会儿,我明白我在错误的地方安装了 Android API。尝试重新运行您下载的 installer_r22.6.2-windows.exe 以便与 Android 一起使用。
Then Android SDK Manager appears in the screen. Check the APIs which you installed before. What does appear in the status field of APIs??? If it appears
然后 Android SDK Manager 出现在屏幕上。检查您之前安装的 API。API 的状态字段显示什么???如果出现
Not installed
Then as i said earlier , you should reinstall these APIs. Keep in mind that SDK Path appears above in Android SDK Manager. It may be necessary for you later.
然后正如我之前所说,您应该重新安装这些 API。请记住,SDK 路径出现在 Android SDK 管理器的上方。以后可能需要你。
回答by M.J
Then there must be something wrong with the installation of the eclipse or android SDK. I am using eclipse indigo for developing android apps since 2.5 years I haven't face any thing like this. But when I tried eclipse juno I find few issues. First of all make sure that you have installed every thing correctly and you are using updated version of eclipse.
那么肯定是eclipse或者android SDK的安装有问题。自从 2.5 年以来,我一直在使用 eclipse indigo 来开发 android 应用程序,我还没有遇到过这样的事情。但是当我尝试 eclipse juno 时,我发现几乎没有问题。首先确保你已经正确安装了所有东西并且你正在使用更新版本的 eclipse。