alibaba / Virtualview-Android

A light way to build UI in custom XML.
http://tangram.pingguohe.net/
MIT License
1.46k stars 187 forks source link

Caused by: com.android.tools.r8.errors.CompilationError: Program type already present: com.libra.expr.common.StringSupport无法编译通过 #81

Open WoXinfeiyang opened 5 years ago

WoXinfeiyang commented 5 years ago

由于依赖com.alibaba.android:virtual-common和com.alibaba.android:virtual-compiler,两个jar包里面含有相同的类,导致无法编译成功。

MikeAfc commented 5 years ago

没有特殊需要不用依赖virtual-compiler

AndyFu notifications@github.com 于2019年6月19日周三 下午5:23写道:

由于依赖com.alibaba.android:virtual-common和com.alibaba.android:virtual-compiler,两个jar包里面含有相同的类,导致无法编译成功。

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alibaba/Virtualview-Android/issues/81?email_source=notifications&email_token=ABBF7GDI5FJEUGLGHWMRFXTP3H3JXA5CNFSM4HZHTGEKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2LAZZA, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBF7GAIK24CFTIXI5FG5YTP3H3JXANCNFSM4HZHTGEA .

WoXinfeiyang commented 5 years ago

Demo里面应该是需要依赖virtual-compiler,去掉这个依赖,CustomParser是无法编译通过的。而ParserDemoActivity中引用了CustomParser,亦无法编译通过。

WoXinfeiyang commented 5 years ago

https://github.com/alibaba/Virtualview-Android/issues/81#issuecomment-503823723 Demo里面应该是需要依赖virtual-compiler,去掉这个依赖,CustomParser是无法编译通过的。而ParserDemoActivity中引用了CustomParser,亦无法编译通过。 ------------------ 原始邮件 ------------------ 发件人: "MikeAfc"notifications@github.com; 发送时间: 2019年6月20日(星期四) 上午10:21 收件人: "alibaba/Virtualview-Android"Virtualview-Android@noreply.github.com; 抄送: "我心飞扬"815965325@qq.com;"Author"author@noreply.github.com; 主题: Re: [alibaba/Virtualview-Android] Caused by: com.android.tools.r8.errors.CompilationError: Program type already present: com.libra.expr.common.StringSupport无法编译通过 (#81)

没有特殊需要不用依赖virtual-compiler

AndyFu notifications@github.com 于2019年6月19日周三 下午5:23写道:

由于依赖com.alibaba.android:virtual-common和com.alibaba.android:virtual-compiler,两个jar包里面含有相同的类,导致无法编译成功。

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alibaba/Virtualview-Android/issues/81?email_source=notifications&email_token=ABBF7GDI5FJEUGLGHWMRFXTP3H3JXA5CNFSM4HZHTGEKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2LAZZA, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBF7GAIK24CFTIXI5FG5YTP3H3JXANCNFSM4HZHTGEA .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.