我正在尝试使用ProGuard导出Android应用程序但是当我这样做时,我收到了控制台的错误:
[2014-04-18 16:04:37 - YesMa] Proguard returned with error code 1. See console
[2014-04-18 16:04:37 - YesMa] java.io.FileNotFoundException: Android\YesMa\proguard\dump.txt (El sistema no puede encontrar la ruta especificada)
[2014-04-18 16:04:37 - YesMa] at java.io.FileInputStream.open(Native Method)
[2014-04-18 16:04:37 - YesMa] at java.io.FileInputStream.<init>(Unknown Source)
[2014-04-18 16:04:37 - YesMa] at java.io.FileReader.<init>(Unknown Source)
[2014-04-18 16:04:37 - YesMa] at proguard.FileWordReader.<init>(FileWordReader.java:39)
[2014-04-18 16:04:37 - YesMa] at proguard.ConfigurationParser.parseIncludeArgument(ConfigurationParser.java:217)
[2014-04-18 16:04:37 - YesMa] at proguard.ConfigurationParser.parse(ConfigurationParser.java:124)
[2014-04-18 16:04:37 - YesMa] at proguard.ProGuard.main(ProGuard.java:484)
在我的项目中,我有:
project.properties
# Many comments
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-19
android.library.reference.1=../appcompat_v7
android.library.reference.2=../gridlayout_v7
proguard的-project.txt
# Many comments
这里“SDK-PATH ... \ tools \ proguard \ bin \”我在三个文件中写了这个:
SET PROGUARD_HOME="C:\Users\Alberto\Desktop\adt-bundle-windows-x86_64-20131030\sdk\tools\proguard"
java -jar "%PROGUARD_HOME%"\lib\proguard.jar %*
我不明白这个错误,我看过很多帖子,但我还没有找到解决方法。我怎么能解决它?
答案 0 :(得分:2)
我已经解决了将工作空间路径的所有文件夹的名称放在没有空格的问题。例如:&#34; A - X&#34; - &GT; &#34; A-X&#34;