拆分lib_main被定义多次 [英] Split lib_main was defined multiple times

查看:4038
本文介绍了拆分lib_main被定义多次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

拆分lib_main被定义多次

在com.android.tools.build:gradle:2.0.0-alpha3打造的成功,
但发生在com.android.tools.build:gradle:2.0.0-alpha5中的错误。

In "com.android.tools.build:gradle:2.0.0-alpha3" build success, But the errors that occur in the "com.android.tools.build:gradle:2.0.0-alpha5".

控制台错误

最后时刻运行的工作! com.android.tools.build:gradle:2.0.0-alpha8和gradle.propertiesorg.gradle.jvmargs = -Xmx8g就解决了改变。

finally instant run work!! com.android.tools.build:gradle:2.0.0-alpha8 and gradle.properties "org.gradle.jvmargs = -Xmx8g" was resolved to change.

推荐答案

对于那些谁不知道InstantRun是(图中首先设置)的内容:

For those who wonder what InstantRun is (first setting in the picture):

和禁用是在设定修复该问题。

And yes disabling that setting fixes the issue.

修改16年1月19日

com.android.tools.build:gradle:2.0.0-alpha6发布三天前。使用新版本中,拆分lib_main被定义多次错误消失和安装应用程序的成功,但现在我得到一个运行时错误:

'com.android.tools.build:gradle:2.0.0-alpha6' was released three days ago. Using that new version, the "Split lib_main was defined multiple times" error is gone and installation of the app succeeds but now I get a runtime error:

java.lang.RuntimeException: Unable to instantiate application
com.android.tools.fd.runtime.BootstrapApplication:
java.lang.ClassNotFoundException: Didn't find class
"com.android.tools.fd.runtime.BootstrapApplication" on path:
DexPathList[[zip file "/data/app/com.onegravity.k10.pro2-2/base.apk",
zip file "/data/app/com.onegravity.k10.pro2-/split_lib_main.apk"]

Caused by: java.lang.ClassNotFoundException: Didn't find class
"com.android.tools.fd.runtime.BootstrapApplication" on path:
DexPathList[[zip file "/data/app/com.onegravity.k10.pro2-2/base.apk",
zip file "/data/app/com.onegravity.k10.pro2-2/split_lib_main.apk"]

Suppressed: java.io.IOException: No original dex files found for dex location
/data/app/com.onegravity.k10.pro2-2/base.apk

Suppressed: java.lang.ClassNotFoundException:
com.android.tools.fd.runtime.BootstrapApplication

关闭即时运行消​​除了错误。
让我们等待com.android.tools.build:gradle:2.0.0-alpha7 ...

Turning off instant run eliminates that error. Let's wait for com.android.tools.build:gradle:2.0.0-alpha7...

修改16年1月25日

com.android.tools.build:gradle:2.0.0-alpha7发布前两天。

'com.android.tools.build:gradle:2.0.0-alpha7' was released two days ago.

获取相同的异常与2.0.0-alpha6

Getting the same exception as with 2.0.0-alpha6

这篇关于拆分lib_main被定义多次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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