zoukankan      html  css  js  c++  java
  • 今天升级了ADT到ADT 22.6.1,打包混淆的时候就出现了问题

    Proguard returned with error code 1. See console
    Error: Unable to access jarfile ..libproguard.jar
     
    一直找不到问题的解决方案,后来我把proguard(下载地址:http://sourceforge.net/projects/proguard/files/proguard/)也升级到最新版还是不行。
     
    后来我仔细看了一下报错信息,我觉的是路径的问题,我就试着将
     
    D:android-sdk-windows oolsproguardinproguard.bat 打开内容如下:
     
    @ECHO OFF
     
    REM Start-up script for ProGuard -- free class file shrinker, optimizer,
    REM obfuscator, and preverifier for Java bytecode.
    REM
    REM Note: when passing file names containing spaces to this script,
    REM       you'll have to add escaped quotes around them, e.g.
    REM       ""C:/My Directory/My File.txt""
     
    IF EXIST "%PROGUARD_HOME%" GOTO home
    SET PROGUARD_HOME=..
    :home
     
    java -jar "%PROGUARD_HOME%libproguard.jar" %*
     
    我试着改了一下
     
    @ECHO OFF
     
    REM Start-up script for ProGuard -- free class file shrinker, optimizer,
    REM obfuscator, and preverifier for Java bytecode.
    REM
    REM Note: when passing file names containing spaces to this script,
    REM       you'll have to add escaped quotes around them, e.g.
    REM       ""C:/My Directory/My File.txt""
     
    IF EXIST "%PROGUARD_HOME%" GOTO home
    SET PROGUARD_HOME="D:android-sdk-windows oolsproguard"
    :home
     
    java -jar "%PROGUARD_HOME%libproguard.jar" %*
     
    再次进行打包混淆,没有出现异常
  • 相关阅读:
    BZOJ3790 神奇项链
    Tarjan求Lca
    Manacher算法--Poj3974
    [Usaco2015 Feb]Censoring
    扩展Kmp
    Ural1297 最长回文串
    [Usaco2007 Dec] 队列变换
    Pku2774 最长公共子串
    Spoj 694 Distinct Substrings
    Pku1734 Musical Theme 不可重叠最长重复子
  • 原文地址:https://www.cnblogs.com/Free-Thinker/p/3613374.html
Copyright © 2011-2022 走看看