guojing
V2EX  ›  Android

Android Studio 遇到一个奇怪问题,编译老是提示 java.lang.ClassNotFoundException: com.dodola.rocoo.Hack, 无法编译

  •  
  •   guojing · Jul 21, 2016 · 13496 views
    This topic created in 3608 days ago, the information mentioned may be changed or developed.
    最近想给公司 Android 程序加个热更新功能,想采用 RocooFix ( https://github.com/dodola/RocooFix )试一下。
    一开始配置好编译正常,后面不知道怎么就不行了。老是提示 java.lang.ClassNotFoundException: com.dodola.rocoo.Hack 。即使把 RocooFix 移除,编译还是提示同样异常。
    把代码拷到其他电脑上编译,运行正常。
    请问这是出了什么问题?
    3 replies    2016-07-22 12:35:51 +08:00
    stewforani
        1
    stewforani  
       Jul 22, 2016
    好像分包出了问题,你试试把整个 build 文件全删了,再重新编译一遍,我以前好像碰到过。。。
    JsonLee
        2
    JsonLee  
       Jul 22, 2016
    发日志出来看看
    bjzhou1990
        3
    bjzhou1990  
       Jul 22, 2016
    删 build 目录,删*.iml 文件,删.idea 目录
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6002 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 03:19 · PVG 11:19 · LAX 20:19 · JFK 23:19
    ♥ Do have faith in what you're doing.