Maven的Andr​​oid SDK中部署运行命令" MVN安装"错误:属性文件未找到。文件路径似乎不正确 [英] Maven Android SDK Deployer run the command "mvn install" error: Properties file not found. The file path seems not correct

查看:318
本文介绍了Maven的Andr​​oid SDK中部署运行命令" MVN安装"错误:属性文件未找到。文件路径似乎不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  

[错误]未能执行目标组织codehaus.mojo:属性 - Maven的插件:1.0-α-2项目的android-17读项目的属性(默认):属性文件未找到: D:\\maven-android-sdk-deployer-master\\platforms\\android-17\\${env.ANDROID_HOME}\\platforms\\android-17\\source.properties - > [求助1]


  
  

org.apache.maven.lifecycle.LifecycleExecutionException:未能执行目标组织codehaus.mojo:属性 - Maven的插件:1.0-α-2:项目中读取项目的属性(默认)android- 17:属性文件未找到: D:\\maven-android-sdk-deployer-master\\platforms\\android-17\\${env.ANDROID_HOME}\\platforms\\android-17\\source.properties



  1. 我使用maven的窗口。

  2. ANDROID_HOME已设置。该值是D:\\ ADT-束窗口-x86_64的\\ SDK

  3. 我能找到条件下二维source.properties:\\ ADT-束窗口-x86_64的\\ SDK \\ \\平台的android-17

  4. D:\\maven-android-sdk-deployer-master\\platforms\\android-17\\${env.ANDROID_HOME}\\platforms\\android-17\\source.properties应该D:\\maven-android-sdk-deployer-master\\platforms\\android-17\\D:\\adt-bundle-windows-x86_64\\sdk\\platforms\\android-17\\platforms\\android-17\\source.properties.这不是一个有效的路径。我认为这是什么原因失败。

请告诉我如何解决这个问题。谢谢!


解决方案

我有同样的问题。它可以通过打开了Android SDK管理器,删除这是产生错误的项目(在你的情况了Android 4.2.2 API 17 SDK),然后再次运行部署之前,一旦其删除只需重新安装它来解决。

[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

  1. I'm using maven on windows.
  2. ANDROID_HOME has been set. The value is D:\adt-bundle-windows-x86_64\sdk
  3. I could find source.properties under D:\adt-bundle-windows-x86_64\sdk\platforms\android-17
  4. 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!

解决方案

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.

这篇关于Maven的Andr​​oid SDK中部署运行命令" MVN安装"错误:属性文件未找到。文件路径似乎不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆