我有一个工作正常的Robotium项目。我可以运行测试启动应用程序作为“Android Junit测试”。
然后我Mavenized projeck点击转换为Maven项目,我在控制台中收到此错误:
R.java was modified manually! Reverting to generated version!
然后我尝试再次运行该项目为“Android Junit Test”,但我在控制台中收到此错误:
Test run failed: Instrumentation run failed due to 'java.lang.RuntimeException'
我试着
其他奇怪的是,如果我点击: 运行 - > Mvn编译exec:java maven执行
我明白了:
ERROR: M2_HOME is set to an invalid directory.
M2_HOME = "null"
Please set the M2_HOME variable in your environment to match the
location of the Maven installation
"cmd" non Š riconosciuto come comando interno o esterno,
un programma eseguibile o un file batch.