Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译出错 #70

Open
aqiuzzt opened this issue Jun 13, 2016 · 3 comments
Open

编译出错 #70

aqiuzzt opened this issue Jun 13, 2016 · 3 comments

Comments

@aqiuzzt
Copy link

aqiuzzt commented Jun 13, 2016

Error:(143, 0) A problem occurred evaluating project ':sample'.
Open File

指向下面第一行出错:
if (keepSpecsMap.remove("activity") != null) {
// println "KEEP_SPECS patched: removed 'activity' root"
} else {
// println "Failed to patch KEEP_SPECS: no 'activity' root found"
}

@hongxialiu
Copy link

@zhouzhengting 看来我走到你后面,,我直接把那些注释掉,但是后面就不知道该怎么弄了....

@aqiuzzt
Copy link
Author

aqiuzzt commented Jun 20, 2016

其实我也是注释了,只有AS编译之后就遇到你提到的点击button没有反应。感觉需要使用它提供的命令构建,但是那个命令编译时候也是很多错误。哎,不知道咋办。。。。。

@HappyRyan99
Copy link

http://blog.osom.info/2014/12/too-many-methods-in-main-dex.html

Version 2.0.0 of Android Gradle plugin broke the patch code. There were a few changes in CreateManifestKeepList task - mainly the task was converted from using Groovy to Java. The KEEP_SPECS static member that I was patching previously was converted to a ImmutableMap, which throws an UnsupportedOperationException when calling its remove method:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants