Proguard因Android工具的25.1.6版本而失败 [英] Proguard failing with 25.1.6 release of Android tools

查看:82
本文介绍了Proguard因Android工具的25.1.6版本而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天下载了Android工具的25.1.6版本,并注意到proguard因此错误而崩溃:

I downloaded the 25.1.6 release of Android tools today and I'm noticing that proguard is falling over with this error:

Error:Execution failed for task ':app:transformClassesWithNewClassShrinkerForDebug'.
> /usr/local/opt/android-sdk/tools/proguard/proguard-android.txt line 43:15 extraneous input '[]' expecting ')'

我确定我没有更改proguard-android.txt文件中的任何内容.第43行为我提供的内容如下:

I'm certain that I've not changed anything in the proguard-android.txt file. Line 43 reads for me as follows:

void set*(%[]);

我注意到这里的文件...

I'm noticing that the file here...

https://android.googlesource.com/platform/sdk/+/android-6.0.1_r43/files/proguard-android.txt

...与我的机器上的不同吗?该文件是我应该拥有的文件的最新版本吗?

... is different to what I have on my machine? Is that file the latest version of the file that I should have?

推荐答案

嗯,看起来Android SDK管理器未更新我的Android SDK本地副本中的tools/proguard文件夹.我刚刚从这里重新下载了Android SDK ...

Hmm, it looks the tools/proguard folder in my local copy of the Android SDK is not updated by the Android SDK Manager. I just downloaded the Android SDK afresh from here...

http://developer.android.com/sdk/index.html

...,然后将该分发中的tools/proguard文件夹替换为我的Android SDK本地副本中的tools/proguard,错误消失了.

... and replaced the tools/proguard folder in that distribution over the tools/proguard in my local copy of the Android SDK and the error's gone.

如果tools/proguard文件夹是通过Android SDK管理器更新的,那就太好了.

Would be great if the tools/proguard folder was updated via the Android SDK Manager.

这篇关于Proguard因Android工具的25.1.6版本而失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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