更新到ADT 20后导出Android项目时出现Proguard错误

ash*_*hes 5 android proguard adt

更新到ADT 20后,我无法再成功导出任何Android项目.我明白了:

Proguard returned with error code 1. See console
Run Code Online (Sandbox Code Playgroud)

在控制台中,我收到了大量的can't find referenced class警告,偶尔会收到can't find superclass or interface警告.在警告结束时,我得到这样的事情:

    You should check if you need to specify additional program jars.
Warning: there were 199 unresolved references to classes or interfaces.
    You may need to specify additional library jars (using '-libraryjars').
java.io.IOException: Please correct the above warnings first.
 at proguard.Initializer.execute(Initializer.java:321)
 at proguard.ProGuard.initialize(ProGuard.java:211)
 at proguard.ProGuard.execute(ProGuard.java:86)
 at proguard.ProGuard.main(ProGuard.java:492)
Run Code Online (Sandbox Code Playgroud)

每次我尝试构建时都会得到不同数量的警告(它不是很一致).此外,当我在导出之前执行清理时,导出完成而不会产生任何警告,但由此产生的APK在启动时崩溃ClassNotFoundException.

proguard-project.txt包含了-keep classAndroid支持库和ActionBarSherlock 的必要规则.

我在ADT 20之前构建这个项目没有任何问题.我甚至尝试构建我的上一个版本(当我发布它时显然很好),但是我得到了相同的proguard警告并且导出失败.

我已尝试添加-libraryjars和/或-dontwarn规则,因为许多其他SO问题建议,但无济于事.它有时会成功构建,但APK在启动时会崩溃.

有什么建议?

Xav*_*het 5

AAPT中存在一个只会处理的错误

<fragment android:name"..." />
Run Code Online (Sandbox Code Playgroud)

但不是

<fragment class="..." />
Run Code Online (Sandbox Code Playgroud)

我们将修复AAPT,但在此期间您可以使用其他属性并且它将起作用.