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" %*
     
    再次进行打包混淆,没有出现异常
  • 相关阅读:
    jQuery核心函数——(一)
    ECMAScript——(二)
    JS简介——(一)
    jQuery动态给下拉列表添加一个选项(创建DOM对象)
    Ajax异步请求struts的JSON机制(省市区三级联动)
    struts2官方演示程序总结struts2-blank
    详解数据库之存储过程与错误处理
    使用jdk的socket通信
    hadoop深入研究:(五)——Archives
    解决删除Volume报错的问题
  • 原文地址:https://www.cnblogs.com/Free-Thinker/p/3613374.html
Copyright © 2011-2022 走看看