android studio proguard 混淆微信libammsdk.jar报错

Error:Execution failed for task ':app:proguardRelease'. > java.io.IOException: Can't read [D:\android_studio\app\libs\libammsdk.jar(;;;;;;!META-INF/MANIFEST.MF)] (Can't process class [com/tencent/wxop/stat/al.class] (Unknown verification type [95] in stack map frame)) 怎么解决啊?在eclipse中解决了(参见:http://vase.iteye.com/blog/2171056)。但是同样的方法在android studio中不起作用 android studio已解决: 

Thanks for the tips. Your suggestion did put me on the right path and I did get this work, although I didn't need to use a local maven install. I put proguard.jar in a directory named "proguard" and setup the gradle file like this:

buildscript {
repositories {
flatDir { dirs 'proguard' }
mavenCentral()
}
dependencies {
classpath 'proguard.io:proguard:5.0'
classpath 'com.android.tools.build:gradle:0.12.+'
}
}

 

参见:http://sourceforge.net/p/proguard/bugs/420/

我的 build.gradle的内容:

buildscript {

    repositories {

        flatDir { dirs 'proguard' }//依赖库类目录

        jcenter()

    }

    dependencies {

        classpath 'com.android.tools.build:gradle:1.0.0'

        classpath 'proguard.io:proguard:4.11'//依赖的库类

    }

}

 

allprojects {

    repositories {

        jcenter()

    }

}

 

在项目根目录建proguard文件夹,放入proguard.jar即可(http://vase.iteye.com/blog/2171056中重新编译的proguard的jar

 

 

参考资料:

http://www.tuicool.com/articles/bEnMrar

 

你可能感兴趣的:(android studio)