简体   繁体   English

用于Eclipse的ADT插件,无法创建Android测试项目

[英]ADT Plug-in for Eclipse, cannot create Android Test Project

I have installed (also uninstalled and re-installed) the most recent versions of Eclipse and the Android plug-in, but to no avail. 我已经安装(也已卸载并重新安装)了最新版本的Eclipse和Android插件,但无济于事。 I cannot create a test project from an existing project... I am attempting to follow the "Activity Testing" tutorial from developer.android.com. 我无法从现有项目创建测试项目...我试图遵循developer.android.com上的“活动测试”教程。 Like the rest of the tutorials, the steps are basic and well documented, however I am stuck under "Creating the Test Case Class" :: "Adding the test case class file" between steps 3 & 4. For the sake of specifics: 像本教程的其余部分一样,这些步骤都是基本的并且有据可查,但是在第3步和第4步之间,我被困在“创建测试用例类” ::“添加测试用例类文件”下。

I select my active Android project, then click "New" -> "Project...". 我选择了活动的Android项目,然后单击“新建”->“项目...”。 In the wizard I select "Android" -> "Android Test Project" -> "Next". 在向导中,选择“ Android”->“ Android测试项目”->“下一步”。 I name it, choose "... existing source", define my local source directory, and click "Next". 我命名它,选择“ ...现有源”,定义我的本地源目录,然后单击“下一步”。 Here is where we reach my problem: 这是我们解决问题的地方:

This "Next" button does not respond. 此“下一步”按钮不响应。 You can see the button is active, regardless when clicked the wizard still will not proceed from this step. 您可以看到该按钮处于活动状态,无论何时单击该向导,仍然不会从此步骤继续进行。 Therefor I cannot create an Android Test Project from an existing project in Eclipse. 因此,我无法从Eclipse中的现有项目创建Android测试项目。 Any ideas? 有任何想法吗?

解决方案很简单,只需不单击从现有源创建,而是单击创建新项目,然后单击下一步,然后单击现有的android项目

I never learned why this wizard skipped a setup step and prevented me from building an Android Test Project from an existing project. 我从没学过为什么这个向导会跳过设置步骤并阻止我从现有项目中构建Android测试项目。 Since then, an IDE update was released and my build environment now behaves as expected. 从那时起,发布了IDE更新,并且我的构建环境现在表现出预期的效果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 带有ADT的Eclipse-无法创建新的Android项目 - Eclipse with ADT - Cannot Create New Android Project 在Android ADT Eclipse插件中滚动布局编辑器 - Scroll the Layout Editor in Android ADT Eclipse Plug-in 插件:com.android.ide.eclipse.adt错误 - Plug-in: com.android.ide.eclipse.adt error 插件com.android.ide.eclipse.adt无法加载类android - Plug-in com.android.ide.eclipse.adt was unable to load class android 我想在使用Android Eclipse ADT插件的同时自定义构建过程 - I want to customize the build process while still using the Android Eclipse ADT plug-in 如何为eclipse安装最新版本的ADT插件 - How to install last version of ADT plug-in for eclipse Eclipse 报告渲染库比 ADT 插件更新 - Eclipse reports rendering library more recent than ADT plug-in 我安装了Eclipse ADT,没有任何错误消息,但是重新启动后,我看不到任何Android插件 - I installed Eclipse ADT without any error message, but after rebooting, I can't see any Android plug-in 在Eclipse中调试其他人的android源代码时遇到常规问题-ADT插件可能无法正常运行 - Having routine problem debugging other people's android source code in eclipse - ADT plug-in might not be functioning properly 在LogCat中过滤标签(在Android Eclipse插件中) - Filter tags in LogCat (in Android Eclipse Plug-In)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM