{"action":"created","issue":{"url":"https://api.github.com/repos/evant/gradle-retrolambda/issues/105","labels_url":"https://api.github.com/repos/evant/gradle-retrolambda/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/evant/gradle-retrolambda/issues/105/comments","events_url":"https://api.github.com/repos/evant/gradle-retrolambda/issues/105/events","html_url":"https://github.com/evant/gradle-retrolambda/issues/105","id":71697743,"number":105,"title":"Issue compiling from clean build","user":{"login":"dlew","id":514850,"avatar_url":"https://avatars.githubusercontent.com/u/514850?v=3","gravatar_id":"","url":"https://api.github.com/users/dlew","html_url":"https://github.com/dlew","followers_url":"https://api.github.com/users/dlew/followers","following_url":"https://api.github.com/users/dlew/following{/other_user}","gists_url":"https://api.github.com/users/dlew/gists{/gist_id}","starred_url":"https://api.github.com/users/dlew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlew/subscriptions","organizations_url":"https://api.github.com/users/dlew/orgs","repos_url":"https://api.github.com/users/dlew/repos","events_url":"https://api.github.com/users/dlew/events{/privacy}","received_events_url":"https://api.github.com/users/dlew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-04-28T20:43:05Z","updated_at":"2015-06-10T12:52:43Z","closed_at":null,"body":"I've started running into an issue with retrolambda and the latest AppCompat release.\r\n\r\nSteps to reproduce:\r\n\r\n1. Update AppCompat dependency on a project to 22.1.1\r\n1. Run `./gradlew clean`\r\n1. Run `./gradlew compile` (Yes, separately from the last step - done together it worked sometimes)\r\n1. See this error if you are using lambdas inside of a class extending `FragmentActivity`:\r\n\r\n```\r\nError! Failed to transform some classes\r\njava.lang.RuntimeException: java.lang.IllegalAccessException: no such method: com.trello.common.TFragmentActivity.lambda$bindObservable$214(Observable)Observable/invokeSpecial\r\n\tat net.orfjackal.retrolambda.lambdas.LambdaReifier.reifyLambdaClass(LambdaReifier.java:42)\r\n\tat net.orfjackal.retrolambda.lambdas.BackportLambdaInvocations$InvokeDynamicInsnConverter.backportLambda(BackportLambdaInvocations.java:105)\r\n\tat net.orfjackal.retrolambda.lambdas.BackportLambdaInvocations$InvokeDynamicInsnConverter.visitInvokeDynamicInsn(BackportLambdaInvocations.java:94)\r\n\tat net.orfjackal.retrolambda.asm.ClassReader.readCode(ClassReader.java:1439)\r\n\tat net.orfjackal.retrolambda.asm.ClassReader.readMethod(ClassReader.java:1017)\r\n\tat net.orfjackal.retrolambda.asm.ClassReader.accept(ClassReader.java:693)\r\n\tat net.orfjackal.retrolambda.asm.ClassReader.accept(ClassReader.java:506)\r\n\tat net.orfjackal.retrolambda.Transformers.lambda$transform$4(Transformers.java:106)\r\n\tat net.orfjackal.retrolambda.Transformers$$Lambda$2/2007328737.accept(Unknown Source)\r\n\tat net.orfjackal.retrolambda.Transformers.transform(Transformers.java:120)\r\n\tat net.orfjackal.retrolambda.Transformers.transform(Transformers.java:106)\r\n\tat net.orfjackal.retrolambda.Transformers.backportClass(Transformers.java:46)\r\n\tat net.orfjackal.retrolambda.Retrolambda.run(Retrolambda.java:72)\r\n\tat net.orfjackal.retrolambda.Main.main(Main.java:26)\r\nCaused by: java.lang.IllegalAccessException: no such method: com.trello.common.TFragmentActivity.lambda$bindObservable$214(Observable)Observable/invokeSpecial\r\n\tat java.lang.invoke.MemberName.makeAccessException(MemberName.java:872)\r\n\tat java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:993)\r\n\tat java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:1379)\r\n\tat java.lang.invoke.MethodHandles$Lookup.findSpecial(MethodHandles.java:997)\r\n\tat net.orfjackal.retrolambda.lambdas.Types.toMethodHandle(Types.java:42)\r\n\tat net.orfjackal.retrolambda.lambdas.Types.asmToJdkType(Types.java:19)\r\n\tat net.orfjackal.retrolambda.lambdas.LambdaReifier.callBootstrapMethod(LambdaReifier.java:106)\r\n\tat net.orfjackal.retrolambda.lambdas.LambdaReifier.reifyLambdaClass(LambdaReifier.java:37)\r\n\t... 13 more\r\nCaused by: java.lang.NoClassDefFoundError: android/support/v4/view/LayoutInflaterFactory\r\n\tat java.lang.ClassLoader.defineClass1(Native Method)\r\n\tat java.lang.ClassLoader.defineClass(ClassLoader.java:760)\r\n\tat java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\r\n\tat java.net.URLClassLoader.defineClass(URLClassLoader.java:455)\r\n\tat java.net.URLClassLoader.access$100(URLClassLoader.java:73)\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:367)\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:361)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:360)\r\n\tat net.orfjackal.retrolambda.NonDelegatingClassLoader.loadClass(NonDelegatingClassLoader.java:25)\r\n\tat java.lang.invoke.MethodHandleNatives.resolve(Native Method)\r\n\tat java.lang.invoke.MemberName$Factory.resolve(MemberName.java:965)\r\n\tat java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:990)\r\n\t... 19 more\r\nCaused by: java.lang.ClassNotFoundException: android.support.v4.view.LayoutInflaterFactory\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:372)\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:361)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:360)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\tat net.orfjackal.retrolambda.NonDelegatingClassLoader.loadClass(NonDelegatingClassLoader.java:27)\r\n\t... 32 more\r\n```\r\n\r\nThe strangest part is that doing a non-clean build will work, though I suspect that's because it's skipping the retrolambda step.\r\n\r\nThis happens with retrolambda 2.0.0 or 2.0.2 (I tried both).\r\n\r\nThese are not static method calls."},"comment":{"url":"https://api.github.com/repos/evant/gradle-retrolambda/issues/comments/110739438","html_url":"https://github.com/evant/gradle-retrolambda/issues/105#issuecomment-110739438","issue_url":"https://api.github.com/repos/evant/gradle-retrolambda/issues/105","id":110739438,"user":{"login":"WonderCsabo","id":480485,"avatar_url":"https://avatars.githubusercontent.com/u/480485?v=3","gravatar_id":"","url":"https://api.github.com/users/WonderCsabo","html_url":"https://github.com/WonderCsabo","followers_url":"https://api.github.com/users/WonderCsabo/followers","following_url":"https://api.github.com/users/WonderCsabo/following{/other_user}","gists_url":"https://api.github.com/users/WonderCsabo/gists{/gist_id}","starred_url":"https://api.github.com/users/WonderCsabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WonderCsabo/subscriptions","organizations_url":"https://api.github.com/users/WonderCsabo/orgs","repos_url":"https://api.github.com/users/WonderCsabo/repos","events_url":"https://api.github.com/users/WonderCsabo/events{/privacy}","received_events_url":"https://api.github.com/users/WonderCsabo/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T12:52:43Z","updated_at":"2015-06-10T12:52:43Z","body":"@xorgate as it is explained by @rdtorres and me, it is not a problem how the support lib is compiled, the real problem is that the support lib is not on the retrolambda classpath *at all*. AFAIK."}}