尝试使用“mvn clean install”命令安装maven时出现以下错误:
var x = _([{"name": "John"}]);
x.findWhere({"name": "John"}); // use any underscore methods now
x; // chain, currently empty
x.commit(); // x is Lodash wrapper, containing one item
我运行了建议的命令,没有任何效果。
在Android SDK Manager中,我看到我有Android SDK Platform-tools 23.0.1,Android SDK Build-tools 23.0.1。 我尝试卸载并重新安装这些,但没有效果。
设置环境变量:
Failed to execute goal com.simpligility.maven.plugins:android-maven-plugin:4.2.1:
generate-sources (default-generate-sources) on project compatibility-v7-gridlayout:
Execution default-generate-sources of goal com.simpligility.maven.plugins:android-maven-plugin:4.2.1:
generate-sources failed: Invalid SDK:
Platform/API level 23 not available. This command should give you all you need:
D:\Program Files\adt-bundle-windows-x86_64-20140321\sdk\tools\android
update sdk --no-ui --obsolete --force
的pom.xml:
set M2_HOME=D:\Program Files\apache-maven-3.3.3
set PATH=%PATH%;D:\Program Files\apache-maven-3.3.3\bin
set ANDROID_HOME=D:\Program Files\adt-bundle-windows-x86_64-20140321\sdk
我读过:
Invalid SDK: Platform/API level 19 not available
MAVEN Invalid SDK: Platform/API level 16 not available
一个建议是设置为一个特定的数字,而pom中的现有代码使用<parent>
<groupId>com.simpligility.maven</groupId>
<artifactId>progressive-organization-pom</artifactId>
<version>3.0.0</version>
</parent>
...
<plugins>
<plugin>
<groupId>com.simpligility.maven.plugins</groupId>
<artifactId>android-maven-plugin</artifactId>
<configuration>
<sdk>
<platform>${android.sdk.platform}</platform>
</sdk>
</configuration>
</plugin>
</plugins>
,我认为这会更好,即更易于维护。无论如何,将其更改为23都没有效果。
Windows 7
我该怎么办?
编辑---------------------------------------
将pom文件中的maven版本更改为${android.sdk.platform}
会导致此错误:
<version>3.3.3</version>