问题
[ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project android-17: Properties file not found: D:\maven-android-sdk-deployer-master\platforms\android-17\${env.ANDROID_HOME}\platforms\android-17\source.properties -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project android-17: Properties file not found: D:\maven-android-sdk-deployer-master\platforms\android-17\${env.ANDROID_HOME}\platforms\android-17\source.properties
- I'm using maven on windows.
- ANDROID_HOME has been set. The value is D:\adt-bundle-windows-x86_64\sdk
- I could find source.properties under D:\adt-bundle-windows-x86_64\sdk\platforms\android-17
- D:\maven-android-sdk-deployer-master\platforms\android-17\${env.ANDROID_HOME}\platforms\android-17\source.properties should be D:\maven-android-sdk-deployer-master\platforms\android-17\D:\adt-bundle-windows-x86_64\sdk\platforms\android-17\platforms\android-17\source.properties. It's not a valid path. I think that's what cause the failure.
Please tell me how to fix the issue. Thanks!
回答1:
I had this same issue. It can be resolved by opening the Android SDK Manager, removing the item which is producing the error (in your case the Android 4.2.2 API 17 SDK) and then once its removed simply install it again before you run the deployer again.
来源:https://stackoverflow.com/questions/14994808/maven-android-sdk-deployer-run-the-command-mvn-install-error-properties-file