[GH-ISSUE #11] Android Studio build error: Failed to apply plugin 'com.android.internal.application' #10

Closed
opened 2026-03-04 02:10:47 +03:00 by kerem · 3 comments
Owner

Originally created by @e-t-l on GitHub (Apr 1, 2021).
Original GitHub issue: https://github.com/tytydraco/LADB/issues/11

I just cloned this repo and am trying to build it in Android Studio, but I immediately get this error:

Build file 'C:\Users\Elija_000\git\LADB\app\build.gradle' line: 2

An exception occurred applying plugin request [id: 'com.android.application']
> Failed to apply plugin 'com.android.internal.application'.
   > java.lang.NoSuchMethodException: java.lang.invoke.MethodHandles.privateLookupIn(java.lang.Class, java.lang.invoke.MethodHandles$Lookup)

Any ideas how to fix this? I've tried rebuilding the gradle cache and .gradle folder, and it looks like all the dependencies are up-to-date, but I'm not an expert and I could be missing something.

Originally created by @e-t-l on GitHub (Apr 1, 2021). Original GitHub issue: https://github.com/tytydraco/LADB/issues/11 I just cloned this repo and am trying to build it in Android Studio, but I immediately get this error: ``` Build file 'C:\Users\Elija_000\git\LADB\app\build.gradle' line: 2 An exception occurred applying plugin request [id: 'com.android.application'] > Failed to apply plugin 'com.android.internal.application'. > java.lang.NoSuchMethodException: java.lang.invoke.MethodHandles.privateLookupIn(java.lang.Class, java.lang.invoke.MethodHandles$Lookup) ``` Any ideas how to fix this? I've tried rebuilding the gradle cache and .gradle folder, and it looks like all the dependencies are up-to-date, but I'm not an expert and I could be missing something.
kerem 2026-03-04 02:10:47 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@tytydraco commented on GitHub (Apr 1, 2021):

Make sure you are using Android Studio Canary!

<!-- gh-comment-id:812174054 --> @tytydraco commented on GitHub (Apr 1, 2021): Make sure you are using Android Studio Canary!
Author
Owner

@e-t-l commented on GitHub (Apr 8, 2021):

Do you know what version(s) are compatible, by any chance? I try not to use the latest canary for big things like AS, just because I don't need the added stress of IDE bugs on top of my regular code bugs. If there's an older Canary or Beta version that has whatever's necessary to make this code run, that would be preferable.

<!-- gh-comment-id:815928609 --> @e-t-l commented on GitHub (Apr 8, 2021): Do you know what version(s) are compatible, by any chance? I try not to use the latest canary for big things like AS, just because I don't need the added stress of IDE bugs on top of my regular code bugs. If there's an older Canary or Beta version that has whatever's necessary to make this code run, that would be preferable.
Author
Owner

@tytydraco commented on GitHub (Apr 8, 2021):

Not sure about that one. Try downgrading the gradle versions.

<!-- gh-comment-id:816192322 --> @tytydraco commented on GitHub (Apr 8, 2021): Not sure about that one. Try downgrading the gradle versions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LADB#10
No description provided.