{"action":"created","issue":{"url":"https://api.github.com/repos/clojure-android/lein-droid/issues/105","labels_url":"https://api.github.com/repos/clojure-android/lein-droid/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/clojure-android/lein-droid/issues/105/comments","events_url":"https://api.github.com/repos/clojure-android/lein-droid/issues/105/events","html_url":"https://github.com/clojure-android/lein-droid/issues/105","id":43764758,"number":105,"title":"MainActivity missing from classes.dex","user":{"login":"Nutomic","id":1044450,"avatar_url":"https://avatars.githubusercontent.com/u/1044450?v=3","gravatar_id":"","url":"https://api.github.com/users/Nutomic","html_url":"https://github.com/Nutomic","followers_url":"https://api.github.com/users/Nutomic/followers","following_url":"https://api.github.com/users/Nutomic/following{/other_user}","gists_url":"https://api.github.com/users/Nutomic/gists{/gist_id}","starred_url":"https://api.github.com/users/Nutomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nutomic/subscriptions","organizations_url":"https://api.github.com/users/Nutomic/orgs","repos_url":"https://api.github.com/users/Nutomic/repos","events_url":"https://api.github.com/users/Nutomic/events{/privacy}","received_events_url":"https://api.github.com/users/Nutomic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-09-24T13:32:08Z","updated_at":"2015-02-04T21:05:55Z","closed_at":"2015-02-04T21:05:55Z","body":"```\r\nE/AndroidRuntime( 6416): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{jaaka.core/jaaka.core.MainActivity}: java.lang.ClassNotFoundException: Didn't find class \"jaaka.core.MainActivity\" on path: DexPathList[[zip file \"/data/app/jaaka.core-2.apk\"],nativeLibraryDirectories=[/data/app-lib/jaaka.core-2, /vendor/lib, /system/lib]]\r\nE/AndroidRuntime( 6416):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2110)\r\nE/AndroidRuntime( 6416):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)\r\nE/AndroidRuntime( 6416):        at android.app.ActivityThread.access$800(ActivityThread.java:135)\r\nE/AndroidRuntime( 6416):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)\r\nE/AndroidRuntime( 6416):        at android.os.Handler.dispatchMessage(Handler.java:102)\r\nE/AndroidRuntime( 6416):        at android.os.Looper.loop(Looper.java:136)\r\nE/AndroidRuntime( 6416):        at android.app.ActivityThread.main(ActivityThread.java:5001)\r\nE/AndroidRuntime( 6416):        at java.lang.reflect.Method.invoke(Native Method)\r\nE/AndroidRuntime( 6416):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)\r\nE/AndroidRuntime( 6416):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)\r\nE/AndroidRuntime( 6416): Caused by: java.lang.ClassNotFoundException: Didn't find class \"jaaka.core.MainActivity\" on path: DexPathList[[zip file \"/data/app/jaaka.core-2.apk\"],nativeLibraryDirectories=[/data/app-lib/jaaka.core-2, /vendor/lib, /system/lib]]\r\nE/AndroidRuntime( 6416):        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)\r\nE/AndroidRuntime( 6416):        at java.lang.ClassLoader.loadClass(ClassLoader.java:511)\r\nE/AndroidRuntime( 6416):        at java.lang.ClassLoader.loadClass(ClassLoader.java:469)\r\nE/AndroidRuntime( 6416):        at android.app.Instrumentation.newActivity(Instrumentation.java:1061)\r\nE/AndroidRuntime( 6416):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2101)\r\nE/AndroidRuntime( 6416):        ... 9 more\r\nE/AndroidRuntime( 6416):        Suppressed: java.lang.ClassNotFoundException: jaaka.core.MainActivity\r\nE/AndroidRuntime( 6416):                at java.lang.Class.classForName(Native Method)\r\nE/AndroidRuntime( 6416):                at java.lang.BootClassLoader.findClass(ClassLoader.java:781)\r\nE/AndroidRuntime( 6416):                at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)\r\nE/AndroidRuntime( 6416):                at java.lang.ClassLoader.loadClass(ClassLoader.java:504)\r\nE/AndroidRuntime( 6416):                ... 12 more\r\nE/AndroidRuntime( 6416):        Caused by: java.lang.NoClassDefFoundError: Class \"Ljaaka/core/MainActivity;\" not found\r\nE/AndroidRuntime( 6416):                ... 16 more\r\nW/ActivityManager(  837):   Force finishing activity jaaka.core/.MainActivity\r\n```\r\n\r\nThis seems to happen quite randomly, without changing any code. `dexdump target/classes.dex | grep \"MainActivity\"` finds nothing.\r\n\r\n`lein clean; rm -r assets/ gen/` does not fix it either, I have to do clean, then `git stash; lein droid doall; git stash pop`. Maybe something is cached somewhere?\r\n\r\nI can also send you the project files, but it's basically `lein droid new` with minor changes.\r\n\r\nBtw, I feel like there should be a `lein droid clean` call that also deletes `gen/` and `assets/` directories ;)\r\n\r\nEdit: lein-droid is version 0.2.3, `$ lein -v` output: `Leiningen 2.5.0 on Java 1.7.0_65 OpenJDK 64-Bit Server VM`, on Kubuntu 14.04.\r\n"},"comment":{"url":"https://api.github.com/repos/clojure-android/lein-droid/issues/comments/72939252","html_url":"https://github.com/clojure-android/lein-droid/issues/105#issuecomment-72939252","issue_url":"https://api.github.com/repos/clojure-android/lein-droid/issues/105","id":72939252,"user":{"login":"alexander-yakushev","id":468477,"avatar_url":"https://avatars.githubusercontent.com/u/468477?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander-yakushev","html_url":"https://github.com/alexander-yakushev","followers_url":"https://api.github.com/users/alexander-yakushev/followers","following_url":"https://api.github.com/users/alexander-yakushev/following{/other_user}","gists_url":"https://api.github.com/users/alexander-yakushev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-yakushev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-yakushev/subscriptions","organizations_url":"https://api.github.com/users/alexander-yakushev/orgs","repos_url":"https://api.github.com/users/alexander-yakushev/repos","events_url":"https://api.github.com/users/alexander-yakushev/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-yakushev/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T21:05:55Z","updated_at":"2015-02-04T21:05:55Z","body":"Since there was no more input into this, I close the issue as non-reproducible. Feel free to reopen it if the problem persists."}}